Agent manifest
An agent manifest stores the settings that npx @runtypelabs/connect relay uses to reach a local agent or Model Context Protocol (MCP) server. With a manifest in your repository, you can run relay without flags. If your local server isn’t running, relay can start it and stop it again on exit.
File location and discovery
By default, relay looks for .runtype/agents.yaml at your git repository root, then checks .runtype/agents.yml. Outside a git repository, relay looks for .runtype/agents.yaml and .runtype/agents.yml in the current directory. To load a manifest from another path, pass --manifest PATH relative to the current directory.
Only relay reads the manifest. You write the file yourself and commit it with your code.
Example manifest
The following example defines a local chat agent in .runtype/agents.yaml with auto-start and a readiness check:
Replace AGENT_ID with the ID of your agent in Runtype.
From the repository root, start the relay with this manifest:
Manifest fields
The relay command rejects a manifest that contains an unknown key. Every field after agents.ENTRY_NAME goes inside an entry under agents:
Entry selection and CLI flags
Run relay with manifest options:
Replace the following:
ENTRY_NAME: the key name of an entry underagents.PATH: the path to a manifest file, relative to the current directory.FLAGS: any otherrelayflags, such as--connector--no-start.
Manifest flags
Pass the following flags to relay to control how it loads and runs a manifest:
--manifest PATH: loads the manifest fromPATH, relative to the current directory.--entry ENTRY_NAME: selects one entry fromagentsby key name.--no-start: skips runningcommandeven when the local server isn’t reachable.
How relay loads and selects an entry
The relay command reads the manifest when any of the following conditions applies:
- You pass
--manifestor--entry. - You omit
--forward-to. - You omit
--agentfor a protocol other thanmcp.
If the manifest defines one entry, relay selects it automatically. With more than one entry, you must pass --entry ENTRY_NAME. Without --entry, relay exits with code 2 and lists the available entries (Multiple agents are defined in the manifest (a, b); pass --entry <name> to select one). If you pass --entry when no manifest exists, relay exits with code 2 and prints No .runtype/agents.yaml manifest found for --entry.
Explicit --agent, --forward-to, and --protocol flags override the corresponding fields from the manifest.
Auto-start and shutdown
When an entry defines command and you don’t pass --no-start, relay checks and starts your local server in three steps:
relaysends an HTTPGETrequest to check readiness. WhenhealthPathis set,relayresolves it against the origin offorwardToand counts only a 2xx response as ready. Otherwise,relaysendsGETtoforwardToand counts any HTTP response as ready.- If the local server is already reachable,
relayleaves that process running and doesn’t stop it on exit. - If the local server isn’t reachable,
relayrunscommandincwdthrough a shell. It repeats the readiness check until the server responds orreadyTimeoutMspasses, and printsStarted local target (COMMAND) in DIR.when it starts the command.
If you pass --no-start or omit command, relay starts no process and pairs with forwardTo directly.
Shutdown
When relay exits, it stops the process that it started, including that process’s child processes. It never stops a server that was already running.
Errors
The following table lists the manifest validation and auto-start errors that relay can return, with each error’s code and reason fields:
Next steps
Continue with one of the following pages:
- Test against your real agent: pair a local agent or MCP server and run simulations against it.
- Connect CLI: look up all
relayflags, global options, and CLI exit codes. - Troubleshooting: resolve sign-in, ingest, and relay errors.