Mcp
For instructions on how to authenticate to use this endpoint, see API overview.
Endpoints
GET | |
POST | |
GET | |
POST | |
GET | |
POST | |
GET | |
POST | |
GET | |
GET | |
POST |
List all mcp analytics feedback
List MCP feedback submissions for the current project, newest first.
Required API key scopes
mcp_analytics:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /mcp_analytics /feedbackExample response
Status 200
Create mcp analytics feedback
Create a new MCP feedback submission for the current project.
Required API key scopes
mcp_analytics:writeRequest parameters
- attempted_toolstringDefault:
- mcp_client_namestringDefault:
- mcp_client_versionstringDefault:
- mcp_protocol_versionstringDefault:
- mcp_transportstringDefault:
- mcp_session_idstringDefault:
- mcp_trace_idstringDefault:
- goalstring
- feedbackstring
- categoryDefault:
other
Response
Example request
POST /api /projects /:project_id /mcp_analytics /feedbackExample response
Status 201
Retrieve mcp analytics intent clusters
Return the most recent intent cluster snapshot for the current project. Returns an empty IDLE snapshot when no clustering run has happened yet.
Required API key scopes
mcp_analytics:readExample request
GET /api /projects /:project_id /mcp_analytics /intent_clustersExample response
Status 200
Create mcp analytics intent clusters
Trigger an asynchronous recompute of the intent cluster snapshot. The task runs in the background; poll the GET endpoint for progress (status transitions to 'idle' or 'error').
Required API key scopes
mcp_analytics:writeResponse
Example request
POST /api /projects /:project_id /mcp_analytics /intent_clusters /recomputeExample response
Status 202
List all mcp analytics missing capabilities
List missing capability reports for the current project, newest first.
Required API key scopes
mcp_analytics:readQuery parameters
- limitinteger
- offsetinteger
Response
Example request
GET /api /projects /:project_id /mcp_analytics /missing_capabilitiesExample response
Status 200
Create mcp analytics missing capabilities
Create a new missing capability report for the current project.
Required API key scopes
mcp_analytics:writeRequest parameters
- attempted_toolstringDefault:
- mcp_client_namestringDefault:
- mcp_client_versionstringDefault:
- mcp_protocol_versionstringDefault:
- mcp_transportstringDefault:
- mcp_session_idstringDefault:
- mcp_trace_idstringDefault:
- goalstring
- missing_capabilitystring
- blockedbooleanDefault:
true
Response
Example request
POST /api /projects /:project_id /mcp_analytics /missing_capabilitiesExample response
Status 201
List all mcp analytics sessions
List MCP sessions for the current project, derived by grouping $mcp_tool_call events by $mcp_session_id. Ordered by newest session start first by default.
Required API key scopes
mcp_analytics:readQuery parameters
- date_fromstring
- date_tostring
- limitintegerDefault:
100 - offsetintegerDefault:
0 - order_bystringDefault:
- searchstringDefault:
Response
Example request
GET /api /projects /:project_id /mcp_analytics /sessionsExample response
Status 200
Create mcp analytics sessions generate
Generate (or return the cached) LLM summary of the agent's goal for a session, derived from its recorded $mcp_intents. The first call summarises and persists the result; subsequent calls return the stored summary.
Required API key scopes
mcp_analytics:writePath parameters
- idstring
Query parameters
- date_fromstring
Response
Example request
POST /api /projects /:project_id /mcp_analytics /sessions /:id /generate_intentExample response
Status 200
Retrieve mcp analytics sessions tool
List a page of the $mcp_tool_call events that belong to a given $session_id, in chronological order.
Required API key scopes
mcp_analytics:readPath parameters
- idstring
Query parameters
- date_fromstring
- limitintegerDefault:
500 - offsetintegerDefault:
0
Response
Example request
GET /api /projects /:project_id /mcp_analytics /sessions /:id /tool_callsExample response
Status 200
Retrieve mcp analytics sessions activity
Aggregate counters, top tools, agent clients, and the most recent tool calls for the last 30 days, computed in one request. Powers the dashboard's activity view; always computed fresh so polling callers watch data arrive.
Required API key scopes
mcp_analytics:readResponse
Example request
GET /api /projects /:project_id /mcp_analytics /sessions /activity_overviewExample response
Status 200
Create mcp analytics sessions intent
Generate (or return the cached) LLM digest of what agents are trying to do with this MCP server, derived from the most recent recorded $mcp_intents across all sessions. Content-addressed cache: only regenerates when new intents arrive. Powers the dashboard's low-volume activity stage.
Required API key scopes
mcp_analytics:readResponse
Example request
POST /api /projects /:project_id /mcp_analytics /sessions /intent_digest