用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/rcarmo/piclaw --skill mcp-adapter命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | mcp-adapter |
| description | Use the bundled pi-mcp-adapter to connect MCP servers through .pi/mcp.json. |
| distribution | public |
Use pi-mcp-adapter to expose MCP servers to the agent through one mcp tool plus /mcp commands.
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.
{
"mcpServers": {
"filesystem": {
"command": "bunx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "."],
"lifecycle": "lazy"
}
}
}
mcp({})
mcp({ search: "read file" })
mcp({ describe: "filesystem_read_file" })
mcp({ tool: "filesystem_read_file", args: "{\"path\":\"./README.md\"}" })
args must be a JSON string.
/mcp
/mcp tools
/mcp reconnect
/mcp reconnect filesystem
/mcp-auth <server>
.pi/mcp.json, restart the session or reload Pi so the adapter re-reads config.directTools only for small, high-value tool sets. Keep large MCP servers behind the mcp proxy.