@dedesfr/prompter 0.8.23 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/README.md +105 -77
  3. package/dist/cli/index.js +25 -1
  4. package/dist/cli/index.js.map +1 -1
  5. package/dist/commands/init.d.ts +1 -7
  6. package/dist/commands/init.d.ts.map +1 -1
  7. package/dist/commands/init.js +60 -299
  8. package/dist/commands/init.js.map +1 -1
  9. package/dist/commands/login.d.ts +4 -0
  10. package/dist/commands/login.d.ts.map +1 -0
  11. package/dist/commands/login.js +56 -0
  12. package/dist/commands/login.js.map +1 -0
  13. package/dist/commands/logout.d.ts +4 -0
  14. package/dist/commands/logout.d.ts.map +1 -0
  15. package/dist/commands/logout.js +14 -0
  16. package/dist/commands/logout.js.map +1 -0
  17. package/dist/commands/update.d.ts.map +1 -1
  18. package/dist/commands/update.js +31 -41
  19. package/dist/commands/update.js.map +1 -1
  20. package/dist/commands/whoami.d.ts +4 -0
  21. package/dist/commands/whoami.d.ts.map +1 -0
  22. package/dist/commands/whoami.js +42 -0
  23. package/dist/commands/whoami.js.map +1 -0
  24. package/dist/core/auth-store.d.ts +10 -0
  25. package/dist/core/auth-store.d.ts.map +1 -0
  26. package/dist/core/auth-store.js +39 -0
  27. package/dist/core/auth-store.js.map +1 -0
  28. package/dist/core/configurators/slash/antigravity.d.ts +2 -5
  29. package/dist/core/configurators/slash/antigravity.d.ts.map +1 -1
  30. package/dist/core/configurators/slash/antigravity.js +2 -57
  31. package/dist/core/configurators/slash/antigravity.js.map +1 -1
  32. package/dist/core/configurators/slash/base.d.ts +6 -18
  33. package/dist/core/configurators/slash/base.d.ts.map +1 -1
  34. package/dist/core/configurators/slash/base.js +8 -77
  35. package/dist/core/configurators/slash/base.js.map +1 -1
  36. package/dist/core/configurators/slash/claude.d.ts +2 -5
  37. package/dist/core/configurators/slash/claude.d.ts.map +1 -1
  38. package/dist/core/configurators/slash/claude.js +2 -57
  39. package/dist/core/configurators/slash/claude.js.map +1 -1
  40. package/dist/core/configurators/slash/codex.d.ts +2 -5
  41. package/dist/core/configurators/slash/codex.d.ts.map +1 -1
  42. package/dist/core/configurators/slash/codex.js +2 -57
  43. package/dist/core/configurators/slash/codex.js.map +1 -1
  44. package/dist/core/configurators/slash/droid.d.ts +2 -5
  45. package/dist/core/configurators/slash/droid.d.ts.map +1 -1
  46. package/dist/core/configurators/slash/droid.js +2 -32
  47. package/dist/core/configurators/slash/droid.js.map +1 -1
  48. package/dist/core/configurators/slash/forge.d.ts +2 -5
  49. package/dist/core/configurators/slash/forge.d.ts.map +1 -1
  50. package/dist/core/configurators/slash/forge.js +2 -32
  51. package/dist/core/configurators/slash/forge.js.map +1 -1
  52. package/dist/core/configurators/slash/github-copilot.d.ts +2 -7
  53. package/dist/core/configurators/slash/github-copilot.d.ts.map +1 -1
  54. package/dist/core/configurators/slash/github-copilot.js +2 -96
  55. package/dist/core/configurators/slash/github-copilot.js.map +1 -1
  56. package/dist/core/configurators/slash/index.d.ts +1 -1
  57. package/dist/core/configurators/slash/index.d.ts.map +1 -1
  58. package/dist/core/configurators/slash/index.js +1 -1
  59. package/dist/core/configurators/slash/index.js.map +1 -1
  60. package/dist/core/configurators/slash/kilocode.d.ts +2 -5
  61. package/dist/core/configurators/slash/kilocode.d.ts.map +1 -1
  62. package/dist/core/configurators/slash/kilocode.js +2 -57
  63. package/dist/core/configurators/slash/kilocode.js.map +1 -1
  64. package/dist/core/configurators/slash/opencode.d.ts +2 -5
  65. package/dist/core/configurators/slash/opencode.d.ts.map +1 -1
  66. package/dist/core/configurators/slash/opencode.js +2 -57
  67. package/dist/core/configurators/slash/opencode.js.map +1 -1
  68. package/dist/core/configurators/slash/registry.d.ts +4 -4
  69. package/dist/core/configurators/slash/registry.d.ts.map +1 -1
  70. package/dist/core/configurators/slash/registry.js.map +1 -1
  71. package/dist/core/registry.d.ts +18 -0
  72. package/dist/core/registry.d.ts.map +1 -0
  73. package/dist/core/registry.js +94 -0
  74. package/dist/core/registry.js.map +1 -0
  75. package/dist/core/templates/index.d.ts +0 -1
  76. package/dist/core/templates/index.d.ts.map +1 -1
  77. package/dist/core/templates/index.js +0 -1
  78. package/dist/core/templates/index.js.map +1 -1
  79. package/package.json +7 -1
  80. package/AGENTS.md +0 -123
  81. package/CLAUDE.md +0 -17
  82. package/build.js +0 -20
  83. package/convex-setup.md +0 -403
  84. package/dist/core/templates/slash-command-templates.d.ts +0 -7
  85. package/dist/core/templates/slash-command-templates.d.ts.map +0 -1
  86. package/dist/core/templates/slash-command-templates.js +0 -1041
  87. package/dist/core/templates/slash-command-templates.js.map +0 -1
  88. package/prompt/ai-humanizer.md +0 -45
  89. package/prompt/api-contract-generator.md +0 -234
  90. package/prompt/apply.md +0 -17
  91. package/prompt/archive.md +0 -21
  92. package/prompt/design-system.md +0 -210
  93. package/prompt/document-explainer.md +0 -149
  94. package/prompt/epic-generator.md +0 -198
  95. package/prompt/epic-single.md +0 -47
  96. package/prompt/erd-generator.md +0 -130
  97. package/prompt/fsd-generator.md +0 -157
  98. package/prompt/prd-agent-generator.md +0 -147
  99. package/prompt/prd-generator.md +0 -195
  100. package/prompt/product-brief.md +0 -289
  101. package/prompt/proposal.md +0 -22
  102. package/prompt/qa-test-scenario.md +0 -133
  103. package/prompt/skill-creator.md +0 -350
  104. package/prompt/story-generator.md +0 -278
  105. package/prompt/story-single.md +0 -70
  106. package/prompt/tdd-generator.md +0 -294
  107. package/prompt/tdd-lite-generator.md +0 -224
  108. package/prompt/wireframe-generator.md +0 -219
  109. package/skills/ai-context-generator/SKILL.md +0 -54
  110. package/skills/ai-context-generator/references/AGENTS.template.md +0 -83
  111. package/skills/ai-context-generator/references/CLAUDE.template.md +0 -39
  112. package/skills/ai-context-generator/references/behavioral-guidelines.md +0 -71
  113. package/skills/ai-context-generator/references/discovery-checklist.md +0 -40
  114. package/skills/ai-context-generator/references/examples/AGENTS.good.md +0 -103
  115. package/skills/ai-context-generator/references/extraction-checklist.md +0 -23
  116. package/skills/ai-context-generator/references/overlays/laravel.md +0 -44
  117. package/skills/cerebro/SKILL.md +0 -187
  118. package/skills/cerebro/references/agents.md +0 -213
  119. package/skills/code-review/SKILL.md +0 -373
  120. package/skills/code-review/assets/report-template-agent.md +0 -212
  121. package/skills/code-review/assets/report-template-compact.md +0 -81
  122. package/skills/code-review/assets/report-template-full.md +0 -264
  123. package/skills/code-review/assets/report-template-human.md +0 -168
  124. package/skills/code-review/references/universal-patterns.md +0 -495
  125. package/skills/design-md/README.md +0 -34
  126. package/skills/design-md/SKILL.md +0 -172
  127. package/skills/design-md/examples/DESIGN.md +0 -154
  128. package/skills/design-system-generator/SKILL.md +0 -324
  129. package/skills/design-system-generator/assets/design-system-template.md +0 -348
  130. package/skills/design-system-generator/references/extraction-patterns.md +0 -321
  131. package/skills/doc-builder/SKILL.md +0 -115
  132. package/skills/doc-builder/references/ui-patterns.md +0 -394
  133. package/skills/document-translator/SKILL.md +0 -58
  134. package/skills/enhance-prompt/README.md +0 -34
  135. package/skills/enhance-prompt/SKILL.md +0 -204
  136. package/skills/enhance-prompt/references/KEYWORDS.md +0 -114
  137. package/skills/feature-planner/SKILL.md +0 -305
  138. package/skills/feature-planner/assets/implementation-plan-template.md +0 -85
  139. package/skills/frontend-design/LICENSE.txt +0 -177
  140. package/skills/frontend-design/SKILL.md +0 -42
  141. package/skills/gamma-builder/SKILL.md +0 -134
  142. package/skills/laravel-code-review/SKILL.md +0 -383
  143. package/skills/laravel-code-review/assets/report-template-agent.md +0 -195
  144. package/skills/laravel-code-review/assets/report-template-compact.md +0 -79
  145. package/skills/laravel-code-review/assets/report-template-full.md +0 -253
  146. package/skills/laravel-code-review/assets/report-template-human.md +0 -159
  147. package/skills/laravel-code-review/references/laravel-patterns.md +0 -571
  148. package/skills/laravel-code-review/references/php84-features.md +0 -442
  149. package/skills/mcp-builder/LICENSE.txt +0 -202
  150. package/skills/mcp-builder/SKILL.md +0 -236
  151. package/skills/mcp-builder/reference/evaluation.md +0 -602
  152. package/skills/mcp-builder/reference/mcp_best_practices.md +0 -249
  153. package/skills/mcp-builder/reference/node_mcp_server.md +0 -970
  154. package/skills/mcp-builder/reference/python_mcp_server.md +0 -719
  155. package/skills/mcp-builder/scripts/connections.py +0 -151
  156. package/skills/mcp-builder/scripts/evaluation.py +0 -373
  157. package/skills/mcp-builder/scripts/example_evaluation.xml +0 -22
  158. package/skills/mcp-builder/scripts/requirements.txt +0 -2
  159. package/skills/meeting-notes/SKILL.md +0 -159
  160. package/skills/meeting-notes/evals/evals.json +0 -23
  161. package/skills/project-orchestrator/SKILL.md +0 -487
  162. package/skills/project-orchestrator/assets/caddy-vps-setup.md +0 -180
  163. package/skills/project-orchestrator/assets/plan-summary-template.md +0 -159
  164. package/skills/prompter-specs/SKILL.md +0 -115
  165. package/skills/prompter-workflow/SKILL.md +0 -166
  166. package/skills/prompter-workflow/evals/evals.json +0 -89
  167. package/skills/sph-generator/SKILL.md +0 -488
  168. package/skills/ui-ux-pro/SKILL.md +0 -199
  169. package/skills/ui-ux-pro/assets/design-spec-template.md +0 -173
  170. package/skills/ui-ux-pro/references/component-patterns.md +0 -255
  171. package/skills/ui-ux-pro/references/design-principles.md +0 -167
  172. package/src/cli/index.ts +0 -223
  173. package/src/commands/archive.ts +0 -302
  174. package/src/commands/change.ts +0 -292
  175. package/src/commands/config.ts +0 -233
  176. package/src/commands/guide.ts +0 -50
  177. package/src/commands/init.ts +0 -899
  178. package/src/commands/list.ts +0 -194
  179. package/src/commands/show.ts +0 -138
  180. package/src/commands/spec.ts +0 -251
  181. package/src/commands/update.ts +0 -156
  182. package/src/commands/upgrade.ts +0 -30
  183. package/src/commands/validate.ts +0 -326
  184. package/src/core/artifact-graph/graph.ts +0 -167
  185. package/src/core/artifact-graph/index.ts +0 -44
  186. package/src/core/artifact-graph/instruction-loader.ts +0 -302
  187. package/src/core/artifact-graph/resolver.ts +0 -226
  188. package/src/core/artifact-graph/schema.ts +0 -124
  189. package/src/core/artifact-graph/state.ts +0 -64
  190. package/src/core/artifact-graph/types.ts +0 -65
  191. package/src/core/completions/command-registry.ts +0 -382
  192. package/src/core/completions/completion-provider.ts +0 -128
  193. package/src/core/completions/generators/bash-generator.ts +0 -191
  194. package/src/core/completions/generators/fish-generator.ts +0 -188
  195. package/src/core/completions/generators/powershell-generator.ts +0 -223
  196. package/src/core/completions/generators/zsh-generator.ts +0 -281
  197. package/src/core/completions/templates/bash-templates.ts +0 -24
  198. package/src/core/completions/templates/fish-templates.ts +0 -40
  199. package/src/core/completions/templates/powershell-templates.ts +0 -25
  200. package/src/core/completions/templates/zsh-templates.ts +0 -36
  201. package/src/core/completions/types.ts +0 -90
  202. package/src/core/config-schema.ts +0 -230
  203. package/src/core/config.ts +0 -181
  204. package/src/core/configurators/slash/antigravity.ts +0 -70
  205. package/src/core/configurators/slash/base.ts +0 -203
  206. package/src/core/configurators/slash/claude.ts +0 -70
  207. package/src/core/configurators/slash/codex.ts +0 -70
  208. package/src/core/configurators/slash/droid.ts +0 -44
  209. package/src/core/configurators/slash/forge.ts +0 -44
  210. package/src/core/configurators/slash/github-copilot.ts +0 -114
  211. package/src/core/configurators/slash/index.ts +0 -10
  212. package/src/core/configurators/slash/kilocode.ts +0 -70
  213. package/src/core/configurators/slash/opencode.ts +0 -70
  214. package/src/core/configurators/slash/registry.ts +0 -51
  215. package/src/core/converters/json-converter.ts +0 -62
  216. package/src/core/global-config.ts +0 -136
  217. package/src/core/parsers/change-parser.ts +0 -234
  218. package/src/core/parsers/markdown-parser.ts +0 -237
  219. package/src/core/parsers/requirement-blocks.ts +0 -234
  220. package/src/core/prompt-templates.ts +0 -3504
  221. package/src/core/schemas/base.schema.ts +0 -20
  222. package/src/core/schemas/change.schema.ts +0 -42
  223. package/src/core/schemas/index.ts +0 -20
  224. package/src/core/schemas/spec.schema.ts +0 -17
  225. package/src/core/skill-discovery.ts +0 -68
  226. package/src/core/specs-apply.ts +0 -483
  227. package/src/core/styles/palette.ts +0 -8
  228. package/src/core/templates/agents-template.ts +0 -459
  229. package/src/core/templates/claude-template.ts +0 -2
  230. package/src/core/templates/index.ts +0 -4
  231. package/src/core/templates/project-template.ts +0 -32
  232. package/src/core/templates/slash-command-templates.ts +0 -1068
  233. package/src/core/validation/constants.ts +0 -48
  234. package/src/core/validation/types.ts +0 -19
  235. package/src/core/validation/validator.ts +0 -449
  236. package/src/core/view.ts +0 -219
  237. package/src/index.ts +0 -1
  238. package/src/utils/change-metadata.ts +0 -171
  239. package/src/utils/change-utils.ts +0 -131
  240. package/src/utils/file-system.ts +0 -252
  241. package/src/utils/index.ts +0 -12
  242. package/src/utils/interactive.ts +0 -29
  243. package/src/utils/item-discovery.ts +0 -66
  244. package/src/utils/match.ts +0 -26
  245. package/src/utils/shell-detection.ts +0 -62
  246. package/src/utils/task-progress.ts +0 -43
  247. package/tsconfig.json +0 -28
@@ -1,187 +0,0 @@
1
- ---
2
- name: cerebro
3
- description: Save and resume cross-agent conversational sessions through the Cerebro MCP server. Use this skill whenever the user wants to preserve session context before switching AI agents (Claude Code → Codex → OpenCode → Cursor → Windsurf, or any combination), is approaching a usage limit and needs to continue elsewhere, says things like "save this for the next agent", "summarize this session", "I'm switching to Codex", "continuing in OpenCode", "pick up where the last agent left off", "resume from yesterday's session", or invokes `/handoff-save` / `/handoff-resume`. Also trigger for first-time setup when the user asks to connect Cerebro to their agents. Trigger this skill even if the user does not name Cerebro explicitly — any cross-agent handoff or session-summary intent qualifies.
4
- ---
5
-
6
- # Session Handoff via Cerebro MCP
7
-
8
- ## What this skill is for
9
-
10
- Long coding sessions often outlive a single agent's usage budget. The user might start in Claude Code, hit a limit, and switch to Codex or OpenCode — but the new agent has zero context. This skill bridges that gap by writing a structured session summary to Cerebro and pulling it back when a new agent starts.
11
-
12
- ---
13
-
14
- ## Step 0 — First-time setup
15
-
16
- Before save/recall will work, Cerebro MCP must be installed in the agents the user wants to use. Check whether the cerebro tools are already available (look for `mcp__cerebro__memory_create` in Claude Code, or `cerebro.*` tools in other agents).
17
-
18
- **If not yet set up**, ask the user which agents they want to install Cerebro into, then show only the relevant instructions from the list below. Don't dump all six agents at once — pick the ones they asked for.
19
-
20
- ### Claude Code
21
- ```bash
22
- claude mcp add --transport http --scope user cerebro http://localhost:3000/api/mcp \
23
- --header "Authorization: Bearer YOUR_TOKEN"
24
- ```
25
- Verify: `claude mcp list` — should show `cerebro connected`.
26
- No restart needed.
27
-
28
- ### OpenCode
29
- Add to `~/.config/opencode/opencode.json`:
30
- ```json
31
- {
32
- "mcp": {
33
- "cerebro": {
34
- "type": "remote",
35
- "url": "http://localhost:3000/api/mcp",
36
- "headers": { "Authorization": "Bearer YOUR_TOKEN" },
37
- "enabled": true
38
- }
39
- }
40
- }
41
- ```
42
- No restart needed — picked up on next `opencode` invocation.
43
-
44
- ### Codex (OpenAI Codex CLI)
45
- Add to `~/.codex/config.json`:
46
- ```json
47
- {
48
- "mcpServers": {
49
- "cerebro": {
50
- "command": "node",
51
- "args": ["/path/to/cerebro-mcp-server/dist/index.js"],
52
- "env": {
53
- "CEREBRO_URL": "http://localhost:3000",
54
- "CEREBRO_TOKEN": "YOUR_TOKEN"
55
- }
56
- }
57
- }
58
- }
59
- ```
60
- The `cerebro-mcp-server` binary lives in the Cerebro repo under `cerebro-mcp-server/`. Build it once with `npm install && npm run build` if `dist/index.js` doesn't exist yet.
61
-
62
- ### Cursor
63
- Add to `~/.cursor/mcp.json`:
64
- ```json
65
- {
66
- "mcpServers": {
67
- "cerebro": {
68
- "command": "node",
69
- "args": ["/path/to/cerebro-mcp-server/dist/index.js"],
70
- "env": {
71
- "CEREBRO_URL": "http://localhost:3000",
72
- "CEREBRO_TOKEN": "YOUR_TOKEN"
73
- }
74
- }
75
- }
76
- }
77
- ```
78
- **Restart Cursor** to pick up the change.
79
-
80
- ### Windsurf
81
- Add to `~/.codeium/windsurf/mcp_config.json`:
82
- ```json
83
- {
84
- "mcpServers": {
85
- "cerebro": {
86
- "command": "node",
87
- "args": ["/path/to/cerebro-mcp-server/dist/index.js"],
88
- "env": {
89
- "CEREBRO_URL": "http://localhost:3000",
90
- "CEREBRO_TOKEN": "YOUR_TOKEN"
91
- }
92
- }
93
- }
94
- }
95
- ```
96
- **Restart Windsurf** to pick up the change.
97
-
98
- ### Claude Desktop
99
- - macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
100
- - Windows: `%APPDATA%\Claude\claude_desktop_config.json`
101
- ```json
102
- {
103
- "mcpServers": {
104
- "cerebro": {
105
- "command": "node",
106
- "args": ["/path/to/cerebro-mcp-server/dist/index.js"],
107
- "env": {
108
- "CEREBRO_URL": "http://localhost:3000",
109
- "CEREBRO_TOKEN": "YOUR_TOKEN"
110
- }
111
- }
112
- }
113
- }
114
- ```
115
- **Restart Claude Desktop** to pick up the change.
116
-
117
- ### Getting a token
118
- Generate one at `http://localhost:3000` → **Settings → Agent Tokens**. One token can be reused across all agents.
119
-
120
- ---
121
-
122
- ## Two operations
123
-
124
- | Trigger | Action |
125
- |---|---|
126
- | `/handoff-save`, "save this session", "I'm switching to Codex", "summarize this for the next agent" | **Save**: write a structured summary to Cerebro |
127
- | `/handoff-resume`, "resume the last session", "pick up where I left off", "what was Claude working on" | **Recall**: fetch the most recent handoff and load it into context |
128
-
129
- ---
130
-
131
- ## Saving a handoff
132
-
133
- 1. **Build the structured summary** from the conversation so far:
134
-
135
- ```yaml
136
- goal: <one or two sentences — what is the user ultimately trying to achieve?>
137
- status: <where things stand right now>
138
- decisions:
139
- - <each non-obvious choice, with the reason>
140
- files_touched:
141
- - path: <relative path>
142
- change: <what was modified, added, or deleted>
143
- open_questions:
144
- - <anything unresolved or uncertain>
145
- next_steps:
146
- - <concrete items the next agent should pick up first>
147
- gotchas: <optional — subtle constraints the next agent must not miss>
148
- ```
149
-
150
- Be honest: if a change wasn't applied, don't list it. If a decision was tentative, say so.
151
-
152
- 2. **Pick a project slug** — use the current working directory's folder name. Confirm only if the cwd looks generic (home dir, `/tmp`).
153
-
154
- 3. **Resolve the project ID** via `mcp__cerebro__project_list`. If no project matches the slug, show the existing projects and ask the user whether to pick one or create a new one. If they want a new project, call `mcp__cerebro__project_create` with the slug as the name — no need to open the browser. Never silently fall back to a different project.
155
-
156
- 4. **Call `memory_create`**:
157
- - `project`: the slug or ID
158
- - `summary`: the YAML from step 1
159
- - `sourceAgent`: current agent name (`claude-code`, `codex`, `opencode`, `cursor`, `windsurf`)
160
- - `tags`: `["session-handoff", "<source-agent-name>"]`
161
- - `metadata`: `{"cwd": "<current working directory>"}`
162
-
163
- 5. **Confirm** the memory ID to the user. Tell them:
164
- - They can verify it in the Cerebro dashboard (the ID is shown on each memory card).
165
- - In any agent, they can load it instantly by just providing the ID: `"load memory <id>"` → `memory_get({ memoryId: "<id>" })` — no project needed.
166
-
167
- ---
168
-
169
- ## Resuming a handoff
170
-
171
- 0. **If the user gives you a memory ID directly** (e.g. "resume memory k97abc123"), call `mcp__cerebro__memory_get({ memoryId: "<id>" })` immediately — skip steps 1–3.
172
- 1. Otherwise, determine the project slug (cwd folder name, or ask).
173
- 2. Resolve to a project ID via `project_list` if needed.
174
- 3. Call `memory_search` with query `"session-handoff"`. Filter results to those with `session-handoff` in their tags, sort by `createdAt` descending, take the newest.
175
- 4. Re-state goal and status in one or two sentences and ask if the user wants to start with the first next-step. Don't dump the whole YAML — they want continuity, not a recap wall.
176
- 5. If multiple handoffs match, list them briefly (date + agent + one-line goal) and ask which to resume.
177
- 6. If nothing matches, say so and offer to search by keyword.
178
-
179
- ---
180
-
181
- ## Why structured YAML
182
-
183
- Named fields let any agent parse the handoff reliably without re-reading a wall of prose. The next agent has no shared memory of the prior conversation — only this summary. If a field doesn't apply, write `none` or omit it.
184
-
185
- ## Reference
186
-
187
- `references/agents.md` — per-agent config file paths, transport types, and restart requirements.
@@ -1,213 +0,0 @@
1
- # Per-Agent MCP Configuration Reference
2
-
3
- ## Token
4
-
5
- Generate a token at your Cerebro instance → **Settings → Agent Tokens**. Enter a name (e.g. "My Computer"), click **Issue token**, and copy it immediately — it won't be shown again.
6
-
7
- Tokens are **user-scoped**: one token grants read+write access to all projects, including ones created later.
8
-
9
- ---
10
-
11
- ## Per-agent details
12
-
13
- ### Claude Code
14
-
15
- - **Transport**: HTTP (no binary needed)
16
- - **Config**: `claude mcp add` CLI (preferred), or add to `~/.claude/settings.json`
17
- - **Restart needed?** No
18
-
19
- ```bash
20
- claude mcp add --transport http --scope user cerebro \
21
- http://localhost:3000/api/mcp \
22
- --header "Authorization: Bearer YOUR_TOKEN"
23
- ```
24
-
25
- Verify: `claude mcp list` — expect `cerebro connected`.
26
-
27
- ---
28
-
29
- ### OpenCode
30
-
31
- - **Transport**: remote HTTP (no binary needed)
32
- - **Config**: `~/.config/opencode/opencode.json` or project-root `opencode.json`
33
- - **Restart needed?** No
34
-
35
- ```jsonc
36
- {
37
- "$schema": "https://opencode.ai/config.json",
38
- "mcp": {
39
- "cerebro": {
40
- "type": "remote",
41
- "url": "http://localhost:3000/api/mcp",
42
- "headers": { "Authorization": "Bearer YOUR_TOKEN" },
43
- "enabled": true
44
- }
45
- }
46
- }
47
- ```
48
-
49
- Verify: `opencode mcp list`
50
-
51
- ---
52
-
53
- ### Cursor
54
-
55
- - **Transport**: stdio (requires built binary)
56
- - **Config**: `~/.cursor/mcp.json`
57
- - **Restart needed?** **Yes** — full Cursor restart
58
-
59
- ```json
60
- {
61
- "mcpServers": {
62
- "cerebro": {
63
- "command": "node",
64
- "args": ["/path/to/cerebro-mcp-server/dist/index.js"],
65
- "env": {
66
- "CEREBRO_URL": "http://localhost:3000",
67
- "CEREBRO_TOKEN": "YOUR_TOKEN"
68
- }
69
- }
70
- }
71
- }
72
- ```
73
-
74
- ---
75
-
76
- ### VS Code (GitHub Copilot / Copilot Chat)
77
-
78
- - **Transport**: stdio (requires built binary)
79
- - **Requires**: VS Code 1.99+ with Copilot extension
80
- - **Config**: `.vscode/mcp.json` (workspace) or user MCP config via Command Palette → **MCP: Open User Configuration**
81
- - **Restart needed?** Yes
82
-
83
- ```json
84
- {
85
- "servers": {
86
- "cerebro": {
87
- "type": "stdio",
88
- "command": "node",
89
- "args": ["/path/to/cerebro-mcp-server/dist/index.js"],
90
- "env": {
91
- "CEREBRO_URL": "http://localhost:3000",
92
- "CEREBRO_TOKEN": "YOUR_TOKEN"
93
- }
94
- }
95
- }
96
- }
97
- ```
98
-
99
- ---
100
-
101
- ### Windsurf
102
-
103
- - **Transport**: stdio (requires built binary)
104
- - **Config**: `~/.codeium/windsurf/mcp_config.json`
105
- - **Restart needed?** **Yes** — full Windsurf restart
106
-
107
- ```json
108
- {
109
- "mcpServers": {
110
- "cerebro": {
111
- "command": "node",
112
- "args": ["/path/to/cerebro-mcp-server/dist/index.js"],
113
- "env": {
114
- "CEREBRO_URL": "http://localhost:3000",
115
- "CEREBRO_TOKEN": "YOUR_TOKEN"
116
- }
117
- }
118
- }
119
- }
120
- ```
121
-
122
- ---
123
-
124
- ### Claude Desktop
125
-
126
- - **Transport**: stdio (requires built binary)
127
- - **Config**:
128
- - macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
129
- - Windows: `%APPDATA%\Claude\claude_desktop_config.json`
130
- - **Restart needed?** **Yes**
131
-
132
- ```json
133
- {
134
- "mcpServers": {
135
- "cerebro": {
136
- "command": "node",
137
- "args": ["/path/to/cerebro-mcp-server/dist/index.js"],
138
- "env": {
139
- "CEREBRO_URL": "http://localhost:3000",
140
- "CEREBRO_TOKEN": "YOUR_TOKEN"
141
- }
142
- }
143
- }
144
- }
145
- ```
146
-
147
- ---
148
-
149
- ### Codex CLI
150
-
151
- - **Transport**: stdio (requires built binary)
152
- - **Config**: `~/.codex/config.json`
153
- - **Restart needed?** No
154
-
155
- ```json
156
- {
157
- "mcpServers": {
158
- "cerebro": {
159
- "command": "node",
160
- "args": ["/path/to/cerebro-mcp-server/dist/index.js"],
161
- "env": {
162
- "CEREBRO_URL": "http://localhost:3000",
163
- "CEREBRO_TOKEN": "YOUR_TOKEN"
164
- }
165
- }
166
- }
167
- }
168
- ```
169
-
170
- ---
171
-
172
- ## Building the stdio binary
173
-
174
- Required for all stdio-transport agents (Cursor, VS Code, Windsurf, Claude Desktop, Codex CLI):
175
-
176
- ```bash
177
- cd /path/to/cerebro-mcp-server
178
- npm install && npm run build
179
- # produces dist/index.js — use its absolute path in configs above
180
- ```
181
-
182
- ---
183
-
184
- ## Available tools
185
-
186
- | Tool | What it does |
187
- |---|---|
188
- | `project_list` | List all projects (name, slug, ID) |
189
- | `project_create` | Create a new project |
190
- | `memory_create` | Create a memory in a project |
191
- | `memory_get` | Fetch a memory by ID only — no project needed |
192
- | `memory_update` | Update an existing memory |
193
- | `memory_delete` | Delete a memory permanently |
194
- | `memory_list` | List all memories in a project |
195
- | `memory_search` | Full-text search across a project's memories |
196
-
197
- ---
198
-
199
- ## Verifying after install
200
-
201
- In Claude Code:
202
- ```bash
203
- claude mcp list
204
- ```
205
- Expect `cerebro` with status `connected`.
206
-
207
- In OpenCode:
208
- ```bash
209
- opencode mcp list
210
- opencode mcp debug cerebro
211
- ```
212
-
213
- In stdio-transport agents (Cursor, VS Code, Windsurf, Claude Desktop), check the tool list (hammer icon) for the 8 tools above after restarting.