Record MCP Run

Record a new MCP tool execution. This endpoint is typically called automatically when tools are invoked, but can be used manually for: - Custom tool integrations - Testing and debugging - Simulating tool calls - Recording manual operations The run record captures the complete interaction for audit and analysis. The `mcp_server_id` in the request body must match the `mcp_server_id` path parameter.

Authentication

AuthorizationBearer

API key or access token, sent as Authorization: Bearer <token>. The simplest option: create an API key in your dashboard under Settings, then paste it here.

OR
AuthorizationBearer

API key or access token, sent as Authorization: Bearer <token>. The simplest option: create an API key in your dashboard under Settings, then paste it here.

Path parameters

mcp_server_idstringRequiredformat: "uuid"
The UUID of the MCP server
org_idstringRequiredformat: "uuid"
The unique identifier of the organization.
project_idstringRequiredformat: "uuid"
The unique identifier of the project.

Request

This endpoint expects an object.
methodstringRequired1-64 characters
MCP method name
requestmap from strings to anyRequired
Request data
responsemap from strings to anyRequired
Response data
mcp_server_idstringRequiredformat: "uuid"
MCP server ID
request_idstring or nullOptional<=255 characters

JSON-RPC request ID

protocol_versionstring or nullOptional<=32 characters
MCP protocol version
duration_msinteger or nullOptional>=0
Duration in milliseconds
sse_eventbooleanOptionalDefaults to false

Whether this is a server-sent event

Response

MCP run created successfully
methodstring1-64 characters
MCP method name
requestmap from strings to any
Request data
responsemap from strings to any
Response data
idstringformat: "uuid"
Unique identifier for the MCP run
mcp_server_idstringformat: "uuid"
MCP server ID
createdstring
Timestamp when the MCP run was created
modifiedstring
Timestamp when the MCP run was last modified
request_idstring or nullOptional<=255 characters

JSON-RPC request ID

protocol_versionstring or nullOptional<=32 characters
MCP protocol version
duration_msinteger or nullOptional>=0
Duration in milliseconds
sse_eventbooleanOptionalDefaults to false

Whether this is a server-sent event

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error