Mcp.Gateway.Models 1.8.7

dotnet add package Mcp.Gateway.Models --version 1.8.7
                    
NuGet\Install-Package Mcp.Gateway.Models -Version 1.8.7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Mcp.Gateway.Models" Version="1.8.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mcp.Gateway.Models" Version="1.8.7" />
                    
Directory.Packages.props
<PackageReference Include="Mcp.Gateway.Models" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Mcp.Gateway.Models --version 1.8.7
                    
#r "nuget: Mcp.Gateway.Models, 1.8.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Mcp.Gateway.Models@1.8.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Mcp.Gateway.Models&version=1.8.7
                    
Install as a Cake Addin
#tool nuget:?package=Mcp.Gateway.Models&version=1.8.7
                    
Install as a Cake Tool

Mcp.Gateway.Models

Mcp.Gateway.Models contains the shared data models and JSON-RPC types used by the MCP Gateway ecosystem.

This library provides the core contracts for communicating via the Model Context Protocol (MCP), including:

  • JsonRpcMessage: Represents JSON-RPC 2.0 requests, responses, and notifications.
  • JsonRpcError: Standard error structures.
  • JsonOptions: Shared JSON serialization settings.

📦 Installation

Install the NuGet package:

dotnet add package Mcp.Gateway.Models

🛠️ Usage

This package is primarily intended as a dependency for Mcp.Gateway.Tools (server) and Mcp.Gateway.Client (client), but can be used independently if you need the raw models.

using Mcp.Gateway.Models;

// Create a JSON-RPC request
var request = JsonRpcMessage.CreateRequest("ping", 1);

// Create a success response
var response = JsonRpcMessage.CreateSuccess(1, new { message = "pong" });

📄 License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Mcp.Gateway.Models:

Package Downloads
Mcp.Gateway.Tools

Production-ready Model Context Protocol (MCP) Gateway library for .NET 10. Enables AI assistants like GitHub Copilot and Claude Desktop to discover and invoke custom tools via HTTP, WebSocket, SSE, and stdio transports.

Mcp.Gateway.Client

Robust .NET client library for the Model Context Protocol (MCP). Connect to MCP servers via HTTP, SSE, WebSocket, and stdio.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.8.7 193 1/11/2026
1.8.6 155 1/10/2026
1.8.5 154 1/9/2026
1.8.4 156 1/9/2026
1.8.3 157 1/3/2026
1.8.2 164 1/3/2026
1.8.1 144 1/3/2026

v1.8.7: Resource API Refinements and Ping Compliance. BREAKING: Client ReadResourceAsync now returns ReadResourceResult. Added Client UnsubscribeResourceAsync. Moved system/ping to ping for spec compliance. Added resource metadata support.