Smart&Route — MCP Gateway for Claude & AI Agents
  • Role:

    Founder & Platform Engineer

  • Period:

    09/2026 — Present

  • Stack:

    Dart, Node.js, MCP, A2A (JSON-RPC 2.0), OAuth 2.0 / OIDC, WebAuthn, Docker, Nginx, Stripe, Hetzner

  • URL:

    smartroute.varrho.com

Smart&Route — MCP Gateway for Claude & AI Agents

Founded and built Smart&Route, a self-hosted MCP gateway that connects Anthropic's Claude (iPhone, Android, web) and other AI agents to a company's tools, with human approval on the phone. It is added once as a custom connector and runs always-on on the customer's own Linux server, so tools keep working with every laptop closed.

Highlights

  • A2A protocol: Agent Card at /.well-known/agent-card.json; JSON-RPC 2.0 endpoint (message/send, tasks/get, tasks/cancel) with task status tracking; calls from other agents always pause for approval, with the caller agent named on the approval card.
  • Gateway & policy: a single MCP endpoint in front of plugin MCP servers (Directus, Terraform, GitHub, SSH, Hetzner or any stdio / remote MCP server); each tool has its own Allow / Approve / Block rule, blocked tools never reach Claude, and plugins restart if they crash.
  • Human in the loop: risky calls (e.g. terraform → reboot_server) pause in the conversation until approved with Face ID in the Smart&Route iPhone / Android app; trust mode is time-boxed (15 min / 1 h / 8 h), while destructive actions and agent-originated calls always ask.
  • Identity & access: team accounts with 2FA and WebAuthn passkeys; sign-in federated from Google, GitHub, Microsoft or any OIDC provider, replacing only the password (never the second factor) and only for people already invited.
  • Agent-to-tool auth: every plugin call carries a 60-second JWT signed by the gateway naming the user and the agent, valid for one plugin; plugins verify it against /.well-known/jwks.json.
  • On-Behalf-Of & A2A: RFC 8693 token exchange at /oauth/token; exchanged tokens last at most an hour, name the acting agent and can only be narrowed, never widened, and revoking the parent token ends every token derived from it. Agent-to-Agent (A2A) calls always ask on the phone, showing which agent asked.
  • Per-user downstream OAuth: on OAuth plugins the service sees the real person, not a shared login; users not yet signed in get a one-time 15-minute link, and a per-plugin switch removes the shared fallback.
  • Credential isolation: API tokens and SSH keys live only on the server, never on laptops; SSH keys are mounted read-only and the gateway's key is restricted to its Docker subnet (from= in authorized_keys).
  • Notifications: self-hosted ntfy with deny-all default access; Android approvals are end-to-end encrypted with RFC 8291 Web Push, so Google only carries ciphertext.
  • Delivery: Dart gateway compiled AOT onto a Node 22 runtime image for stdio plugins; Docker Compose behind Nginx on Hetzner, loopback-only ports, health checks, an audit log of every call, and a plugin marketplace fed by the official MCP Registry.
  • Smart&Route Cloud (in progress): Dart control plane for managed gateways — signup, Stripe subscription billing and per-tenant Hetzner provisioning — plus a partner programme for IT and hosting companies.
  • Testing & docs: 107 Dart tests covering A2A, OBO, JWT, federation, WebAuthn and Web Push; Terraform modules for managed gateways; a documented approval chain (dev → CI → PM → infra owner → ledger).

Stack: Dart, Node.js, MCP, A2A (JSON-RPC 2.0, Agent Cards), OAuth 2.0 / OIDC, JWT / JWKS, RFC 8693, WebAuthn, RFC 8291 Web Push, ntfy, Docker Compose, Nginx, Stripe, Hetzner.