Agent Observability

v1.1.0
io.github.blueskylineassets/agent-observability Checked 1 day ago Published 11 months ago

Agent observability: structured logging, cost tracking, and compliance audit trails

Values you need

VariableWhat it is
AGENT_OBS_API_KEYrequired secret API key for the Agent Observability service (get one at POST /v1/register)
AGENT_OBS_API_URLoptional URL of the Agent Observability API (defaults to https://api-production-0c55.up.railway.app)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add agent-observability -e 'AGENT_OBS_API_KEY=<AGENT_OBS_API_KEY>' -- npx -y agent-observability-mcp@1.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "agent-observability": {
      "args": [
        "-y",
        "agent-observability-mcp@1.1.0"
      ],
      "command": "npx",
      "env": {
        "AGENT_OBS_API_KEY": "<AGENT_OBS_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "agent-observability": {
      "args": [
        "-y",
        "agent-observability-mcp@1.1.0"
      ],
      "command": "npx",
      "env": {
        "AGENT_OBS_API_KEY": "<AGENT_OBS_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "AGENT_OBS_API_KEY",
      "id": "agent-obs-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "agent-observability": {
      "args": [
        "-y",
        "agent-observability-mcp@1.1.0"
      ],
      "command": "npx",
      "env": {
        "AGENT_OBS_API_KEY": "${input:agent-obs-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.agent-observability]
command = "npx"
args = ["-y", "agent-observability-mcp@1.1.0"]
env = { "AGENT_OBS_API_KEY" = "<AGENT_OBS_API_KEY>" }

For AI agents

  1. Ask the user for: AGENT_OBS_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: log_event, query_logs, get_cost_analytics.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json