mirror of
https://github.com/github/awesome-copilot.git
synced 2026-08-21 16:36:51 +00:00
chore: publish from main
This commit is contained in:
@@ -19,7 +19,7 @@ All packages live under the [`ModelContextProtocol` NuGet profile](https://www.n
|
||||
|
||||
## 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).
|
||||
|
||||
@@ -46,8 +46,8 @@ For HTTP servers you specifically need a TFM that supports ASP.NET Core (so .NET
|
||||
```bash
|
||||
dotnet new console -n MyMcpServer -f net10.0
|
||||
cd MyMcpServer
|
||||
dotnet add package ModelContextProtocol
|
||||
dotnet add package Microsoft.Extensions.Hosting
|
||||
dotnet add package ModelContextProtocol --version 2.2.0
|
||||
dotnet add package Microsoft.Extensions.Hosting --version 10.0.11
|
||||
```
|
||||
|
||||
### HTTP (Streamable) server
|
||||
@@ -55,7 +55,7 @@ dotnet add package Microsoft.Extensions.Hosting
|
||||
```bash
|
||||
dotnet new web -n MyMcpServer -f net10.0
|
||||
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.)
|
||||
@@ -65,7 +65,7 @@ dotnet add package ModelContextProtocol.AspNetCore
|
||||
```bash
|
||||
dotnet new console -n MyMcpClient -f net10.0
|
||||
cd MyMcpClient
|
||||
dotnet add package ModelContextProtocol.Core
|
||||
dotnet add package ModelContextProtocol.Core --version 2.2.0
|
||||
```
|
||||
|
||||
## Optional but commonly useful
|
||||
|
||||
Reference in New Issue
Block a user