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
<PackageReference Include="Mcp.Gateway.Models" Version="1.8.7" />
<PackageVersion Include="Mcp.Gateway.Models" Version="1.8.7" />
<PackageReference Include="Mcp.Gateway.Models" />
paket add Mcp.Gateway.Models --version 1.8.7
#r "nuget: Mcp.Gateway.Models, 1.8.7"
#:package Mcp.Gateway.Models@1.8.7
#addin nuget:?package=Mcp.Gateway.Models&version=1.8.7
#tool nuget:?package=Mcp.Gateway.Models&version=1.8.7
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 | Versions 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. |
-
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.
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.