byrgi

Agents & MCP tools

MCP gateway

Each project environment can run one MCP gateway (docker/mcp-gateway). Its configuration is the environment's tool allowlist: servers from the Docker MCP catalog, optionally limited to some tools, with their secrets mapped to project secrets.

bash
byrgi deploy mcp --project demo --server gpu-1     # prints the gateway token once
byrgi mcp catalog github
byrgi secrets demo set GITHUB_TOKEN -
byrgi mcp demo allow github-official --tool list_issues --tool issue_read \
  --secret github.personal_access_token=GITHUB_TOKEN
  • Each allowed server runs as its own short-lived container; only allowed tools are served on http://<name>:8811/mcp inside the project network, behind a bearer token.
  • Secrets are copied into the container before it starts, never written to the node's disk, and reach only the server that declares them.
  • Every allowlist entry is validated against the catalog: unknown tools, missing secrets or required settings are rejected.
  • Changing the allowlist deploys a new release, blue/green like everything else.

The MCP gateway needs the node's Docker socket, which is root-equivalent on that node. Its image and arguments are fixed by Byrgi and image signatures are verified.

Agents

An agent is an instruction, a model service and optionally the environment's MCP gateway, run with Docker Agent.

bash
byrgi deploy agent --project demo --server gpu-1 --name triage --model llm --mcp mcp \
  --instruction "You triage issues in acme/api." --domain triage.example.com

The agent serves Docker Agent's HTTP API on :8080 behind a generated token. Sessions live in a per-agent volume. tool_approval: auto (default) lets allowlisted tools run; client makes API clients approve each call.

Audit

The node agent follows each gateway's call log and records every tool call (project, server, tool, duration, whether a result came back). Allowlist changes are audited too.

bash
byrgi tool-calls --project demo