Platform MCP (JSON-RPC)
/platform/mcp
Model Context Protocol endpoint for reading and managing a Truto environment from an MCP client such as Claude or ChatGPT. Accepts one JSON-RPC 2.0 request per call. Batches are rejected with a 400. A message with no id (a notification) gets a 202 with no body. GET and DELETE return 405, because the server is stateless and has no event stream or sessions.
Methods: initialize (legacy versions only), server/discover, ping (legacy versions only), tools/list and tools/call.
Tools: one per operation of this API, so what a user can do through the API they can do over MCP. A few tools take friendlier arguments (get_connection_profile, list_integrations, list_integrated_accounts, list_logs, start_sync_job_run, create_webhook and others); the rest are named from the method and path (list_tenants, update_tenant, delete_webhook) and take the path parameters, a query object and a body. With platform:operate, list_unified_records, get_unified_record, create_unified_record, update_unified_record, delete_unified_record and run_unified_method call the unified API, and the *_proxy_record tools and run_proxy_method call the proxy API, on one integrated account (truto_response_format=debug is refused). Not available over MCP: anything that reads or changes credentials, API, SCIM and integrated account tokens, link, session and form tokens, static gates, MCP servers of integrated accounts, SSO and SCIM settings, payment sessions, /batch-request and the assistant. Creating or changing sync jobs, sync job templates, workflows, integration definitions and unified mappings is also not available, because they run code with the account's credentials (reading and deleting them is); nor is a body that sets an override or an account's context. Each tool returns its result as JSON text and as structuredContent; a failed call returns isError: true.
Protocol versions: 2026-07-28 is stateless. It has no initialize. Each request carries _meta["io.modelcontextprotocol/protocolVersion"] in its params, and the MCP-Protocol-Version, Mcp-Method and Mcp-Name headers must match the body. Call server/discover to get the supported versions and capabilities. The legacy versions 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05 start with initialize.
Auth: send Authorization: Bearer <token>. The token is an OAuth 2.1 access token (used by Claude and ChatGPT custom connectors; clients find the authorization server from /.well-known/oauth-protected-resource/platform/mcp), a Truto API token, or a dashboard session. An OAuth token has platform:read plus any of platform:operate, platform:write and platform:delete, each granted on its own, and is bound to the one environment the user chose when approving access. The user ticks the scopes and picks the environment on the consent page. platform:read covers reads, platform:operate the actions (test, validate, refresh) and every unified and proxy API call, platform:write creates and changes, and platform:delete deletes. A 401 carries WWW-Authenticate: Bearer resource_metadata="...", scope="platform:read". Calling a tool with an OAuth token that lacks its scope returns a 403 with WWW-Authenticate: Bearer error="insufficient_scope", scope="<the scopes granted plus the one needed>", resource_metadata="...".
Errors
| Status | Description |
|---|---|
400 | Malformed JSON, a batch request, an invalid request, an unsupported protocol version, or a protocol header that does not match the body. The body is a JSON-RPC error. |
401 | Missing or invalid credentials. The WWW-Authenticate header points to the OAuth protected resource metadata. |
403 | The caller is not allowed to use the Platform MCP, for example an integrated account token or a cross-origin request that uses a session cookie. Also returned with WWW-Authenticate: Bearer error="insufficient_scope" when an OAuth token calls a tool whose scope it lacks (JSON-RPC error code -32001). The body is a JSON-RPC error. |
404 | Unknown method on protocol version 2026-07-28. The body is a JSON-RPC error. |
curl -X POST 'https://api.truto.one/platform/mcp' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json'const response = await fetch('https://api.truto.one/platform/mcp', {
method: 'POST',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/platform/mcp"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
response = requests.post(url, headers=headers, params=params)
print(response.json())