Skip to main content
POST
/
connect
/
{namespace}
/
{connectionId}
/
mcp
JavaScript
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);
{
  "jsonrpc": "<string>",
  "id": "<string>",
  "result": "<unknown>"
}

Authorizations

Authorization
string
header
required

Smithery API key as Bearer token

Path Parameters

namespace
string
required
connectionId
string
required

Response

JSON-RPC response

jsonrpc
string
required
Allowed value: "2.0"
id
required
result
any