Agent skill
mcp-adapter
Use the bundled pi-mcp-adapter to connect MCP servers through .pi/mcp.json.
Install this agent skill to your Project
npx add-skill https://github.com/rcarmo/piclaw/tree/main/skel/.pi/skills/mcp-adapter
SKILL.md
MCP Adapter
PiClaw ships pi-mcp-adapter, which exposes MCP servers to the agent through a single mcp tool plus /mcp commands.
Config locations
Preferred project-local config:
/workspace/.pi/mcp.json
Starter example:
cp /workspace/.pi/mcp.json.example /workspace/.pi/mcp.json
The adapter also understands the global Pi config at:
/config/.pi/agent/mcp.json
Use the project-local file when you want MCP servers tied to the current workspace.
Minimal example
{
"mcpServers": {
"filesystem": {
"command": "bunx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "."],
"lifecycle": "lazy"
}
}
}
Common workflows
List MCP status / tools
mcp({})
Search for a tool
mcp({ search: "read file" })
Describe a tool
mcp({ describe: "filesystem_read_file" })
Call a tool
mcp({ tool: "filesystem_read_file", args: "{\"path\":\"./README.md\"}" })
args must be a JSON string.
Interactive commands
/mcp
/mcp tools
/mcp reconnect
/mcp reconnect filesystem
/mcp-auth <server>
Operational notes
- MCP servers are lazy by default and connect on first use.
- After editing
.pi/mcp.json, restart the session or reload Pi so the adapter re-reads config. - Prefer
directToolsonly for small, high-value tool sets. Large MCP servers are usually better left behind themcpproxy.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
autoresearch-create
Set up and run an autonomous experiment loop for any optimization target. Gathers what to optimize, then starts the loop immediately. Use when asked to "run autoresearch", "optimize X in a loop", "set up autoresearch for X", or "start experiments".
portainer-container-compare-chart
Compare two containers using native portainer tool data collection and render SVG/CSV outputs.
proxmox-guest-compare-chart
Compare two Proxmox guests using native proxmox tool data collection and render SVG/CSV outputs.
schedule
Schedule a task to run later or on a recurring basis. Prefer the schedule_task tool; fallback to IPC only if needed.
reload
Reinstall piclaw from workspace source and force-restart the running process. Use after making code changes to piclaw.
send-message
Send a message to the chat immediately without waiting for the current task to finish. Useful for acknowledging requests or sending progress updates while working.
Didn't find tool you were looking for?