One URL in front of the servers you trust
← All posts

One URL in front of the servers you trust


CAPA answers which tools a repository installs. However, it does not answer whose Jira token is on a given laptop. Each agent copy of a config tends to accumulate its own copy of every secret. Thus, rotating one leaked token means finding every machine, and giving a user a tool they should not have means editing a file that nobody rereads.

Lanyard is the gateway in front of that.

One URL

A gateway is one MCP URL. Servers are added behind it (from a catalog or by pasting a remote endpoint), and then the tools that agents may call are selected. A server can offer dozens of tools, and the agent sees the enabled ones. Write and delete tools remain disabled until explicitly enabled, so the starting set is read-only.

The console is lanyard.infragate.ai, and the guide is the Lanyard docs. The overall shape has agents on the left (each with its own key), one gateway in the middle, and the servers behind it, each reached as whoever holds the key.

Two agents with their own keys, one Lanyard gateway URL, and five servers behind it, each called as the person who owns the key

On a server, the list is the allow-list. For example, a public documentation server can expose only read tools, and these remain enabled.

Context7 on the gateway, both read tools selected

Users sign in to each server individually. Lanyard holds the token, and the agent never sees it. Thus, two users on the same gateway call Jira under their own identities and permissions. A gateway remains private until it is shared, and an admin decides which server hosts are allowed at all.

A key per agent

Each key is minted and named after the agent rather than after its owner (e.g. “laptop claude code” or “CI triage bot”). The secret is shown once. Lanyard keeps a prefix and a hash, so the secret cannot be retrieved later.

Revoking that key stops that agent. It does not affect the other keys, and it does not unplug the gateway. Additionally, losing access to the gateway (or leaving the org) revokes the keys that depended on it.

The client config is the gateway URL plus the key as a bearer token. The console fills in the URL, so <LANYARD_API_KEY> is the only part to replace. On the keys page, a key is a name, a prefix, and a revoke button, and the secret is not displayed after creation.

Personal keys for one gateway. Only the prefix is still visible.

{
  "mcpServers": {
    "lanyard": {
      "url": "<the gateway MCP URL>",
      "headers": {
        "Authorization": "Bearer <LANYARD_API_KEY>"
      }
    }
  }
}

Snippets exist for Claude Code, Cursor, VS Code, Codex, Windsurf, and ChatGPT connectors. After copying the snippet, pasting it, and restarting the client, the tool list of the client is whatever this gateway allows.

What the agent hears when it cannot

A refusal is returned as a sentence rather than a bare status code.

  • The key is not valid for this gateway.
  • Your seat is not active.
  • The tool is not allowed.
  • Sign in to the server first.
  • Too many calls.

The first two concern the user, and the rest concern the gateway. “Sign in to the server first” means that this user has not connected their account yet. Retrying the tool will not fix it. Instead, the connect link will.

Where this sits next to CAPA and ShareCube

CAPA continues to declare what a repository installs (skills, rules, hooks, and which servers a project expects). Lanyard is the server placed in that list when the tools belong to users rather than to the repository. ShareCube can be one of the servers behind the gateway, next to GitHub, Slack, or Jira, with each call attributed to the user whose key was used.

Activity on the gateway records the call, the outcome, the caller, and the key. A denied call stays in that list next to the ones that succeeded. This is the page to open when something wrote when it should only have read.

Gateway activity: the tool, whether it succeeded, who called it, and which key


Create a gateway, add a server, select the read-only tools, connect your account, and mint a key. Teammates then repeat the final two steps on the same gateway with their own accounts.