abhed-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
π‘οΈ abhed-mcp
Universal Action Gate & Audit Ledger for AI Agent Tool Calls (Model Context Protocol)
Put any MCP agent's tool executions behind a deterministic policy gate: Allowed, Held for Human Approval, or Blocked β with every decision cryptographically sealed into a hash-chained audit ledger.
Live Demo Console Β· Abhed Engine Core (hackarena) Β· Report Bug
π Why Abhed MCP?
Autonomous AI agents in tools like Cursor, Claude Desktop, and VS Code have raw access to execute bash scripts, access databases, and trigger financial transactions. A single prompt injection can trigger unauthorized or destructive tool invocations.
abhed-mcp acts as a zero-trust firewall proxy between your AI agent and real-world tools:
βββββββββββββββββββββββββββββββββββ
β AI Agent (Claude / Cursor) β
βββββββββββββββββ¬ββββββββββββββββββ
β calls tool (e.g. `issue_refund(βΉ4500)`)
βΌ
βββββββββββββββββββββββββββββββββββ
β π‘οΈ abhed-mcp Gateway β
βββββββββββββββββ¬ββββββββββββββββββ
β forwards to policy evaluator
βΌ
βββββββββββββββββββββββββββββββββββ
β βοΈ Abhed Decision Engine β
βββββββββββββββββ¬ββββββββββββββββββ
β
βββββββββββ΄ββββββββββββββββββββββββ
βΌ βΌ
[ Safe Action ] [ High-Risk / Ambiguous ]
β β
ALLOWED NEEDS_APPROVAL
β β
Executes Tool Pushes to Mobile/Web Console
β Human Approver confirms
β β
ββββββββββββββββββ¬βββββββββββββββββ
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββ
β π Hash-Chained, Ed25519 Sealed Ledger β
ββββββββββββββββββββββββββββββββββββββββββββββββDecision | System Action | What the Agent Receives |
| Evaluated against deterministic policy; verified safe. | The real tool output directly. |
| A person approved a large refund, and it is waiting out its cancel window. | No money has moved. A commit id to follow with |
| High-stakes or flagged action held for human authorization. | Server waits for human sign-off (default 60s), then returns executed result or |
| Policy violation or prompt-injection attempt detected. | Strict error naming the security rule that refused execution. |
Related MCP server: actionproxy
β‘ Quick Start: Add to Your Favorite MCP Client
Watch the setup guide (1:12), or follow the written guide.
Check your key first. This speaks MCP to the real server and walks through each outcome, one step at a time:
ABHED_AGENT_KEY=kv_live_your_key ABHED_URL=https://abhed.onrender.com npm run tryThen add abhed to your client configuration with a single block:
1. Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"abhed": {
"command": "npx",
"args": ["-y", "github:HarshDubey23/abhed-mcp"],
"env": {
"ABHED_AGENT_KEY": "<your-agent-key>",
"ABHED_URL": "https://abhed.onrender.com"
}
}
}
}2. Claude Desktop (claude_desktop_config.json)
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"abhed-guard": {
"command": "npx",
"args": ["-y", "github:HarshDubey23/abhed-mcp"],
"env": {
"ABHED_AGENT_KEY": "<your-agent-key>",
"ABHED_APPROVAL_WAIT_SECONDS": "90"
}
}
}
}3. VS Code (Continue / Cline / Roo Code)
Add to your extension's MCP server settings under the mcpServers object.
βοΈ Configuration Variables
Variable | Default | Description |
| (Required) | Secret agent token generated from the Abhed console |
|
| Target Abhed server deployment endpoint |
|
| Default task scope if agent does not declare one |
| None | Constrains agent execution to a specific customer or resource ID |
|
| Duration to wait for human operator approval before returning an asynchronous polling ID |
π§° Native Built-in Tools
Five governance tools are provided out of the box to all connected agents:
abhed_start_task: Declares task intent and customer context. Abhed inspects this initial payload for prompt injection vectors.abhed_check_approval: Asynchronously checks if a previously held action has received human approval and retrieves its execution payload.abhed_check_commit: Follows a large refund through its cancel window. No money has moved while its status isWAITING, and it endsCOMMITTEDorCANCELLED.abhed_finish_task: Closes the operational session and outputs an auditable summary into the permanent ledger.abhed_whoami: Returns the active agent's role, associated organization, and granted resource limits.
π§ͺ Testing
The repository features comprehensive zero-dependency unit and integration tests:
git clone https://github.com/HarshDubey23/abhed-mcp.git
cd abhed-mcp
npm testThe test suite runs a live mock Abhed server over stdio verifying:
β Fast-path
ALLOWEDexecutionβ³ Stateful
NEEDS_APPROVALpolling and escalationβ Immediate
BLOCKEDpolicy enforcementπ Rejection of undelegated tools before they leave the client environment
π License
Distributed under the MIT License. See LICENSE for details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Authorize AI agent tool calls before they run: policy-as-code, human approval, signed receipts.
Supervised API-write gateway for AI agents with policy, human approval and execution receipts.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceProvides a secure MCP boundary for AI agents, intercepting and validating tool calls, redacting secrets, and requiring human approval for sensitive actions with a tamper-evident audit trail.-
- AlicenseNot gradedqualityCmaintenanceProvides a human-in-the-loop approval gateway for AI agents, enforcing policies and audit logging for MCP-compatible tool calls.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceMCP server that gates agent tool calls by normalizing intent, denying unknown/unattended destructive actions, and requiring HITL prove approval for high-risk operations. It maintains an append-only hash-chained Action Ledger and exposes gate_check and ledger_verify tools without ever executing tools.MIT
- AlicenseNot gradedqualityBmaintenanceA local gate that lets agents submit risky tool actions for policy evaluation and receive ALLOW, DENY, or REQUIRE_APPROVE decisions before executing irreversible side effects. It can also open human approval holds and record an activity trail without executing the side effect itself.1,277 npm3MIT