用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Vincentwei1021/Synapse --skill setup命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | setup |
| description | Configure Synapse MCP access for Claude Code with project-level .mcp.json and verify the connection. |
| license | AGPL-3.0 |
| metadata | {"author":"Vincentwei1021","version":"0.6.1","category":"research","mcp_server":"synapse"} |
Use this skill when the task is about getting Synapse connected inside Claude Code: API keys, MCP configuration, project-level .mcp.json, or connection debugging.
This skill covers:
SYNAPSE_URL and SYNAPSE_API_KEY.mcp.json so sub-agents inherit accesssynapse_checkin()This skill does not cover day-to-day research or experiment execution. Hand off to:
SYNAPSE_URL and SYNAPSE_API_KEY in one place (see "Where the credentials live" below).synapse_checkin() and confirm expected roles/tools are visible.The plugin already ships its own .mcp.json (at public/synapse-plugin/.mcp.json inside the plugin bundle), so you do not need to copy a .mcp.json into your project. Installing the plugin makes the MCP server available; the only thing you supply is the env values.
The plugin's bundled .mcp.json carries ${SYNAPSE_URL} and ${SYNAPSE_API_KEY} placeholders. Claude Code substitutes them at MCP-server-startup time from your env. You only put the real values in one location:
~/.claude/settings.json's env block. Best for personal use across projects.
{
"env": {
"SYNAPSE_URL": "http://localhost:3000",
"SYNAPSE_API_KEY": "syn_..."
}
}
<project>/.claude/settings.json's env block. Best when several teammates share a project but each needs their own key (use .claude/settings.local.json for personal values; never commit the key).export SYNAPSE_URL=...; export SYNAPSE_API_KEY=... in your shell rc, before launching Claude Code. Ad-hoc only.The plugin's bash hooks (SessionStart, PostToolUse, etc.) also read the same two env variables, so a single env source covers both the MCP server and the hook scripts.
.mcp.json (For Reference)You don't need to edit or copy this file — the plugin ships and loads it automatically:
{
"mcpServers": {
"synapse": {
"type": "http",
"url": "${SYNAPSE_URL}/api/mcp",
"headers": {
"Authorization": "Bearer ${SYNAPSE_API_KEY}"
}
}
}
}
If you have a strong reason to override (e.g. add X-Synapse-Project filter headers for one project), you can add a .mcp.json at your project root that defines a different synapse server entry — Claude Code project-level config takes precedence.
Set the agent's roles on the Agents page based on what you expect Claude Code to do:
pre_research — paper search, literature reading.research — research-question CRUD.experiment — create/start/report/submit experiments, compute tools.report — document and synthesis tools.admin / pi_agent — needed if Claude Code should call synapse_review_experiment to carry the user's verbal approve / reject from the terminal into Synapse. Without one of these, /api/experiments/<uuid>/review returns 403.If the same Claude Code agent should both execute experiments and verbally-approve them, give it both experiment and admin (or pi_agent).
Use:
synapse_checkin()
If the connection is wrong, check:
syn_SYNAPSE_URL is reachableecho $SYNAPSE_URL from the same shell that launches Claude Code)