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_id
The UUID of the MCP server
org_id
The unique identifier of the organization.
project_id
The unique identifier of the project.
Request
This endpoint expects an object.
method
MCP method name
request
Request data
response
Response data
mcp_server_id
MCP server ID
request_id
JSON-RPC request ID
protocol_version
MCP protocol version
duration_ms
Duration in milliseconds
sse_event
Whether this is a server-sent event
Response
MCP run created successfully
method
MCP method name
request
Request data
response
Response data
id
Unique identifier for the MCP run
mcp_server_id
MCP server ID
created
Timestamp when the MCP run was created
modified
Timestamp when the MCP run was last modified
request_id
JSON-RPC request ID
protocol_version
MCP protocol version
duration_ms
Duration in milliseconds
sse_event
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