Conversation
|
Thanks @Sirajmx — this fixes four real integration scenarios that were actively broken: Claude Desktop / claude.ai web via Streamable HTTP, browser-origin requests via CORS, proxied deployments via Rebased cleanly against current Merging now. Following up shortly with a small PR adding the SSE endpoint back as a legacy fallback ( |
* Add SSE legacy fallback to buyer MCP server (ar-5xcx) Mount legacy SSE transport at /mcp-sse alongside the Streamable HTTP transport at /mcp. Mirrors the seller's pattern; keeps older MCP clients working without breaking the current standard endpoint. bead: ar-5xcx Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Update tests for dual-transport MCP mount (ar-5xcx) - Rename TestSSEMounting → TestMCPMounting - test_mount_mcp_adds_route: assert both /mcp and /mcp-sse present - test_buyer_api_app_has_mcp_mounted: same dual-transport assertions - test_settings_default_cors_origins: accept wildcard (correct for MCP server) - test_app_cors_middleware_uses_settings: allow wildcard, check credentials=False bead: ar-5xcx Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Add Streamable HTTP smoke test (ar-5xcx) New tests/unit/test_mcp_streamable_http.py: - TestMCPRoutePresence: verifies both /mcp and /mcp-sse are mounted - test_streamable_http_initialize_handshake: POSTs initialize payload to /mcp via ASGI in-process transport, asserts 200 + MCP fields bead: ar-5xcx Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Update buyer MCP docs for canonical /mcp + /mcp-sse/sse legacy (ar-5xcx) All buyer-inbound doc URLs updated from /mcp/sse/sse → /mcp (Streamable HTTP). Legacy SSE fallback noted as /mcp-sse/sse for older clients. Files changed: - docs/claude-desktop-setup.md - docs/multi-client-setup.md - docs/architecture/mcp-server.md (mounting section + diagram) - docs/ai-assistant/developer-setup.md bead: ar-5xcx Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Fix stale seller MCP path in deployment-ops-guide (ar-u3ox) Three seller-outbound endpoint references corrected: - Buyer→seller MCP connectivity description: /mcp/sse → /mcp-sse/sse (line 708) - MCP SSE troubleshooting check 4: /mcp/sse → /mcp-sse/sse (line 974) - MCP client troubleshooting check 2: /mcp/sse → /mcp-sse/sse (line 1022) Also updates buyer-inbound MCP doc URLs in the same file: - Overview endpoint: /mcp/sse/sse → /mcp (Streamable HTTP) - Claude Desktop config: /mcp/sse/sse → /mcp - Streamable HTTP client example: /mcp/sse/sse → /mcp bead: ar-u3ox Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
claude.ai (Connector Configuration)
Use the following endpoint for MCP integration:
https://host-url/mcp
Claude Desktop (Local MCP Server Configuration)
If you're running the MCP server locally, add this configuration:
{
"mcpServers": {
"buyer-agent-local": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8001/mcp/"
]
}
}
}