Skip to content
plugmcp
DirectorySkillsCategoriesBlog
EN/δΈ­ζ–‡
Sign inSign up
Home/Servers/Agent Observability

Agent Observability

I
by io.github.KryptosAI

Trace AI agent execution: every tool call, every error, every dollar. Open source, local-first.

Power your agent

Add this server

The publisher's own command. Not a PlugMCP endpoint.

Local command
npx -y [email protected]
Provider
Claude Code
claude mcp add io.github.kryptosai-agent-observability -- npx -y [email protected]

Run in a terminal.

Claude Desktop
{
  "mcpServers": {
    "io.github.kryptosai-agent-observability": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}

claude_desktop_config.json

Step-by-step: add this in Claude

Remote URL or a command on your machine? How the two installs differ

Run on PlugMCP

Host a copy with our keys and logs.

A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.

Launch

Related MCP

View more
  • FirecrawlπŸ”₯ Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
  • N
    NotionToken-auth Notion MCP: pages, databases, blocks, comments, files. Runs headless in CI and agents.
  • Context7Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

Related skills

View all
  • agent-observabilityInstrument AI agents with tracing, token metrics, latency, and cost visibility.

Questions

How do I install Agent Observability?
Copy the stdio config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
Does Agent Observability need an API key?
No required environment variable is listed on this record.
What transport does Agent Observability use?
Agent Observability runs locally over stdio.
When was Agent Observability last checked?
Last checked 2026-10-16. Trace AI agent execution: every tool call, every error, every dollar. Open source, local-first.

Trace AI agent execution: every tool call, every error, every dollar. Open source, local-first.

agent-observability

Open source agent observability β€” see what your agents did, why they failed, and what it cost. Runs locally. No cloud required.

Quick Start

One command. No manual config. No copy-paste.

npx agent-obs@latest setup

This auto-detects your AI agent (opencode, Claude Code, Cursor) and configures everything:

  • Adds agent-obs to your MCP config
  • Adds the self-reporting instruction
  • Tells you what to do next

Then restart your agent. Every action will now self-report.

agent-obs dashboard    # http://localhost:9400 β€” see your sessions appear

What you'll see

After running a task in your agent, the dashboard shows:

  • Every tool call with duration and status
  • A-F session grade (how efficient was your agent?)
  • Cost per session in tokens and dollars
  • Full audit trail of what was read, edited, and executed

Manual setup (if setup can't detect your agent)

opencode: Add to opencode.json:

{
  "mcp": {
    "agent-obs": {
      "command": "npx",
      "args": ["-y", "agent-obs@latest", "server"],
      "enabled": true
    }
  }
}

Claude Code: Create .mcp.json:

{
  "mcpServers": {
    "agent-obs": {
      "command": "npx",
      "args": ["-y", "agent-obs@latest", "server"]
    }
  }
}

Cursor: Add to Cursor Settings > MCP:

{
  "mcpServers": {
    "agent-obs": {
      "command": "npx",
      "args": ["-y", "agent-obs@latest", "server"]
    }
  }
}

See Agent-Specific Setup below for detailed per-platform instructions including self-reporting directives.

Note: All data is written to a local SQLite database in ~/.agent-observability/. No data leaves your machine.

Proxy mode (fallback)

For agents that can't self-report, wrap any MCP server and every tool invocation gets traced automatically:

agent-obs proxy --desc "fix login bug" -- npx @modelcontextprotocol/server-filesystem /tmp

Proxy mode captures only MCP tool calls (~30% of typical agent actions). Prefer the setup / MCP server approach above.

Agent-Specific Setup

Claude Code

  1. MCP Config β€” Create .mcp.json in your project root:
{
  "mcpServers": {
    "agent-obs": {
      "command": "npx",
      "args": ["-y", "agent-obs@latest", "server"]
    }
  }
}
  1. Self-reporting instruction β€” Create .claude/instructions.md (or reference the existing SKILL.md under .claude/skills/agent-obs/SKILL.md):
After every tool call, report to agent-obs's log_tool_call.
Start each task with start_session. End with end_session.
  1. Verify β€” Run agent-obs dashboard, open http://localhost:9400, and look for your session after the agent completes a task.

Cursor

  1. MCP Config β€” Add to Cursor's MCP settings (~/.cursor/mcp.json, or Settings β†’ MCP β†’ Add new global MCP server):
{
  "mcpServers": {
    "agent-obs": {
      "command": "npx",
      "args": ["-y", "agent-obs@latest", "server"]
    }
  }
}
  1. Self-reporting instruction β€” Create .cursorrules (or .cursor/rules/agent-obs.md):
After every tool call, you MUST call the agent-obs MCP server's log_tool_call tool.
Include toolName, status (success/error), outputSummary, and durationMs.
Start each session with start_session and end with end_session.
  1. Verify β€” Run agent-obs dashboard, open http://localhost:9400, and look for your session after the agent completes a task.

Architecture

                   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                   β”‚   agent-obs server       β”‚
                   β”‚    (self-reporting)      β”‚
                   β”‚                          β”‚
                   β”‚ Agent calls obs_record_* β”‚
                   β”‚ tools directly via MCP   β”‚
                   β”‚ β€’ tool calls             β”‚
                   β”‚ β€’ token usage            β”‚
                   β”‚ β€’ decisions              β”‚
                   β”‚ β€’ grades                 β”‚
                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              β”‚
                              β–Ό
                   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                   β”‚     agent-obs proxy      β”‚
                   β”‚ (fallback β€” MCP-only)    β”‚
                   β”‚                          β”‚
MCP Client ───────▢│ intercepts tool calls ──▢│ MCP Server
  (Claude/Cursor)   β”‚ logs to SQLite           β”‚  (filesystem,
                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜   github, etc.)
                              β”‚
                              β–Ό
                   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                   β”‚   ~/.agent-observability β”‚
                   β”‚       SQLite DB          β”‚
                   β”‚                          β”‚
                   β”‚  β€’ sessions              β”‚
                   β”‚  β€’ tool_calls            β”‚
                   β”‚  β€’ token_usage           β”‚
                   β”‚  β€’ decisions             β”‚
                   β”‚  β€’ grades                β”‚
                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              β”‚
                              β–Ό
                   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                   β”‚   agent-obs dashboard    β”‚
                   β”‚     (port 9400)          β”‚
                   β”‚                          β”‚
                   β”‚  GET  /api/sessions      β”‚
                   β”‚  GET  /api/sessions/:id  β”‚
                   β”‚  GET  /api/search?q=     β”‚
                   β”‚  GET  /api/stats         β”‚
                   β”‚  POST /api/export        β”‚
                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

API Reference

REST Endpoints (Dashboard)

MethodPathDescription
GET/api/sessionsList all sessions. Query params: ?limit=20&offset=0&grade=B
GET/api/sessions/:idGet full session detail with all tool calls, tokens, decisions, and grades
GET/api/sessions/:id/tool-callsList tool calls for a session. Query params: ?status=error&server=filesystem
GET/api/sessions/:id/tokensGet token usage history for a session
GET/api/sessions/:id/decisionsGet decision points for a session
GET/api/searchFull-text search across tool call inputs/outputs. Query param: ?q=read_file
GET/api/statsAggregate statistics: total sessions, avg grade, total tokens, total cost
POST/api/exportExport session data as JSON. Body: { "sessionIds": ["abc123"], "format": "json" }
GET/api/healthHealth check. Returns { "status": "ok", "dbSize": "2.4MB", "sessionCount": 47 }

MCP Tools (Server Mode)

ToolParametersReturns
obs_record_tool_callsessionId, toolName, serverName, duration (ms), status (success/error), input, output{ "id": "call-uuid", "recorded": true }
obs_record_token_usagesessionId, inputTokens, outputTokens, model{ "totalTokens": 1850, "estimatedCost": "$0.023" }
obs_record_decisionsessionId, context, options, chosen, reasoning{ "id": "decision-uuid", "recorded": true }
obs_record_gradesessionId, grade (A/B/C/D/F), reasoning{ "grade": "B", "recorded": true }
obs_get_session_reportsessionIdFull session JSON with all calls, tokens, decisions, grade
obs_list_sessionslimit, offsetArray of { id, description, grade, createdAt, tokenTotal, estimatedCost }

What Gets Tracked

Every tool call

  • Tool name β€” e.g. read_file, execute_command, search_code
  • Server β€” which MCP server handled it
  • Duration β€” wall-clock milliseconds
  • Status β€” success or error
  • Input β€” full arguments passed to the tool
  • Output β€” full result returned (truncated at 64KB for storage)

Token consumption

  • Input tokens β€” prompt and context
  • Output tokens β€” generated response
  • Total tokens β€” sum per session
  • Per-call breakdown β€” token delta for each LLM round-trip

Cost estimation

Costs are estimated based on published API pricing:

ModelInput (per 1M tokens)Output (per 1M tokens)
Claude 3.5 Sonnet$3.00$15.00
Claude 3 Opus$15.00$75.00
GPT-4o$2.50$10.00
GPT-4 Turbo$10.00$30.00

Costs are tracked per session and displayed in the dashboard. You can add custom model pricing via ~/.agent-observability/models.json.

Session grades

Every session receives a letter grade based on efficiency and correctness:

GradeLabelCriteria
ACleanZero errors, minimal token waste, no unnecessary tool calls
BMinor issuesSome inefficiencies, but no failures
CInefficientExcessive token usage, redundant tool calls, recoverable errors
DRiskySignificant problems β€” failed tool calls, high cost, wrong tools chosen
FFailedErrors prevented task completion, or agent abandoned the session

Decision points

When the agent has multiple possible actions, it can record why it chose one over another. Example:

{
  "context": "need to read a file β€” it could be at src/config.ts or lib/config.ts",
  "options": ["read_file src/config.ts", "glob **/config.ts", "grep 'CONFIG' *.ts"],
  "chosen": "glob **/config.ts",
  "reasoning": "File might not exist at the expected path; glob guarantees finding it regardless of location"
}

Decision points create an audit trail of agent reasoning, making it possible to understand not just what happened, but why.

Full audit trail

Every action is timestamped and linked to a session. The audit trail answers:

  • Who (which agent/user) accessed what data?
  • When did each tool call happen?
  • What data was read or modified?
  • Was the action authorized?

Grade System

Grades are assigned manually by the agent via obs_record_grade or automatically by the dashboard based on session statistics:

  • A = Clean β€” No issues detected. Every tool call succeeded, token usage was efficient relative to task complexity, and the session completed its stated goal.
  • B = Minor issues β€” Some inefficiencies (e.g., reading the same file twice, calling a tool that returned empty results and then trying it again). No failures.
  • C = Inefficient β€” Needs attention. Redundant tool calls, excessive token consumption, or recoverable errors that were eventually resolved.
  • D = Risky β€” Significant problems. Multiple failed tool calls, unusually high cost for the task, or the agent chose demonstrably wrong tools.
  • F = Failed β€” Errors occurred that prevented task completion, or the agent abandoned the session.

Grades accumulate over time. The /api/stats endpoint shows your average grade and grade distribution.

Why This Exists

AI agents are a black box. You tell Claude Code or Cursor to fix a bug, refactor a module, or add a feature β€” and minutes later you have a diff. But what actually happened in between? How many tool calls did it make? How many tokens did it burn? Which files did it read? Did it try three approaches before landing on one? You have no idea.

This isn't just academic curiosity. Without observability:

  • You can't estimate costs. A session that feels quick might have burned $5 in API calls. A session that felt slow might have cost $0.50. You're operating blind.
  • You can't debug failures. The agent produced broken code β€” was it because it read the wrong file? Used a deprecated API? Misunderstood the task? Without traces, you're guessing.
  • You can't improve your prompts. Is the agent reading too many files? Calling too many tools? Wasting tokens on irrelevant context? You need data to tune your system instructions.
  • You can't audit access. If an agent reads a file containing secrets or API keys, you should know about it. If it makes an unexpected network call, you need to see it.

Agent Observability gives you a flight recorder for every agent session. It answers: what happened, why it happened, and what it cost.

Provenance

This project combines ideas from three prior projects:

AgentShelf (Shopify AI readiness scanner)

AgentShelf scans a Shopify store's theme, apps, admin settings, and custom code to produce an AI readiness score. As it scans, it builds a full audit trail β€” every file read, every API call made, every finding logged with a timestamp and data source. Pattern adopted here: structured audit trail with per-action timestamps, data source attribution, and session-level summarization.

Veros (FHIR clinical ground truth)

Veros generates synthetic longitudinal patient records (FHIR R4) and uses them to validate clinical decision support agents. Its core principle: "no trace, no answer." Every snippet of clinical reasoning produced by an AI must be traceable back to the specific data element (lab result, medication, condition) that supports it. Pattern adopted here: decision point tracking β€” every agent choice must cite its basis, making reasoning auditable and contestable.

MCP Observatory

MCP Observatory secures MCP servers β€” testing them for vulnerabilities, schema drift, and attack surfaces before agents depend on them. It's used by 850+ developers weekly and powers CI pipelines for MCP server security. Use Observatory to secure your MCP servers. Use agent-obs to trace the agents that depend on them. Observatory validates; agent-obs observes.

Pattern adopted here: tool health scoring, session grading (A-F), and automatic degradation flags.

Open Source vs Cloud

This open source package (agent-observability on npm) is the core engine. It's MIT licensed and will always remain free and local-first:

  • CLI tools (proxy, server, dashboard)
  • Local SQLite storage
  • REST API
  • MCP server tools
  • Full audit trail, cost estimation, and session grading

A cloud version (app.agentobservability.dev) is in development with additional features:

  • Team dashboards with shared session history
  • Alerting (Slack/email when an agent's grade drops below C)
  • Historical analytics (cost trends, efficiency trends over months)
  • Role-based access control for audit trails
  • SOC 2 compliant infrastructure

The open source package will always be able to run independently. The cloud version is additive, not a replacement.

License

MIT

How do I install Agent Observability?
Copy the stdio config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
Does Agent Observability need an API key?
No required environment variable is listed on this record.
What transport does Agent Observability use?
Agent Observability runs locally over stdio.
When was Agent Observability last checked?
Last checked 2026-10-16. Trace AI agent execution: every tool call, every error, every dollar. Open source, local-first.

No tool list yet. Remote servers get one after the first health check.

plugmcp

Plug any tool into any agent. MCP servers for people who do not write servers. Gateway for volume, n8n for apps.

  • github.com/TODO
  • x.com/TODO
  • linkedin.com/company/TODO

PlugMCP, 2026

Product
  • Browse
  • Install
  • Host your own
  • Pricing
  • Voice mode
  • Browser
Directory
  • All MCP servers
  • MCP Apps
  • Tools
  • Agent skills
  • Categories
  • New
  • Voice
  • Submit a server
Developers
  • Docs
  • Blog
  • Club
  • Work with us
  • What is MCP
  • What is WebMCP
  • Status
Company
  • About
  • Contact
  • Terms
  • Privacy
  • DPA