auth
Authorize using the AGENTOPS_API_KEY. If the API key is not provided and cannot be found in the directory, ask the user for the API key.
Fetch an AgentOps trace or a single span by ID and read its metrics in the session, with a full-detail variant held back for when you ask for everything.
LABSCO SUMMARY
There is no search and no listing here, so a trace_id or span_id has to come from somewhere else before any of this is useful. The split between get_trace and get_complete_trace is deliberate: the ordinary call returns a trace and its metrics, and the complete variant is described as reserved for explicit requests for all data, which keeps a routine lookup from dumping an entire run into the context.
A lookup path into AgentOps trace data, addressed by identifier rather than browsed.
An AgentOps API key. AGENTOPS_API_KEY is where the server looks for it; the auth tool asks for one at run time when it is not there.
One command plus a key — npx agentops-mcp, then supply credentials
USE CASES
Authorize once, pull the trace and its metrics, then drill into the single span that looks wrong.
The ordinary call returns the trace and its metrics; the complete variant is reserved for when you explicitly want all of the data, which keeps a routine look at a run from filling the context.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
authAuthorize using the AGENTOPS_API_KEY. If the API key is not provided and cannot be found in the directory, ask the user for the API key.
get_complete_traceReserved for explicit requests for COMPLETE or ALL data. Get complete trace information and metrics by trace_id.
get_spanGet span information and metrics by span_id.
get_traceGet trace information and metrics by trace_id.
BEFORE YOU INSTALL
4 tools when we connected. auth is the login step, leaving three read-only observability tools.
Both documented clients run the server on your machine.
CONTEXT COST
Rated by the size of the 4 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx agentops-mcp{
"mcpServers": {
"agentops-mcp": {
"command": "npx",
"args": [
"agentops-mcp"
],
"env": {
"AGENTOPS_API_KEY": ""
}
}
}
}