command-code 1.92.0 → 1.93.1

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 (92) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/package.json +1 -1
  3. package/vsix/commandcode-vscode.vsix +0 -0
  4. package/dist/bundled/agent-browser/SKILL.md +0 -73
  5. package/dist/bundled/command-code-knowledge/SKILL.md +0 -68
  6. package/dist/bundled/command-code-knowledge/live-models.ts +0 -284
  7. package/dist/bundled/command-code-knowledge/reference/byok.md +0 -389
  8. package/dist/bundled/command-code-knowledge/reference/custom-agents.md +0 -341
  9. package/dist/bundled/command-code-knowledge/reference/custom-slash-commands.md +0 -423
  10. package/dist/bundled/command-code-knowledge/reference/headless.md +0 -381
  11. package/dist/bundled/command-code-knowledge/reference/hooks.md +0 -1107
  12. package/dist/bundled/command-code-knowledge/reference/mcp.md +0 -636
  13. package/dist/bundled/command-code-knowledge/reference/memory.md +0 -137
  14. package/dist/bundled/command-code-knowledge/reference/models.md +0 -145
  15. package/dist/bundled/command-code-knowledge/reference/permissions.md +0 -486
  16. package/dist/bundled/command-code-knowledge/reference/plan-mode.md +0 -283
  17. package/dist/bundled/command-code-knowledge/reference/plans.md +0 -16
  18. package/dist/bundled/command-code-knowledge/reference/product-help.md +0 -490
  19. package/dist/bundled/command-code-knowledge/reference/sessions.md +0 -377
  20. package/dist/bundled/command-code-knowledge/reference/skills.md +0 -1009
  21. package/dist/bundled/command-code-knowledge/reference/tools.md +0 -522
  22. package/dist/bundled/config/SKILL.md +0 -18
  23. package/dist/bundled/config/references/permissions.md +0 -27
  24. package/dist/bundled/config/references/settings.md +0 -49
  25. package/dist/bundled/design/SKILL.md +0 -441
  26. package/dist/bundled/design/references/accessibility.md +0 -404
  27. package/dist/bundled/design/references/border.md +0 -161
  28. package/dist/bundled/design/references/button.md +0 -192
  29. package/dist/bundled/design/references/checkup.md +0 -162
  30. package/dist/bundled/design/references/color.md +0 -245
  31. package/dist/bundled/design/references/create.md +0 -291
  32. package/dist/bundled/design/references/design-html.md +0 -227
  33. package/dist/bundled/design/references/deslop.md +0 -283
  34. package/dist/bundled/design/references/finish.md +0 -156
  35. package/dist/bundled/design/references/interaction.md +0 -186
  36. package/dist/bundled/design/references/layout.md +0 -216
  37. package/dist/bundled/design/references/media.md +0 -112
  38. package/dist/bundled/design/references/motion.md +0 -237
  39. package/dist/bundled/design/references/redesign.md +0 -197
  40. package/dist/bundled/design/references/refine.md +0 -193
  41. package/dist/bundled/design/references/relayout.md +0 -207
  42. package/dist/bundled/design/references/report-html.md +0 -235
  43. package/dist/bundled/design/references/responsive.md +0 -233
  44. package/dist/bundled/design/references/review.md +0 -164
  45. package/dist/bundled/design/references/setup.md +0 -119
  46. package/dist/bundled/design/references/severity.md +0 -111
  47. package/dist/bundled/design/references/shadow.md +0 -164
  48. package/dist/bundled/design/references/smell.md +0 -211
  49. package/dist/bundled/design/references/style-3d.md +0 -23
  50. package/dist/bundled/design/references/style-bento.md +0 -21
  51. package/dist/bundled/design/references/style-editorial.md +0 -23
  52. package/dist/bundled/design/references/style-futuristic.md +0 -21
  53. package/dist/bundled/design/references/style-glassmorphism.md +0 -52
  54. package/dist/bundled/design/references/style-maximalism.md +0 -20
  55. package/dist/bundled/design/references/style-minimalism.md +0 -21
  56. package/dist/bundled/design/references/style-neo-brutalism.md +0 -21
  57. package/dist/bundled/design/references/style-retro-futurism.md +0 -21
  58. package/dist/bundled/design/references/style-swiss.md +0 -20
  59. package/dist/bundled/design/references/style.md +0 -77
  60. package/dist/bundled/design/references/surface.md +0 -163
  61. package/dist/bundled/design/references/system.md +0 -73
  62. package/dist/bundled/design/references/typeset.md +0 -210
  63. package/dist/bundled/design/references/variants.md +0 -193
  64. package/dist/bundled/design/references/voice.md +0 -184
  65. package/dist/bundled/design/references/writing.md +0 -174
  66. package/dist/bundled/loop/SKILL.md +0 -16
  67. package/dist/bundled/mod-builder/SKILL.md +0 -135
  68. package/dist/bundled/mod-builder/examples/block-dangerous-commands.ts +0 -41
  69. package/dist/bundled/mod-builder/examples/custom-entry-renderer.ts +0 -32
  70. package/dist/bundled/mod-builder/examples/custom-tool.ts +0 -53
  71. package/dist/bundled/mod-builder/examples/flags-and-options.ts +0 -29
  72. package/dist/bundled/mod-builder/examples/input-shortcuts.ts +0 -41
  73. package/dist/bundled/mod-builder/examples/kitchen-sink.ts +0 -129
  74. package/dist/bundled/mod-builder/examples/lifecycle-hooks.ts +0 -64
  75. package/dist/bundled/mod-builder/examples/model-router.ts +0 -43
  76. package/dist/bundled/mod-builder/examples/observe-events.ts +0 -30
  77. package/dist/bundled/mod-builder/examples/pane-and-buttons.ts +0 -60
  78. package/dist/bundled/mod-builder/examples/pane-form.ts +0 -68
  79. package/dist/bundled/mod-builder/examples/permission-policy.ts +0 -34
  80. package/dist/bundled/mod-builder/examples/redact-secrets.ts +0 -46
  81. package/dist/bundled/mod-builder/examples/slash-command.ts +0 -33
  82. package/dist/bundled/mod-builder/examples/spinner-count.ts +0 -47
  83. package/dist/bundled/mod-builder/examples/stream-filter.ts +0 -70
  84. package/dist/bundled/mod-builder/reference/api.md +0 -140
  85. package/dist/bundled/mod-builder/reference/hooks-and-events.md +0 -347
  86. package/dist/bundled/mod-builder/reference/overview.md +0 -271
  87. package/dist/bundled/mod-builder/reference/packaging.md +0 -187
  88. package/dist/bundled/mod-builder/reference/ui.md +0 -253
  89. package/dist/bundled/mod-builder/reference/verify.md +0 -67
  90. package/dist/bundled/skill-builder/SKILL.md +0 -104
  91. package/dist/cli.mjs +0 -16
  92. package/dist/index.mjs +0 -2
@@ -1,636 +0,0 @@
1
- <!-- Generated from the Command Code docs: https://commandcode.ai/docs -->
2
-
3
- # MCP Servers
4
-
5
- Connect Command Code to external tools and data sources through MCP servers. MCP is an open protocol that lets Command Code interact with external services - databases, APIs, issue trackers, and more.
6
-
7
- ---
8
-
9
- ## What is MCP?
10
-
11
- MCP (Model Context Protocol) is an open protocol that lets AI agents connect to external tools and services. With MCP, Command Code can interact with databases, APIs, dev tools, and more - all through a standardized interface.
12
-
13
- Instead of building custom integrations, you connect MCP servers and Command Code automatically discovers and uses their tools.
14
-
15
- ---
16
-
17
- ## What you can do
18
-
19
- With MCP servers connected, you can ask Command Code to:
20
-
21
- - **Work with project management**: "Create a GitHub issue for the bug we found and assign it to me."
22
- - **Query databases**: "Show me all users who signed up in the last 7 days from our Postgres database."
23
- - **Integrate with services**: "Search Notion for the API design doc and summarize it."
24
- - **Automate workflows**: "Review PR #123 on GitHub, then post a summary in Slack."
25
-
26
- ---
27
-
28
- ## Quickstart
29
-
30
- Add your first MCP server to Command Code in under a minute.
31
-
32
- **Add an MCP server**
33
-
34
- Pick one transport:
35
-
36
- **Add MCP Server**
37
-
38
- ```bash {{ title: 'HTTP (remote)' }}
39
- cmd mcp add --transport http <name> <url>
40
- ```
41
-
42
- ```bash {{ title: 'Stdio (local)' }}
43
- cmd mcp add <name> -- <command> [args...]
44
- ```
45
-
46
- Example:
47
-
48
- **Examples**
49
- ```bash {{ title: 'HTTP (remote)' }}
50
- cmd mcp add --transport http notion https://mcp.notion.com/mcp
51
- ```
52
-
53
- ```bash {{ title: 'Stdio (local)' }}
54
- cmd mcp add playwright -- npx -y @playwright/mcp@latest
55
- ```
56
-
57
- **Authenticate if prompted**
58
-
59
- Some remote servers require OAuth. Open the MCP menu:
60
-
61
- ```bash
62
- /mcp
63
- ```
64
-
65
- Follow the browser prompt to log in. Tokens are stored securely and refreshed automatically.
66
-
67
- If needed, pass auth headers:
68
-
69
- ```bash
70
- cmd mcp add --transport http private-api https://api.company.com/mcp \
71
- --header "X-API-Key: your-key-here"
72
- ```
73
-
74
- All options (`--transport`, `--env`, `--scope`, `--header`) must come before the server name. `--` separates the server name from the local command for stdio servers.
75
-
76
- **Verify connection**
77
-
78
- List your configured servers:
79
-
80
- ```bash
81
- cmd mcp list
82
- ```
83
-
84
- Or inspect one server:
85
-
86
- ```bash
87
- cmd mcp get notion
88
- ```
89
-
90
- Inside a session, `/mcp` shows connection status and available tools.
91
-
92
- **Try it out**
93
-
94
- Start a session:
95
-
96
- ```bash
97
- cmd
98
- ```
99
-
100
- Then ask naturally:
101
-
102
- ```md
103
- Create a note on Notion named "API Design v2".
104
- ```
105
-
106
- Command Code automatically discovers and calls the right MCP tools based on your request.
107
-
108
- **Optional: Add MCP servers from JSON**
109
-
110
- For complex setups, use JSON:
111
-
112
- ```bash
113
- cmd mcp add-json my-server '{
114
- "transport": "http",
115
- "url": "https://api.example.com/mcp",
116
- "headers": {
117
- "Authorization": "Bearer ${API_KEY}"
118
- }
119
- }'
120
- ```
121
-
122
- Example:
123
-
124
- **GitHub MCP Server**
125
-
126
- ```bash {{ title: 'HTTP server' }}
127
- cmd mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer ghp_xxx"}}'
128
- ```
129
-
130
- ```bash {{ title: 'Stdio server' }}
131
- cmd mcp add-json my-tool '{"type":"stdio","command":"npx","args":["@my-org/mcp-server"],"env":{"API_KEY":"xxx"}}'
132
- ```
133
-
134
- ```bash {{ title: 'With OAuth' }}
135
- cmd mcp add-json oauth-server '{"type":"http","url":"https://api.example.com/mcp","oauth":{"authorizationUrl":"https://example.com/authorize","tokenUrl":"https://example.com/token","clientId":"my-client"}}' --client-secret my-secret
136
- ```
137
-
138
- For copying configs between machines or scripting:
139
-
140
- - The JSON accepts `type` as an alias for `transport`.
141
- - Environment variables in config values (like `${API_KEY}`, or `${API_KEY:-default}`) are resolved at runtime, in http `headers` and stdio `env`. The default applies when the variable is unset or empty, as in a shell. A variable that is not set and has no default stops that server with an error naming the variable. Write `$${NAME}` to send the literal text `${NAME}`.
142
-
143
- **Optional: Import from another agent**
144
-
145
- If you already configured MCP servers in another coding agent, bring them over with the `/import` slash command inside a session. With no argument it pulls from every detected source:
146
-
147
- ```bash
148
- /import
149
- ```
150
-
151
- To target one source, name it. Each argument maps to that agent only, so pick the one your MCP config actually lives in:
152
-
153
- ```bash
154
- /import claude # Claude Code
155
- /import codex # Codex
156
- /import cursor # Cursor
157
- /import opencode # OpenCode
158
- /import gemini # Gemini CLI
159
- ```
160
-
161
- It imports MCP servers alongside skills, agents, custom commands, and memory. See [Import](https://commandcode.ai/docs/import).
162
-
163
- ---
164
-
165
- ## Adding MCP servers
166
-
167
- ### HTTP transport (remote servers)
168
-
169
- Use `--transport http` to connect to remote MCP servers:
170
-
171
- **HTTP Examples**
172
-
173
- ```bash {{ title: 'Basic' }}
174
- cmd mcp add --transport http notion https://mcp.notion.com/mcp
175
- ```
176
-
177
- ```bash {{ title: 'With auth header' }}
178
- cmd mcp add --transport http github https://api.githubcopilot.com/mcp \
179
- --header "Authorization: Bearer ghp_xxxxx"
180
- ```
181
-
182
- ```bash {{ title: 'With env vars' }}
183
- cmd mcp add --transport http my-api https://api.example.com/mcp \
184
- --env API_KEY=sk-xxx
185
- ```
186
-
187
- ### Stdio transport (local processes)
188
-
189
- Stdio is the default transport. Use `--` to separate the server name from the command:
190
-
191
- **Stdio Examples**
192
-
193
- ```bash {{ title: 'Basic' }}
194
- cmd mcp add my-tool -- npx @my-org/mcp-server
195
- ```
196
-
197
- ```bash {{ title: 'With args and env' }}
198
- cmd mcp add --env API_KEY=sk-xxx my-tool -- npx @my-org/mcp-server --verbose
199
- ```
200
-
201
- All flags (`--transport`, `--scope`, `--env`, `--header`) must come **before** the server name. The `--` separates the server name from the stdio command and its arguments.
202
-
203
- ### Command options
204
-
205
- | **Flag** | **Description** | **Default** |
206
- | --------------------------- | -------------------------------------------- | ----------- |
207
- | `-t, --transport <type>` | Transport type: `stdio` or `http` | `stdio` |
208
- | `-s, --scope <scope>` | Where to store: `local`, `project`, or `user`| `local` |
209
- | `-e, --env <KEY=value>` | Environment variable (repeatable) | - |
210
- | `-H, --header <Header: value>` | HTTP header (repeatable, http only) | - |
211
-
212
- ---
213
-
214
- ## Command reference
215
-
216
- All MCP management is done through `cmd mcp <subcommand>`.
217
-
218
- | **Command** | **Description** | **Example** |
219
- |-------------------------------------- |------------------------------------------------|-----------------------------------------------------------------|
220
- | `cmd mcp add` | Add server with CLI options | `cmd mcp add --transport http notion https://mcp.notion.com/mcp` |
221
- | `cmd mcp add-json` | Add server from JSON config | `cmd mcp add-json github '{"type":"http","url":"https://..."}'` |
222
- | `cmd mcp list` | List all configured servers | `cmd mcp list` |
223
- | `cmd mcp get <name>` | Show server details | `cmd mcp get notion` |
224
- | `cmd mcp remove <name>` | Remove a server from configuration | `cmd mcp remove notion` |
225
- | `cmd mcp auth <server>` | Authenticate with OAuth (opens browser) | `cmd mcp auth notion` |
226
- | `cmd mcp auth --status <server>` | Check authentication status | `cmd mcp auth --status notion` |
227
- | `cmd mcp auth --list` | List all servers with stored tokens | `cmd mcp auth --list` |
228
- | `cmd mcp auth --clear <server>` | Clear stored tokens | `cmd mcp auth --clear notion` |
229
-
230
- ---
231
-
232
- ## Configuration & scopes
233
-
234
- MCP servers can be stored in three scopes with different visibility:
235
-
236
- | **Scope** | **File Location** | **Purpose** |
237
- | ----------- | --------------------------------------------- | ------------------------------------- |
238
- | `local` | `~/.commandcode/projects/<slug>/mcp.json` | Private, per-project (default) |
239
- | `project` | `.mcp.json` in project root | Shared, version controlled |
240
- | `user` | `~/.commandcode/mcp.json` | Private, available across all projects|
241
-
242
- **Precedence:** When the same server name exists in multiple scopes, `local` overrides `project`, which overrides `user`.
243
-
244
- **Scope Examples**
245
-
246
- ```bash {{ title: 'Local (default)' }}
247
- cmd mcp add --transport http notion https://mcp.notion.com/mcp
248
- ```
249
-
250
- ```bash {{ title: 'Project (shared)' }}
251
- cmd mcp add --scope project --transport http notion https://mcp.notion.com/mcp
252
- ```
253
-
254
- ```bash {{ title: 'User (global)' }}
255
- cmd mcp add --scope user --transport http notion https://mcp.notion.com/mcp
256
- ```
257
-
258
- The `project` scope saves to `.mcp.json` in your project root, which is meant to be committed to Git. OAuth client secrets are automatically stripped from this file and stored securely in `~/.commandcode/mcp-tokens.json` instead.
259
-
260
- ### Local scope (default)
261
-
262
- Stored in `~/.commandcode/`. Only available to you for the current project.
263
-
264
- ```bash
265
- cmd mcp add --transport http stripe https://mcp.stripe.com
266
-
267
- # Explicit:
268
- cmd mcp add --transport http stripe --scope local https://mcp.stripe.com
269
- ```
270
-
271
- ### Project scope
272
-
273
- Stored in `.mcp.json` at your project root. Checked into version control - shared with your team.
274
-
275
- ```bash
276
- cmd mcp add --transport http stripe --scope project https://mcp.stripe.com
277
- ```
278
-
279
- This creates or updates `.mcp.json`:
280
-
281
- ```json
282
- {
283
- "mcpServers": {
284
- "stripe": {
285
- "transport": "http",
286
- "url": "https://mcp.stripe.com"
287
- }
288
- }
289
- }
290
- ```
291
-
292
- ### User scope
293
-
294
- Stored in `~/.commandcode/mcp.json`. Available to you across all projects.
295
-
296
- ```bash
297
- cmd mcp add --transport http stripe --scope user https://mcp.stripe.com
298
- ```
299
-
300
- ### Config schema
301
-
302
- The configuration files follow this schema:
303
-
304
- **Config Schema**
305
-
306
- ```json {{ title: 'HTTP server' }}
307
- {
308
- "mcpServers": {
309
- "my-server": {
310
- "transport": "http",
311
- "enabled": true,
312
- "url": "https://api.example.com/mcp",
313
- "headers": { "Authorization": "Bearer token" },
314
- "env": { "API_KEY": "value" }
315
- }
316
- }
317
- }
318
- ```
319
-
320
- ```json {{ title: 'Stdio server' }}
321
- {
322
- "mcpServers": {
323
- "my-tool": {
324
- "transport": "stdio",
325
- "enabled": true,
326
- "command": "npx",
327
- "args": ["@my-org/mcp-server", "--verbose"],
328
- "env": { "API_KEY": "value" }
329
- }
330
- }
331
- }
332
- ```
333
-
334
- ```json {{ title: 'With OAuth' }}
335
- {
336
- "mcpServers": {
337
- "oauth-server": {
338
- "transport": "http",
339
- "enabled": true,
340
- "url": "https://api.example.com/mcp",
341
- "oauth": {
342
- "authorizationUrl": "https://example.com/authorize",
343
- "tokenUrl": "https://example.com/token",
344
- "clientId": "my-client",
345
- "scopes": ["read", "write"]
346
- }
347
- }
348
- }
349
- }
350
- ```
351
-
352
- ---
353
-
354
- ## Authentication
355
-
356
- ### OAuth flow
357
-
358
- Command Code supports OAuth 2.0 Authorization Code with PKCE for HTTP servers.
359
-
360
- **Add a server that requires OAuth**
361
-
362
- **Add OAuth Server**
363
-
364
- ```bash
365
- cmd mcp add --transport http my-server https://api.example.com/mcp
366
- ```
367
-
368
- If the server requires authentication, Command Code detects this automatically and starts the OAuth flow.
369
-
370
- **Authenticate via browser**
371
-
372
- A browser window opens for you to authorize. After you grant access, tokens are stored securely in `~/.commandcode/mcp-tokens.json`.
373
-
374
- You can also authenticate later:
375
-
376
- **Authenticate**
377
-
378
- ```bash
379
- cmd mcp auth my-server
380
- ```
381
-
382
- Or use the `/mcp` menu inside a session to authenticate interactively.
383
-
384
- **Tokens refresh automatically**
385
-
386
- Tokens are refreshed automatically when they expire. If refresh fails, re-authenticate with `cmd mcp auth <server>`.
387
-
388
- **Token Commands**
389
-
390
- ```bash {{ title: 'Check status' }}
391
- cmd mcp auth --status my-server
392
- ```
393
-
394
- ```bash {{ title: 'List all' }}
395
- cmd mcp auth --list
396
- ```
397
-
398
- ```bash {{ title: 'Clear tokens' }}
399
- cmd mcp auth --clear my-server
400
- ```
401
-
402
- ```bash {{ title: 'Re-authenticate' }}
403
- cmd mcp auth my-server
404
- ```
405
-
406
- ### OAuth flow (remote servers)
407
-
408
- Many remote MCP servers support OAuth 2.0. Use `/mcp` inside Command Code to authenticate:
409
-
410
- ```
411
- /mcp
412
- ```
413
-
414
- Select the server and follow the browser login flow. Tokens are stored securely and refreshed automatically.
415
-
416
- **Tips:**
417
- - Use "Clear authentication" in `/mcp` to revoke access
418
- - If your browser doesn't open automatically, copy the provided URL
419
- - OAuth works with HTTP and SSE transport servers
420
-
421
- ### OAuth with JSON
422
-
423
- ```bash
424
- cmd mcp add-json my-server \
425
- '{"type":"http","url":"https://mcp.example.com/mcp","oauth":{"clientId":"your-client-id","callbackPort":8080}}' \
426
- --client-secret
427
- ```
428
-
429
- ### API key auth
430
-
431
- For servers that use API keys, pass them as environment variables or headers:
432
-
433
- ```bash
434
- # Via env
435
- cmd mcp add --transport stdio --env API_KEY=your-key my-server \
436
- -- npx -y my-mcp-server
437
-
438
- # Via header
439
- cmd mcp add --transport http my-server https://api.example.com/mcp \
440
- --header "Authorization: Bearer your-token"
441
- ```
442
-
443
- ---
444
-
445
- ## The `/mcp` menu
446
-
447
- Inside a Command Code session, type `/mcp` to open the interactive MCP manager.
448
-
449
- ```bash
450
- /mcp
451
- ```
452
-
453
- The menu shows:
454
-
455
- - All configured servers with connection status
456
- - Color-coded indicators: green (connected), cyan (authenticated), yellow (requires auth), red (error)
457
- - Tool count for each connected server
458
- - Actions: connect, authenticate, or remove servers
459
-
460
- ---
461
-
462
- ## Using MCP tools
463
-
464
- Once a server is connected, its tools appear alongside built-in tools. They follow the naming convention `mcp__<server>__<tool>`:
465
-
466
- ```
467
- mcp__notion__search_page
468
- mcp__github__create_issue
469
- ```
470
-
471
- You don't need to remember tool names. Just describe what you want:
472
-
473
- ```
474
- Search for the API design doc on Notion.
475
- ```
476
-
477
- Command Code discovers and calls the appropriate MCP tool automatically.
478
-
479
- ---
480
-
481
- ## Server examples
482
-
483
- A list of useful MCP servers and how to add them in Command Code. These servers extend Command Code with access to external tools, documentation, and services.
484
-
485
- ### Notion
486
-
487
- Search, read, and create pages in your Notion workspace.
488
-
489
- ```bash
490
- cmd mcp add --transport http notion https://mcp.notion.com/mcp
491
- ```
492
-
493
- After adding, authenticate via the `/mcp` menu inside a Command Code session.
494
-
495
- ### GitHub
496
-
497
- Manage GitHub beyond what git supports - issues, PRs, code search, and more. It requires your GitHub Personal Access Token (PAT).
498
-
499
- **Fine-grained token (recommended)** - scoped to specific repos, minimal permissions:
500
-
501
- 1. Go to [GitHub > Settings > Developer settings > Personal access tokens > Fine-grained tokens](https://github.com/settings/personal-access-tokens)
502
- 2. Click **Generate new token**
503
- 3. Name it `commandcode-mcp`, set expiration as needed
504
- 4. **Repository access** → Choose "All repositories" or "Only select repositories"
505
- 5. **Permissions** → Repository permissions → expand and configure:
506
- - **Contents**: Read and write (for file operations)
507
- - **Issues**: Read and write (for issue management)
508
- - **Pull requests**: Read and write (for PR operations)
509
- - **Metadata**: Read-only (automatically included)
510
- 6. Generate token and copy it
511
-
512
- **Classic token** - broader access, simpler setup:
513
-
514
- 1. Go to [GitHub > Settings > Developer settings > Personal access tokens > Tokens (classic)](https://github.com/settings/tokens/new)
515
- 2. Name it `commandcode-mcp`, set expiration as needed
516
- 3. Check the **repo** scope (includes all repository permissions)
517
- 4. Generate token and copy it
518
-
519
- Replace `YOUR_GITHUB_PAT` with your generated token:
520
-
521
- ```bash
522
- cmd mcp add-json github '{"type":"http","url":"https://api.githubcopilot.com/mcp","headers":{"Authorization":"Bearer YOUR_GITHUB_PAT"}}'
523
- ```
524
-
525
- For more details, see the instructions in these [GitHub MCP Server installation docs](https://github.com/github/github-mcp-server/blob/main/docs/installation-guides/install-claude.md).
526
-
527
- ### Playwright
528
-
529
- Control and inspect a browser using Playwright. Write and run browser tests, take screenshots, and automate web interactions.
530
-
531
- ```bash
532
- cmd mcp add playwright -- npx -y @playwright/mcp@latest
533
- ```
534
-
535
- ### Sentry
536
-
537
- Access Sentry logs, monitor errors, and debug production issues.
538
-
539
- ```bash
540
- cmd mcp add --transport http sentry https://mcp.sentry.dev/mcp
541
- ```
542
-
543
- After adding, authenticate via the `/mcp` menu inside a Command Code session.
544
-
545
- ### OpenAI Docs
546
-
547
- Search and read OpenAI developer documentation directly from your prompts.
548
-
549
- ```bash
550
- cmd mcp add --transport http openai-docs https://developers.openai.com/mcp
551
- ```
552
-
553
- ### Context7
554
-
555
- Connect to up-to-date developer documentation. Dynamically fetches version-specific docs and code examples from official sources.
556
-
557
- ```bash
558
- cmd mcp add context7 -- npx -y @upstash/context7-mcp
559
- ```
560
-
561
- Include `use context7` in your prompts to pull in the latest docs for any library.
562
-
563
- ### Figma
564
-
565
- Access your Figma designs. Available as both a remote and local server.
566
-
567
- **Figma MCP**
568
-
569
- ```bash {{ title: 'Remote' }}
570
- cmd mcp add --transport http figma https://mcp.figma.com/mcp
571
- ```
572
-
573
- ```bash {{ title: 'Local (Desktop App)' }}
574
- cmd mcp add --transport http figma-desktop http://127.0.0.1:3845/mcp
575
- ```
576
-
577
- For the remote server, authenticate via the `/mcp` menu after adding. The local server requires the Figma desktop app to be running.
578
-
579
- ### Chrome Developer Tools
580
-
581
- Control and inspect Chrome from Command Code. Debug pages, take screenshots, and interact with the DOM.
582
-
583
- ```bash
584
- cmd mcp add chrome-devtools -- npx -y chrome-devtools-mcp@latest
585
- ```
586
-
587
- Chrome must be running with the `--remote-debugging-port=9222` flag for the MCP server to connect.
588
-
589
- ### Adding any MCP server
590
-
591
- Most MCP servers connect in three ways: as a remote HTTP server, a local stdio process, or from a JSON config.
592
-
593
- **General Pattern**
594
-
595
- ```bash {{ title: 'HTTP (remote)' }}
596
- cmd mcp add --transport http <name> <url>
597
- ```
598
-
599
- ```bash {{ title: 'Stdio (local)' }}
600
- cmd mcp add <name> -- <command> [args...]
601
- ```
602
-
603
- ```bash {{ title: 'From JSON' }}
604
- cmd mcp add-json <name> '{"type":"http","url":"https://..."}'
605
- ```
606
-
607
- ---
608
-
609
- ## Troubleshooting
610
-
611
- **Server won't connect:**
612
-
613
- - Check the URL or command is correct: `cmd mcp get <name>`
614
- - For stdio, ensure the command is installed and in your PATH
615
- - Use `/mcp` to see the connection error message
616
-
617
- **Authentication issues:**
618
-
619
- - Re-authenticate: `cmd mcp auth <server>`
620
- - Clear and retry: `cmd mcp auth --clear <server>` then `cmd mcp auth <server>`
621
- - Check token status: `cmd mcp auth --status <server>`
622
-
623
- **Tools not appearing:**
624
-
625
- - Verify the server is connected via `/mcp`
626
- - The server may take a few seconds to initialize after startup
627
- - Check that the server actually exposes tools (some only expose resources)
628
-
629
- ---
630
-
631
- ## Next steps
632
-
633
- - [CLI Reference](https://commandcode.ai/docs/reference/cli) for all Command Code commands
634
- - [Slash Commands](./custom-slash-commands.md) for custom prompts
635
- - [MCP Protocol Specification](https://modelcontextprotocol.io/introduction) for building your own MCP server
636
- - Join our [Discord community](https://commandcode.ai/discord) for support