|
26 | 26 | ), |
27 | 27 | config=StringSchema( |
28 | 28 | "JSON string with server config (required for 'add'). " |
29 | | - "Fields: command, args, env, url, headers, tool_timeout, enabled_tools. " |
30 | | - "Example: {\"command\": \"npx\", \"args\": [\"-y\", \"@example/mcp-server\"]}", |
| 29 | + "Fields: command, args, env, url, type, headers, tool_timeout, enabled_tools, enabled. " |
| 30 | + "For ambiguous HTTP endpoints, omit type to allow automatic streamableHttp then SSE fallback. " |
| 31 | + "Set type to 'sse' or 'streamableHttp' only to force a transport. " |
| 32 | + "Headers remain per-server; for example " |
| 33 | + "{\"url\": \"https://example.com/mcp\", " |
| 34 | + "\"headers\": {\"Authorization\": \"Bearer ...\"}}. " |
| 35 | + "Stdio example: {\"command\": \"npx\", \"args\": [\"-y\", \"@example/mcp-server\"]}", |
31 | 36 | nullable=True, |
32 | 37 | ), |
33 | 38 | updates=StringSchema( |
34 | 39 | "JSON string with fields to update (for 'edit'). " |
35 | | - "Example: {\"tool_timeout\": 60, \"enabled_tools\": [\"*\"]}", |
| 40 | + "Use this for targeted per-server compatibility overrides such as " |
| 41 | + "{\"type\": \"sse\", \"headers\": {\"Accept\": \"text/event-stream\"}} " |
| 42 | + "or {\"tool_timeout\": 60, \"enabled_tools\": [\"*\"]}.", |
36 | 43 | nullable=True, |
37 | 44 | ), |
38 | 45 | confirmed=StringSchema( |
@@ -67,6 +74,8 @@ def description(self) -> str: |
67 | 74 | "'edit' updates server config (requires name + updates JSON), " |
68 | 75 | "'enable'/'disable' toggles a server on/off, " |
69 | 76 | "'restart' reconnects a server. " |
| 77 | + "For HTTP MCP compatibility, leave type unset for automatic streamableHttp/SSE fallback " |
| 78 | + "or use per-server type and headers to force one transport. " |
70 | 79 | "For credentials, use the separate 'manage_credentials' tool." |
71 | 80 | ) |
72 | 81 |
|
|
0 commit comments