Skip to main content
Glama
AgentGuard MCP

AgentGuard MCP

by haisamar

AgentGuard

M8ven Live Monitored

AgentGuard lets an AI support agent request a simulated refund while enforcing OAuth permissions, a shared spending budget, and human review at the point of execution. This repository contains the Next.js site and protected operator dashboard. The Python MCP service and PostgreSQL migrations live in the companion repository.

Website · Try the demo · Inspect the evidence · Creator case study

Review the project

  1. Open Human review in the public demo and show the decision. The $755 request waits with zero receipts. Simulate approval and execution, then try replaying the approval. The simulated ledger still has one receipt.

  2. Try Split the budget and Machine self-approval to see different denial paths. The public walkthrough uses guided, synthetic examples.

  3. Open the evidence page for the dated hosted report, which recorded one real human passkey approval, one simulated receipt, and denied replay. The separate credential-free evaluation matched expected ledger effects in 10 of 10 fixed scenarios. Each report describes its builds and limits.

The dashboard shows the stored transaction, expiry, budget, audit events, and receipts. Access requires the configured Auth0 subject and verified email. Approving or resuming also requires a passkey or MFA event in the last five minutes. See administrator configuration.

flowchart LR
    Agent[Agent with Auth0 token] --> MCP[Python MCP checks scope]
    MCP --> DB[(PostgreSQL checks budget and records effects)]
    DB -->|Sensitive request waits| Dashboard[Protected dashboard]
    Human[Human operator with recent passkey] --> Dashboard
    Dashboard -->|Review exact stored request| DB
    MCP -->|Original agent executes an approved request| DB

Related MCP server: AgentGuard MCP

Run the frontend locally

Use Node.js 24 and the committed npm lockfile.

npm ci
npm run dev

Visit http://localhost:3000. The public routes are /, /demo, /evidence, and /about. To exercise /dashboard, create an untracked .env.local using the settings below. Use a dedicated test environment for writes.

APP_BASE_URL=http://localhost:3000
AUTH0_DOMAIN=
AUTH0_CLIENT_ID=
AUTH0_CLIENT_SECRET=
AUTH0_SECRET=
AGENTGUARD_ADMIN_EMAIL=
AGENTGUARD_ADMIN_SUB=
SUPABASE_URL=
SUPABASE_SECRET_KEY=

Register http://localhost:3000/auth/callback and the base URL as allowed callback and logout URLs respectively in the Auth0 Regular Web Application. Generate a unique session secret with openssl rand -hex 32. Apply the backend schema and migrations before using the dashboard. Keep both server secrets in the environment.

If the dashboard denies access, check the verified email and exact Auth0 subject. For an approval or resume prompt, use Re-authenticate with a passkey. If the database is unavailable, check the AgentGuard project status and server configuration. The dashboard retries only transient read failures.

npm run lint
npm run typecheck
npm test
npm run build

See dependency verification for version constraints and backend hosting for the separate Vercel MCP service. The ledger uses simulated USD. The application trusts the identity provider, backend credentials, and database administrators. The evidence describes the specific tests performed.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A governance and control layer for MCP tools that manages tool requests as intents through policy-based approval, queuing, or blocking. It enables secure human oversight and audit trails for consequential agent actions across platforms like Claude Desktop and Cursor.
      1
      MIT No Attribution
    • F
      license
      Not graded
      quality
      B
      maintenance
      A protected Model Context Protocol server that gives AI agents distinct machine identities, enforces least-privilege OAuth permissions, applies contextual authorization policies, and pauses sensitive actions for human approval.
      -
    • A
      license
      Not graded
      quality
      A
      maintenance
      A policy-based security layer for AI agents and MCP tools that evaluates tool requests against security policies before allowing, denying, or requiring human approval for execution.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP-compatible AI agents to safely act on business backends by enforcing per-agent permissions, autonomy thresholds, human approval with review-and-edit, and full audit trails.
      MIT