Server Run
Each time an MCP server is executed by the Metorial platform, a server run is created. This allows you to track the execution of MCP servers, including their status and associated sessions. Metorial may create multiple server runs for a single session or session connection.
Server Run object
Attributes
object
Stringid
StringThe unique identifier of the server run
type
EnumThe type of the server run
status
EnumThe current status of the server run
server_version_id
StringThe unique identifier of the server version associated with this run
server
Objectserver_deployment
Objectserver_session
Objectcreated_at
DateTimestamp when the server run was created
updated_at
DateTimestamp when the server run was last updated
started_at
DateNullableTimestamp when the server run was started
stopped_at
DateNullableTimestamp when the server run was stopped
{"object": "server.server_run","type": "hosted","status": "active","server": {"object": "server#preview","type": "public"},"server_deployment": {"object": "server.server_deployment#preview","metadata": {},"server": {"object": "server#preview","type": "public"}},"server_session": {"object": "session.server_session#preview","status": "active","mcp": {"object": "mcp","connection_type": "sse","client": {"object": "session.server_session.client","capabilities": {}},"server": {"object": "session.server_session.server","capabilities": {}}},"usage": {}}}
List server runs
List all server runs
Query Parameters
limit
NumberOptionalafter
StringOptionalbefore
StringOptionalcursor
StringOptionalorder
EnumOptionalstatus
UnionOptionalserver_session_id
UnionOptionalserver_implementation_id
UnionOptionalserver_deployment_id
UnionOptionalsession_id
UnionOptionalcurl -X GET "https://api.metorial.com/server-runs" \-H "Authorization: Bearer metorial_sk_..."
Get server run
Get the information of a specific server run
URL Parameters
server_run_id
StringThe unique identifier for the server_run
curl -X GET "https://api.metorial.com/server-runs/ser_Rm4Mnheq2bfEPhBhP7SY" \-H "Authorization: Bearer metorial_sk_..."