chore: publish from main

This commit is contained in:
github-actions[bot]
2026-08-21 02:20:20 +00:00
parent 585a5c6023
commit ac09ca6b2e
5 changed files with 11 additions and 11 deletions
@@ -7,9 +7,9 @@ For just *running* a server, ignore this file.
## Packages ## Packages
```bash ```bash
dotnet add package ModelContextProtocol.Core # minimal: just client + transports dotnet add package ModelContextProtocol.Core --version 2.2.0 # minimal: just client + transports
# or # or
dotnet add package ModelContextProtocol # adds DI/hosting helpers dotnet add package ModelContextProtocol --version 2.2.0 # adds DI/hosting helpers
``` ```
## Connecting via STDIO (launching a server process) ## Connecting via STDIO (launching a server process)
@@ -147,7 +147,7 @@ A minimum viable bundle: vanilla JS using `@modelcontextprotocol/ext-apps`. The
<body> <body>
<div id="root">Loading…</div> <div id="root">Loading…</div>
<script type="module"> <script type="module">
import { App } from "https://esm.sh/@modelcontextprotocol/ext-apps@1"; import { App } from "https://esm.sh/@modelcontextprotocol/ext-apps@1.7.5";
const app = new App(); const app = new App();
await app.connect(); await app.connect();
@@ -19,7 +19,7 @@ All packages live under the [`ModelContextProtocol` NuGet profile](https://www.n
## Versions ## Versions
As of mid-2026, the stable line is **2.x** (`2.0.0` is current at time of writing), aligned with the MCP 2026-07-28 spec. The `0.x` line was preview and has breaking differences — if you find docs or blog posts referencing `0.4`/`0.6`, treat them as out of date. The `1.x` line still compiles and interoperates, but predates the v2 changes (stateless-by-default HTTP, discovery-first negotiation, roots/sampling/logging deprecations, the Tasks/Apps extension packages) — prefer 2.x for new projects. As of mid-2026, the stable line is **2.x** (`2.2.0` is current at time of writing), aligned with the MCP 2026-07-28 spec. The `0.x` line was preview and has breaking differences — if you find docs or blog posts referencing `0.4`/`0.6`, treat them as out of date. The `1.x` line still compiles and interoperates, but predates the v2 changes (stateless-by-default HTTP, discovery-first negotiation, roots/sampling/logging deprecations, the Tasks/Apps extension packages) — prefer 2.x for new projects.
**Upgrading 1.x → 2.0 (highlights, not exhaustive):** stable v1.x APIs keep working; the deprecated capabilities (roots, sampling, logging) are now `[Obsolete]` with `MCP9005` warnings, experimental APIs moved (the 1.4.x Tasks surface → `ModelContextProtocol.Extensions.Tasks`), and several behaviors flipped (`HttpServerTransportOptions.Stateless` now defaults to `true`; non-object tool results emit raw `structuredContent` values; `Tool.inputSchema` is required on deserialization). OAuth also changed at runtime — `AuthorizationRedirectDelegate``ClientOAuthOptions.AuthorizationCallbackHandler`, RFC 9207 issuer validation, mandatory PKCE S256 in metadata, `application_type` in dynamic registration — and SSE transport failures now propagate the underlying `HttpRequestException`/`TimeoutException`. Before upgrading, read the full [v2.0.0 release notes](https://github.com/modelcontextprotocol/csharp-sdk/releases/tag/v2.0.0). **Upgrading 1.x → 2.0 (highlights, not exhaustive):** stable v1.x APIs keep working; the deprecated capabilities (roots, sampling, logging) are now `[Obsolete]` with `MCP9005` warnings, experimental APIs moved (the 1.4.x Tasks surface → `ModelContextProtocol.Extensions.Tasks`), and several behaviors flipped (`HttpServerTransportOptions.Stateless` now defaults to `true`; non-object tool results emit raw `structuredContent` values; `Tool.inputSchema` is required on deserialization). OAuth also changed at runtime — `AuthorizationRedirectDelegate``ClientOAuthOptions.AuthorizationCallbackHandler`, RFC 9207 issuer validation, mandatory PKCE S256 in metadata, `application_type` in dynamic registration — and SSE transport failures now propagate the underlying `HttpRequestException`/`TimeoutException`. Before upgrading, read the full [v2.0.0 release notes](https://github.com/modelcontextprotocol/csharp-sdk/releases/tag/v2.0.0).
@@ -46,8 +46,8 @@ For HTTP servers you specifically need a TFM that supports ASP.NET Core (so .NET
```bash ```bash
dotnet new console -n MyMcpServer -f net10.0 dotnet new console -n MyMcpServer -f net10.0
cd MyMcpServer cd MyMcpServer
dotnet add package ModelContextProtocol dotnet add package ModelContextProtocol --version 2.2.0
dotnet add package Microsoft.Extensions.Hosting dotnet add package Microsoft.Extensions.Hosting --version 10.0.11
``` ```
### HTTP (Streamable) server ### HTTP (Streamable) server
@@ -55,7 +55,7 @@ dotnet add package Microsoft.Extensions.Hosting
```bash ```bash
dotnet new web -n MyMcpServer -f net10.0 dotnet new web -n MyMcpServer -f net10.0
cd MyMcpServer cd MyMcpServer
dotnet add package ModelContextProtocol.AspNetCore dotnet add package ModelContextProtocol.AspNetCore --version 2.2.0
``` ```
(`dotnet new web` gives you a minimal ASP.NET Core project — exactly what `MapMcp` needs.) (`dotnet new web` gives you a minimal ASP.NET Core project — exactly what `MapMcp` needs.)
@@ -65,7 +65,7 @@ dotnet add package ModelContextProtocol.AspNetCore
```bash ```bash
dotnet new console -n MyMcpClient -f net10.0 dotnet new console -n MyMcpClient -f net10.0
cd MyMcpClient cd MyMcpClient
dotnet add package ModelContextProtocol.Core dotnet add package ModelContextProtocol.Core --version 2.2.0
``` ```
## Optional but commonly useful ## Optional but commonly useful
@@ -18,7 +18,7 @@ For local single-user scenarios, [STDIO](./transport-stdio.md) is simpler.
```bash ```bash
dotnet new web -n MyHttpServer -f net10.0 dotnet new web -n MyHttpServer -f net10.0
cd MyHttpServer cd MyHttpServer
dotnet add package ModelContextProtocol.AspNetCore dotnet add package ModelContextProtocol.AspNetCore --version 2.2.0
``` ```
```csharp ```csharp
@@ -16,8 +16,8 @@ If the user wants a remote/multi-tenant server, use [HTTP Streamable](./transpor
```bash ```bash
dotnet new console -n MyStdioServer -f net10.0 dotnet new console -n MyStdioServer -f net10.0
cd MyStdioServer cd MyStdioServer
dotnet add package ModelContextProtocol dotnet add package ModelContextProtocol --version 2.2.0
dotnet add package Microsoft.Extensions.Hosting dotnet add package Microsoft.Extensions.Hosting --version 10.0.11
``` ```
```csharp ```csharp