原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Agent Observability

作者:KryptosAI版本 1.0.7i★ –i在你的电脑上运行
注册名称io.github.KryptosAI/agent-observability

安装

概览

作者提供的说明(英文原文)

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

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "agent-observability": {
      "command": "npx",
      "args": [
        "-y",
        "agent-obs"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add agent-observability -- npx -y agent-obs

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "agent-observability": {
      "command": "npx",
      "args": [
        "-y",
        "agent-obs"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "agent-observability": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "agent-obs"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 KryptosAI 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32461 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32461 个服务器的 19% 更新
  • 基础检查结果等于或优于此分类中其他 32461 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Agent Observability 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.0.7)于3个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, dotnet-mcp

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211昨天更新
安装

dotnet-mcp

作者:Skymly

MCP server for .NET symbols, XAML, source generators, and restricted workspace edit

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

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 m

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx