🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@agentguard47/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agentguard47/mcp-server

MCP server for AgentGuard — query traces, alerts, usage, and costs from AI coding agents

Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
50
35.14%
Maintainers
1
Weekly downloads
 
Created
Source

AgentGuard MCP Server

MCP (Model Context Protocol) server that connects AI coding agents to the AgentGuard Read API. Lets agents query their own traces, alerts, costs, and budget status.

Tools

ToolDescription
query_tracesSearch recent traces, filter by service/time range
get_traceGet full event tree for a specific trace ID
get_alertsGet guard alerts (loops, budget exceeded, errors)
get_usageCheck event quota usage and plan limits
get_costsGet cost breakdown by model for the current month
check_budgetQuick pass/fail budget health check

Configuration

VariableRequiredDescription
AGENTGUARD_API_KEYYesBearer token for the Read API (ag_...)
AGENTGUARD_URLNoAPI base URL (defaults to production)

Setup for Claude Code

Add to your Claude Code MCP config:

{
  "mcpServers": {
    "agentguard": {
      "command": "node",
      "args": ["/path/to/agent47/mcp-server/dist/index.js"],
      "env": {
        "AGENTGUARD_API_KEY": "ag_your_key_here"
      }
    }
  }
}

Build & Run

npm ci          # Install dependencies
npm run build   # Compile TypeScript
npm start       # Run server (stdio transport)
npm run dev     # Watch mode for development

Architecture

  • src/index.ts — Server entry point, tool registration (stdio transport)
  • src/client.ts — HTTP client wrapping /api/v1/ endpoints
  • src/tools.ts — 6 MCP tool definitions and handlers

FAQs

Package last updated on 15 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts