diff --git a/docs/guides/publishing/publish-server.md b/docs/guides/publishing/publish-server.md index 67e288d..c4f7c4f 100644 --- a/docs/guides/publishing/publish-server.md +++ b/docs/guides/publishing/publish-server.md @@ -371,7 +371,7 @@ Add the `remotes` field to your `server.json` (can coexist with `packages`): ### Requirements - **Service endpoint**: Your MCP server must be accessible at the specified URL -- **Transport protocol**: Choose from `sse` (Server-Sent Events) or `streamable-http` +- **Transport protocol**: Choose from `streamable-http` (recommended) or `sse` (deprecated) - **URL validation**: For domain namespaces only (see URL requirements below) ### Example server.json @@ -384,8 +384,8 @@ Add the `remotes` field to your `server.json` (can coexist with `packages`): "version": "2.0.0", "remotes": [ { - "type": "sse", - "url": "https://mcp.yourcompany.com/sse" + "type": "streamable-http", + "url": "https://mcp.yourcompany.com/http" } ] } @@ -399,12 +399,12 @@ You can offer multiple connection methods: { "remotes": [ { - "type": "sse", - "url": "https://mcp.yourcompany.com/sse" + "type": "streamable-http", + "url": "https://mcp.yourcompany.com/http" }, { - "type": "streamable-http", - "url": "https://mcp.yourcompany.com/http" + "type": "sse", + "url": "https://mcp.yourcompany.com/sse" } ] } @@ -423,11 +423,11 @@ Configure headers that clients should send when connecting: { "remotes": [ { - "type": "sse", - "url": "https://mcp.yourcompany.com/sse", + "type": "streamable-http", + "url": "https://mcp.yourcompany.com/http", "headers": [ { - "name": "X-API-Key", + "name": "X-API-Key", "description": "API key for authentication", "isRequired": true, "isSecret": true diff --git a/docs/reference/server-json/generic-server-json.md b/docs/reference/server-json/generic-server-json.md index d5e2609..549ce79 100644 --- a/docs/reference/server-json/generic-server-json.md +++ b/docs/reference/server-json/generic-server-json.md @@ -260,8 +260,8 @@ This will essentially instruct the MCP client to execute `dnx Knapcode.SampleMcp "version": "2.0.0", "remotes": [ { - "type": "sse", - "url": "http://mcp-fs.anonymous.modelcontextprotocol.io/sse" + "type": "streamable-http", + "url": "http://mcp-fs.anonymous.modelcontextprotocol.io/http" } ], "_meta": { @@ -531,8 +531,8 @@ The `dnx` tool ships with the .NET 10 SDK, starting with Preview 6. ], "remotes": [ { - "type": "sse", - "url": "https://mcp.anonymous.modelcontextprotocol.io/sse", + "type": "streamable-http", + "url": "https://mcp.anonymous.modelcontextprotocol.io/http", "headers": [ { "name": "X-API-Key", @@ -553,8 +553,8 @@ The `dnx` tool ships with the .NET 10 SDK, starting with Preview 6. ] }, { - "type": "streamable-http", - "url": "https://mcp.anonymous.modelcontextprotocol.io/http" + "type": "sse", + "url": "https://mcp.anonymous.modelcontextprotocol.io/sse" } ], "_meta": {