Developer ToolsMCP Touchstone
A black-box tester for Model Context Protocol servers: it checks the spec, how the server copes with bad input, and known security problems, without calling a tool it was not allowed to.
- mcp
- testing
- security
- and 4 more
Every AI call comes through one door: checked, metered and on the record.
A self-hostable control plane for company AI: one gateway in front of LLM providers and MCP tools that enforces identity, policy, budgets, reliability and a tamper-evident audit log on every call.

Overview
Companies now have many apps and agents calling LLM providers and MCP tools directly, each with its own keys, no shared spending limits, no consistent safety checks and no reliable record of who did what. Agent Doorway sits in front of those calls and puts every one of them through the same door.
Apps keep using the official OpenAI and Anthropic SDKs; only the base URL and the key change. Each call is authenticated, rate limited, checked against the tenant's YAML policy (allowed models, prompt-injection guardrails, PII redaction, tool permissions) and its monthly budget, then dispatched with retries, an ordered fallback chain and a circuit breaker per provider and model. Tool calls are validated against their JSON Schema before the client sees them, and agents reach their team's MCP servers through the gateway, with hidden tools refused, egress to internal addresses blocked and idempotent writes that run once.
Every call leaves a usage record with exact cost in integer micro-dollars and a row in a per-tenant hash chain whose head is signed with an Ed25519 key, so doorway audit verify catches an edited row and a full rewrite alike. Prompts are stored only as hashes unless a tenant opts into redacted or full capture with a retention period.
It is a reference implementation: every design decision is written down as an ADR, with a threat model, OpenTelemetry traces, Prometheus metrics, two provisioned Grafana dashboards, an admin API and console, a load test and a Helm chart. The built-in mock model means the whole thing runs with no provider key.
Topics
Features
Quick start
Requires Docker. Postgres, Redis, migrations and the gateway; no provider key needed.
git clone https://github.com/bishal-saha/agent-doorway.git && cd agent-doorway
docker compose up -d --build --waitThe key is printed once; only its sha256 hash is stored.
docker compose exec gateway doorway tenants create acme --name "Acme Ltd"
docker compose exec gateway doorway teams create acme support
KEY=$(docker compose exec -T gateway doorway keys create acme support --name demo)The built-in mock model answers every request.
curl localhost:8080/v1/chat/completions \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"model": "mock", "messages": [{"role": "user", "content": "Where is my order?"}]}'Only the base URL and the key change.
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8080/v1", api_key=KEY)
client.chat.completions.create(model="mock", messages=[{"role": "user", "content": "hi"}])Tech stack
Screens

Bishal SahaLet's build together
Tell me about the problem. You'll get a clear, honest view of the best way forward.