一键导入
add-mcp-server
Add an MCP server to pi. Use when asked to "add", "configure", or "register" an MCP server. Handles both global and project-local configurations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add an MCP server to pi. Use when asked to "add", "configure", or "register" an MCP server. Handles both global and project-local configurations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Write messages, comments, PR reviews, Slack posts, and other prose in Sean's voice. Use when drafting anything that will be sent under Sean's name — code review comments, postmortem feedback, Slack messages, GitHub comments, coaching notes, design feedback, strategic takes. Triggers: 'write like me', 'in my voice', 'draft a comment for me', 'sound like me', 'sharpen this', 'this still sounds like AI'.
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes — Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/PRD asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".
Implement a piece of work based on a spec or set of tickets.
Plan a huge chunk of work — more than one agent session can hold — as a shared map of investigation tickets, and resolve them one at a time until the way to the destination is clear.
Move todos through a state machine of triage roles — categorise, verify, grill if needed, and write agent-ready briefs. Maps to pi's built-in todo tool; see ../todo-tracker.md for the full tracker → tool mapping.
Turn the current conversation into a spec and publish it as a todo — no interview, just synthesis of what you've already discussed.
| name | add-mcp-server |
| description | Add an MCP server to pi. Use when asked to "add", "configure", or "register" an MCP server. Handles both global and project-local configurations. |
Add an MCP server configuration to pi-mcp-adapter. Determine scope and server type, write the config, and verify the connection.
Ask the user if not obvious from context:
| Scope | Config File | When to Use |
|---|---|---|
| Global | ~/.pi/agent/mcp.json | Server used across all projects |
| Project | .pi/mcp.json (project root) | Server specific to one project |
Project-local configs override global ones. Both files use the same format.
MCP servers connect via stdio (local process) or HTTP (remote URL).
Stdio server — runs a local command:
{
"mcpServers": {
"server-name": {
"command": "npx",
"args": ["-y", "package-name@latest"],
"env": { "KEY": "value" }
}
}
}
HTTP server — connects to a URL:
{
"mcpServers": {
"server-name": {
"url": "http://localhost:8080/mcp",
"headers": { "Authorization": "Bearer token" }
}
}
}
Collect only what's needed. All fields except command/url are optional.
| Field | Type | Description |
|---|---|---|
command | string | Executable to run (stdio) |
args | string[] | Command arguments (stdio) |
env | object | Environment variables (stdio) |
cwd | string | Working directory (stdio) |
url | string | Server URL (HTTP) |
headers | object | HTTP headers (HTTP) |
auth | "oauth" or "bearer" | Auth method (HTTP) |
bearerToken | string | Static bearer token |
bearerTokenEnv | string | Env var name for bearer token |
lifecycle | "lazy" / "eager" / "keep-alive" | Connection strategy (default: lazy) |
idleTimeout | number | Minutes before idle disconnect |
debug | boolean | Show server stderr |
Lifecycle modes:
mcpServers objectIf the file doesn't exist, create it with the full structure:
{
"mcpServers": {
"server-name": { ... }
}
}
Warn if a server with the same name already exists and confirm before overwriting.
/reload to pick up the new configmcp({ connect: "server-name" }) to test the connectionmcp({ server: "server-name" }) to list available tools