agentsentriopen-source LLM observabilityDashboard

guide

MCP server

Expose AgentSentri's P0 observability skills as agentsentri.* MCP tools over Streamable HTTP at /api/mcp/{projectId}, so MCP hosts can read and write your project's data as tools. AgentSentri is independent observability — this is not affiliated with or endorsed by Anthropic or the MCP maintainers.

At a glance

  • Endpoint: POST /api/mcp/{projectId} — stateless JSON-RPC 2.0 over Streamable HTTP.
  • 9 tools, namespaced agentsentri.<skill>; the 5 read tools carry readOnlyHint.
  • Auth: OAuth 2.1 for interactive clients, or a Bearer sk-as-* project key for CI.
  • Per-project MCP daily budget (surface=mcp), independent of the A2A cap.
  • Structured tools only — no natural-language router; tools only (no resources/prompts) in v1.

How it works

Second head on one seam
MCP is a second protocol head on the same dispatchSkill seam as A2A — it reuses the 9 P0 skills and their schemas verbatim, so there is no duplicated skill logic and no new skills.
Tools
tools/list advertises each skill as agentsentri.<skill> with a JSON-Schema inputSchema derived from the skill's own validation schema. tools/call routes through dispatchSkill; a skill error surfaces as a CallToolResult with isError.
Auth
OAuth 2.1 (interactive) via the built-in authorization server, or a Bearer sk-as-* project key (programmatic). Credentials are discriminated by the sk-as- prefix; the key is never advertised in OAuth discovery.
Authorization
A project key acts only on its own project. An OAuth user acts only on projects its org owns, and the org role gates mutating tools: member+ to write, viewer is read-only.

Tools

ToolKindPurpose
agentsentri.query_tracesreadQuery the project's traces (pagination + filters).
agentsentri.get_tracereadGet one trace and its observations.
agentsentri.list_scoresreadList scores (filter by trace/observation).
agentsentri.list_notesreadList notes (filter by trace/observation).
agentsentri.get_eval_runreadGet an eval run's status/result.
agentsentri.create_scorewriteCreate a numeric/categorical score.
agentsentri.create_notewriteCreate a free-text note.
agentsentri.enqueue_annotation_itemwriteAdd an item to an annotation queue.
agentsentri.trigger_eval_runwriteTrigger an evaluation run.

Connecting

OAuth 2.1 (interactive): the client discovers the authorization server from /.well-known/oauth-protected-resource, registers dynamically, and the user signs in and consents (PKCE required). Bearer key (programmatic): send Authorization: Bearer sk-as-… — the key's project must match the path project.

Budget

Every tools/call is metered surface=mcp and counts toward the per-project MCP daily cap (default 50,000/UTC-day); exceeding it returns a retryable error and does not affect the A2A cap. The control plane (initialize / tools/list / ping) is free.