MCP Tools
RunWield can start Model Context Protocol (MCP) servers you trust and give their tools to your Agents.
Configuration files
Section titled “Configuration files”Use a dedicated MCP file. Do not put MCP commands or secrets in settings.json.
- Global file:
~/.wld/mcp.json - Project file:
.wld/mcp.jsonin your main checkout
A project MCP file runs programs on your machine, so keep it out of Git:
.wld/mcp.jsonRunWield uses the project file only when Git ignores it. If the file could be committed, RunWield skips it and warns you.
Both files are JSONC and should use mode 0600 on POSIX systems.
File shape
Section titled “File shape”{ "mcpServers": { "project-tools": { "command": "my-mcp-server", "args": ["--stdio"], "env": { "TOKEN": "secret-value" }, }, "disabled-global-server": { "enabled": false, }, },}A project entry replaces the whole global entry with the same name; the two aren’t merged. A project entry with
enabled: false turns off a global server for that project.
ACP clients can also pass MCP servers when they start a Session. Those servers are used for that Session only and are not saved.
What’s supported
Section titled “What’s supported”RunWield uses Pi’s built-in MCP support.
- Servers: stdio servers only. HTTP servers, OAuth sign-in, and MCP prompts aren’t supported yet.
- Tools: each tool appears to Agents as
mcp__<server>__<tool>. If two names collide or a name is too long, a short suffix is added. - Resources: servers that have resources also give Agents tools to list and read them. Text and images reach the model. Text over 20 KiB is cut short, and the full output is saved to a temporary file named in the result.
- Updates: when a server adds or removes tools, Agents see the change right away. Claude CLI and Antigravity CLI see
it on their next turn.
/reloadrereads your MCP files. - Which Agents: every main Agent gets your MCP tools. Helper Agents and the review Agents used during validation don’t.
- Failures: if a server can’t start, RunWield shows a warning with secrets removed, and the Session keeps working.
Remote SSH Sessions
Section titled “Remote SSH Sessions”Personal servers from laptop ~/.wld/mcp.json run on the laptop. Project servers from the remote project’s
.wld/mcp.json run remotely, with the Session execution directory. Project replacement and disable rules apply before
a personal process starts. The server user’s personal file is not used. Root Agents get both sets of tools through
one Pi integration; helper and isolated review Agents do not inherit them.
Personal servers start in laptop home, not the directory where you ran wld remote. Relative executables such as
./scripts/mcp-server and relative file arguments must work from home. A server can therefore read or write
home-relative files instead of project files. Use project configuration for servers that need remote project files.
For deliberate laptop checkout access, use absolute arguments or other settings supported by that server.
Home is a starting directory, not a sandbox. A personal server has the laptop account’s normal access. Sharing a Memory collection with a local project does not select its checkout; the files, branches, and uncommitted changes can differ. MCP roots still name the remote project, even when that path does not exist on the laptop. RunWield does not rewrite paths, copy files, or map checkouts. Large output files created by Pi stay in the remote runtime.
/mcp shows laptop or remote and the actual connection status. Reconnect starts a fresh transport on the owning
machine and rereads personal configuration there. /reload rebuilds the effective configuration. Session disposal or
connection loss closes owned processes; another Session’s servers stay separate. Uncertain calls and failed protocol
sends are never replayed automatically.
Cancellation sends the native MCP cancellation notification. A cooperative server can stop pending work; a server that ignores it can finish an accepted action. Cancellation and disconnect cannot undo completed file or network effects.
Checking servers
Section titled “Checking servers”/mcp # show each server's status and tool count/mcp reconnect <server> # reconnect one serverThese commands don’t use the model. /mcp can show a server’s own error output, which may include details that startup
warnings hide.
MCP servers are programs you choose to run. They can run commands and receive the env values you configure. A server
gets a minimal environment plus its own env, not all of RunWield’s credentials. RunWield hides secrets in its own
warnings, but server tool results, resources, and logs can contain secrets. Forwarding does not filter arbitrary server output.
MCP tools don’t say reliably whether they only read data or also change it, so treat every configured server as able to change things.
Composing calls with codemode
Section titled “Composing calls with codemode”Pi-backed root Agents can call their authorized MCP tools from codemode, as well as directly.
Use ALL_TOOLS or searchTools() to discover the current names. MCP results retain content, structuredContent, and
isError; check error flags before using structured values. Tool additions, withdrawal, and root Agent replacement
share the same Session-owned connection. Delegated and isolated Agents receive no root MCP connections.
Pi 1.5 validates MCP JSON schemas with coercion: a numeric string can become a number, and a scalar can become a single-element array when required by the schema. Invalid values and missing required fields fail before invocation. The same validation applies to direct calls and script calls.