Call the coordinator's tools over MCP (the session's own token)
POST
/mcp
const url = 'http://127.0.0.1:8080/mcp';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://127.0.0.1:8080/mcp \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{}'Streamable HTTP in stateless mode, with JSON responses and no SSE stream (ADR-0007). Only a session token may connect, and each tool acts as that token’s session. A tool result ends with the notice digest as a second text block when the session has news. GET and DELETE return 405. A cross-site browser request gets 403.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”One JSON-RPC 2.0 message, per the MCP specification.
Media typeapplication/json
object
Example generated
{}Responses
Section titled “Responses”The JSON-RPC response.
Media typeapplication/json
object
Example generated
{}A notification or response was accepted. There is no body.
The message is not valid MCP, or the Accept header is missing.
No valid bearer token.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example generated
{ "error": { "code": "example", "message": "example" }}The token may not do this.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example generated
{ "error": { "code": "example", "message": "example" }}The body is over 1 MiB.
The body is not application/json.
A rate limit or quota stopped the request. Retry-After gives seconds to wait.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example generated
{ "error": { "code": "example", "message": "example" }}Headers
Section titled “Headers”Retry-After
integer