Call the MCP server
The Model Context Protocol server (Streamable HTTP transport). Send a JSON-RPC 2.0 request such as initialize, tools/list or tools/call. Requires an OAuth 2.1 bearer token carrying at least one of mcp:read, mcp:write or mcp:run; tools/list returns only the tools those scopes cover. Unauthenticated requests get 401 with a WWW-Authenticate header pointing at the protected resource metadata, which MCP clients use to start the OAuth flow.
Request
- Base URL: https://app.stuntdouble.io
- URL: https://app.stuntdouble.io/api/mcp
- Auth: one of:
- OAuth 2 (authorization code, authorization URL https://app.stuntdouble.io/oauth/authorize, token URL https://app.stuntdouble.io/oauth/token, scopes: mcp:read)
- OAuth 2 (authorization code, authorization URL https://app.stuntdouble.io/oauth/authorize, token URL https://app.stuntdouble.io/oauth/token, scopes: mcp:write)
- OAuth 2 (authorization code, authorization URL https://app.stuntdouble.io/oauth/authorize, token URL https://app.stuntdouble.io/oauth/token, scopes: mcp:run)
Headers
The MCP protocol version negotiated at initialize, sent on every later request. Omitted, the server assumes 2025-03-26. An unsupported value is a 400.
Session id returned by initialize.
Request body
Example request
{
"method": "initialize"
}Response
A JSON-RPC response, as JSON or as a server-sent event stream.
Changes
No recorded changes to this operation across all 1 revision of this API.