Setting it up
Development reference · View source
Add Runyte to the agent as an MCP server, following the MCP setup guide . It covers the client configurations, the environment the server needs, and the bundled skill. In short, give the absolute path to your Runyte binary, which
command -v runyteprints; the desktop edition’srunyte-desktoptakes the same arguments. For Claude Code and Codex:claude mcp add --scope user --transport stdio runyte -- /path/to/runyte mcp --identity agent codex mcp add runyte -- /path/to/runyte mcp --identity agentCodex starts MCP servers with a reduced environment, and without these variables it finds no workspaces. Add this line to the
[mcp_servers.runyte]table thatcodex mcp addwrote to~/.codex/config.toml:env_vars = ["XDG_RUNTIME_DIR", "XDG_CACHE_HOME", "RUNYTE_PARENT_CONTEXT"]Any other MCP client runs the same binary with the arguments
["mcp", "--identity", "agent"]over stdio; the setup guide has the JSON and TOML forms. Restart an agent that was already running so it starts the server.In each workspace to share, run
:mcp agentusing that same identity.Turn on Read with
1, and Write with2if the agent should edit or type, then select Apply permissions with Tab then Enter.Ask the agent to call
list_workspaces. The workspace should be listed with Read. If it is missing and the reply countshidden_workspaces, the client is not passing the environment variables above to the server; itsdiscovery_helpnames them.
You may grant permissions before or after starting the agent. The built-in
server always offers the same tools; each call checks the workspace grant.
After changing permissions, have the agent run find_resources again to get
fresh handles. Restart the agent once when changing its MCP configuration or
upgrading from the Python bridge; permission changes do not require a restart.