@auctra/mcp-gateway
v0.1.3
Published
Stage 0 MCP gateway adapter — gate MCP tool calls through Auctra action.execute
Maintainers
Readme
@auctra/mcp-gateway
Stage 0 MCP gateway adapter. Wrap MCP tool calls with Auctra Authority Gate (action.execute) before execution.
import { Auctra } from "@auctra/sdk";
import { gateMcpToolCall, withAuctraGate } from "@auctra/mcp-gateway";
const client = new Auctra({ apiKey: process.env.AUCTRA_API_KEY! });
await gateMcpToolCall({
client,
agentId: "agent-uuid",
toolName: "send_email",
args: { to: "[email protected]" },
});
const sendEmail = withAuctraGate({
client,
agentId: "agent-uuid",
toolName: "send_email",
execute: async (args) => mailer.send(args),
});Blocked or approval-required tool calls throw McpToolBlockedError with the decision evidence hash when present.
Stdio MCP server
Run the package as a real MCP stdio server:
AUCTRA_API_KEY=... AUCTRA_AGENT_ID=agent-uuid npx auctra-mcp-gatewayExposed tools:
gate_tool_callverify_audit_chain
