Stateless MCP endpoint using Streamable HTTP transport. Accepts JSON-RPC requests and notifications. Session management is handled internally by Connect—clients should not send mcp-session-id headers. Requires service token with mcp scope.
POST
/
connect
/
{namespace}
/
{connectionId}
/
mcp
JavaScript
Copy
Ask AI
import Smithery from '@smithery/api';const client = new Smithery({ apiKey: process.env['SMITHERY_API_KEY'], // This is the default and can be omitted});const jsonRpcResponse = await client.experimental.connect.mcp.call('connectionId', { namespace: 'namespace',});console.log(jsonRpcResponse.id);
import Smithery from '@smithery/api';const client = new Smithery({ apiKey: process.env['SMITHERY_API_KEY'], // This is the default and can be omitted});const jsonRpcResponse = await client.experimental.connect.mcp.call('connectionId', { namespace: 'namespace',});console.log(jsonRpcResponse.id);