Agent Skills
› rcarmo/piclaw
› mcp-adapter
mcp-adapter
GitHub通过 pi-mcp-adapter 将 MCP 服务器暴露给 Agent,支持本地或全局配置管理。提供统一工具调用及交互命令,实现 MCP 服务的连接、搜索、描述与执行,默认采用懒加载机制。
Trigger Scenarios
需要调用外部 MCP 服务提供的工具
配置或管理 .pi/mcp.json 中的 MCP 服务器
使用 /mcp 相关命令进行状态查询或重连
Install
npx skills add rcarmo/piclaw --skill mcp-adapter -g -y
SKILL.md
Frontmatter
{
"name": "mcp-adapter",
"description": "Use the bundled pi-mcp-adapter to connect MCP servers through .pi\/mcp.json.",
"distribution": "public"
}
MCP Adapter
Use pi-mcp-adapter to expose MCP servers to the agent through one 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>
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. Keep large MCP servers behind themcpproxy.
Version History
- 5fa0ce5 Current 2026-07-25 10:25


