一键导入
mcp-install-helper
Use when helping users install, import, repair, or verify MCP server configurations in Agent Deck.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when helping users install, import, repair, or verify MCP server configurations in Agent Deck.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Use when creating or reviewing Agent Deck agents, including frontmatter, tools, supervisor behavior, continuation behavior, and skill assignment.
Create or improve Agent Deck/Pi skills, including where to save them, SKILL.md frontmatter, simple vs modular structure, and validation.
Use when creating, refining, or validating Agent Deck loops, especially to guide users iteratively through loop goal, structure, agents, write target, and safety choices.
Create or improve Agent Deck/Pi prompt templates for reusable parent-session workflows.
基于 SOC 职业分类
| name | mcp-install-helper |
| description | Use when helping users install, import, repair, or verify MCP server configurations in Agent Deck. |
Use this skill when the user wants to add, import, fix, or test an MCP server for Agent Deck.
Agent Deck reads MCP servers from these files, lowest-to-highest precedence:
~/.config/mcp/mcp.json~/.pi/agent/mcp.json — the app-owned writable file<project>/.mcp.json<project>/.pi/mcp.jsonThe MCP view writes only to ~/.pi/agent/mcp.json. Project files can override servers with the same name. Parent Pi sessions receive MCP access through the single mcp proxy tool when MCP is enabled in Runtime → MCP and the server is assigned/advertised for that project.
Supported server config shape:
{
"mcpServers": {
"server-name": {
"command": "npx",
"args": ["-y", "package-name"],
"env": { "KEY": "VALUE" }
}
}
}
or remote HTTP:
{
"mcpServers": {
"server-name": {
"url": "https://example.com/mcp",
"headers": { "API_KEY": "VALUE" },
"transport": "http"
}
}
}
Agent Deck also imports common pasted formats:
mcpServers{ "context7": { ... } }{ "command": "npx", "args": [...] } when the UI can ask for a nameclaude mcp add ... / codex mcp add ... commands~/.pi/agent/mcp.json directly if the user asks/approves and the session has file-write tools.mcp proxy.If the user asks you to install it for them from chat, you may edit ~/.pi/agent/mcp.json directly when write tools are available.
Rules for direct edits:
~/.pi/agent/mcp.json unless the user explicitly asks for a project-local MCP config.settings, unknown top-level keys, and unrelated servers.YOUR_API_KEY or env references like $MY_SERVER_API_KEY when appropriate.A safe shell/Python upsert pattern:
python3 - <<'PY'
import json, os
path = os.path.expanduser('~/.pi/agent/mcp.json')
os.makedirs(os.path.dirname(path), exist_ok=True)
try:
with open(path) as f:
root = json.load(f)
except Exception:
root = {}
root.setdefault('mcpServers', {})['SERVER_NAME'] = SERVER_CONFIG
with open(path, 'w') as f:
json.dump(root, f, indent=2)
f.write('\n')
PY
Replace SERVER_NAME with a JSON string and SERVER_CONFIG with a Python dict mirroring the MCP JSON.
For local stdio:
npx, uvx, docker, node, python-y then @vendor/serverKEY=VALUE one per linecommand, args, optional env, optional cwd, optional transport: "stdio"For remote HTTP:
Authorization or CONTEXT7_API_KEYurl, optional headers, optional transport: "http"Do not put a whole shell command in the Command field. For example, use command: "npx" and args ["-y", "@upstash/context7-mcp"], not command: "npx -y @upstash/context7-mcp".
Before finalizing, verify:
command as one executable and args as an array.url and any required headers.Remote HTTP:
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp",
"headers": {
"CONTEXT7_API_KEY": "YOUR_API_KEY"
},
"transport": "http"
}
}
}
Local stdio:
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]
}
}
}