opencastle 0.38.2 → 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 (267) hide show
  1. package/README.md +81 -1
  2. package/bin/cli.mjs +20 -3
  3. package/dist/cli/adapters/antigravity.d.ts +1 -1
  4. package/dist/cli/adapters/antigravity.d.ts.map +1 -1
  5. package/dist/cli/adapters/claude-code.d.ts +1 -1
  6. package/dist/cli/adapters/claude-code.d.ts.map +1 -1
  7. package/dist/cli/adapters/codex.d.ts +1 -1
  8. package/dist/cli/adapters/codex.d.ts.map +1 -1
  9. package/dist/cli/adapters/cursor.d.ts +1 -1
  10. package/dist/cli/adapters/cursor.d.ts.map +1 -1
  11. package/dist/cli/adapters/opencode.d.ts +1 -1
  12. package/dist/cli/adapters/opencode.d.ts.map +1 -1
  13. package/dist/cli/adapters/rules-dir-base.d.ts +3 -2
  14. package/dist/cli/adapters/rules-dir-base.d.ts.map +1 -1
  15. package/dist/cli/adapters/rules-dir-base.js +13 -25
  16. package/dist/cli/adapters/rules-dir-base.js.map +1 -1
  17. package/dist/cli/adapters/single-file-base.d.ts.map +1 -1
  18. package/dist/cli/adapters/single-file-base.js +30 -43
  19. package/dist/cli/adapters/single-file-base.js.map +1 -1
  20. package/dist/cli/adapters/vscode.d.ts +3 -2
  21. package/dist/cli/adapters/vscode.d.ts.map +1 -1
  22. package/dist/cli/adapters/vscode.js +19 -71
  23. package/dist/cli/adapters/vscode.js.map +1 -1
  24. package/dist/cli/adapters/windsurf.d.ts +1 -1
  25. package/dist/cli/adapters/windsurf.d.ts.map +1 -1
  26. package/dist/cli/baseline.d.ts +3 -0
  27. package/dist/cli/baseline.d.ts.map +1 -0
  28. package/dist/cli/baseline.js +280 -0
  29. package/dist/cli/baseline.js.map +1 -0
  30. package/dist/cli/ci.d.ts +18 -0
  31. package/dist/cli/ci.d.ts.map +1 -0
  32. package/dist/cli/ci.js +279 -0
  33. package/dist/cli/ci.js.map +1 -0
  34. package/dist/cli/dispatcher.test.js +2 -2
  35. package/dist/cli/dispatcher.test.js.map +1 -1
  36. package/dist/cli/docs-accuracy.test.js +5 -0
  37. package/dist/cli/docs-accuracy.test.js.map +1 -1
  38. package/dist/cli/doctor.d.ts +3 -3
  39. package/dist/cli/doctor.d.ts.map +1 -1
  40. package/dist/cli/doctor.js +66 -9
  41. package/dist/cli/doctor.js.map +1 -1
  42. package/dist/cli/explain.d.ts +3 -0
  43. package/dist/cli/explain.d.ts.map +1 -0
  44. package/dist/cli/explain.js +210 -0
  45. package/dist/cli/explain.js.map +1 -0
  46. package/dist/cli/fleet.d.ts +30 -0
  47. package/dist/cli/fleet.d.ts.map +1 -0
  48. package/dist/cli/fleet.js +149 -0
  49. package/dist/cli/fleet.js.map +1 -0
  50. package/dist/cli/github-report.d.ts +49 -0
  51. package/dist/cli/github-report.d.ts.map +1 -0
  52. package/dist/cli/github-report.js +161 -0
  53. package/dist/cli/github-report.js.map +1 -0
  54. package/dist/cli/github-report.test.d.ts +2 -0
  55. package/dist/cli/github-report.test.d.ts.map +1 -0
  56. package/dist/cli/github-report.test.js +146 -0
  57. package/dist/cli/github-report.test.js.map +1 -0
  58. package/dist/cli/init.d.ts.map +1 -1
  59. package/dist/cli/init.js +135 -94
  60. package/dist/cli/init.js.map +1 -1
  61. package/dist/cli/init.test.js +26 -25
  62. package/dist/cli/init.test.js.map +1 -1
  63. package/dist/cli/layers.d.ts +152 -0
  64. package/dist/cli/layers.d.ts.map +1 -0
  65. package/dist/cli/layers.js +932 -0
  66. package/dist/cli/layers.js.map +1 -0
  67. package/dist/cli/layers.test.d.ts +2 -0
  68. package/dist/cli/layers.test.d.ts.map +1 -0
  69. package/dist/cli/layers.test.js +483 -0
  70. package/dist/cli/layers.test.js.map +1 -0
  71. package/dist/cli/lock.d.ts +130 -0
  72. package/dist/cli/lock.d.ts.map +1 -0
  73. package/dist/cli/lock.js +320 -0
  74. package/dist/cli/lock.js.map +1 -0
  75. package/dist/cli/mcp-audit.d.ts +164 -0
  76. package/dist/cli/mcp-audit.d.ts.map +1 -0
  77. package/dist/cli/mcp-audit.js +504 -0
  78. package/dist/cli/mcp-audit.js.map +1 -0
  79. package/dist/cli/mcp-audit.test.d.ts +2 -0
  80. package/dist/cli/mcp-audit.test.d.ts.map +1 -0
  81. package/dist/cli/mcp-audit.test.js +215 -0
  82. package/dist/cli/mcp-audit.test.js.map +1 -0
  83. package/dist/cli/mcp-upgrade.test.d.ts +2 -0
  84. package/dist/cli/mcp-upgrade.test.d.ts.map +1 -0
  85. package/dist/cli/mcp-upgrade.test.js +118 -0
  86. package/dist/cli/mcp-upgrade.test.js.map +1 -0
  87. package/dist/cli/mcp.d.ts +74 -5
  88. package/dist/cli/mcp.d.ts.map +1 -1
  89. package/dist/cli/mcp.js +340 -32
  90. package/dist/cli/mcp.js.map +1 -1
  91. package/dist/cli/policy.d.ts +58 -0
  92. package/dist/cli/policy.d.ts.map +1 -0
  93. package/dist/cli/policy.js +194 -0
  94. package/dist/cli/policy.js.map +1 -0
  95. package/dist/cli/publish-workflow.test.js +55 -1
  96. package/dist/cli/publish-workflow.test.js.map +1 -1
  97. package/dist/cli/remove.d.ts.map +1 -1
  98. package/dist/cli/remove.js +3 -2
  99. package/dist/cli/remove.js.map +1 -1
  100. package/dist/cli/review.d.ts +25 -0
  101. package/dist/cli/review.d.ts.map +1 -0
  102. package/dist/cli/review.js +437 -0
  103. package/dist/cli/review.js.map +1 -0
  104. package/dist/cli/status.d.ts +2 -0
  105. package/dist/cli/status.d.ts.map +1 -1
  106. package/dist/cli/status.js +25 -4
  107. package/dist/cli/status.js.map +1 -1
  108. package/dist/cli/status.test.js +5 -3
  109. package/dist/cli/status.test.js.map +1 -1
  110. package/dist/cli/sync-check.d.ts +16 -1
  111. package/dist/cli/sync-check.d.ts.map +1 -1
  112. package/dist/cli/sync-check.js +219 -13
  113. package/dist/cli/sync-check.js.map +1 -1
  114. package/dist/cli/sync-check.test.js +14 -8
  115. package/dist/cli/sync-check.test.js.map +1 -1
  116. package/dist/cli/sync.d.ts.map +1 -1
  117. package/dist/cli/sync.js +2 -0
  118. package/dist/cli/sync.js.map +1 -1
  119. package/dist/cli/team-ci.test.d.ts +2 -0
  120. package/dist/cli/team-ci.test.d.ts.map +1 -0
  121. package/dist/cli/team-ci.test.js +169 -0
  122. package/dist/cli/team-ci.test.js.map +1 -0
  123. package/dist/cli/team-commands.test.d.ts +2 -0
  124. package/dist/cli/team-commands.test.d.ts.map +1 -0
  125. package/dist/cli/team-commands.test.js +233 -0
  126. package/dist/cli/team-commands.test.js.map +1 -0
  127. package/dist/cli/team-config.d.ts +88 -0
  128. package/dist/cli/team-config.d.ts.map +1 -0
  129. package/dist/cli/team-config.js +261 -0
  130. package/dist/cli/team-config.js.map +1 -0
  131. package/dist/cli/team-health.d.ts +49 -0
  132. package/dist/cli/team-health.d.ts.map +1 -0
  133. package/dist/cli/team-health.js +205 -0
  134. package/dist/cli/team-health.js.map +1 -0
  135. package/dist/cli/team-sources.test.d.ts +2 -0
  136. package/dist/cli/team-sources.test.d.ts.map +1 -0
  137. package/dist/cli/team-sources.test.js +542 -0
  138. package/dist/cli/team-sources.test.js.map +1 -0
  139. package/dist/cli/types.d.ts +16 -2
  140. package/dist/cli/types.d.ts.map +1 -1
  141. package/dist/cli/types.js.map +1 -1
  142. package/dist/cli/update.d.ts.map +1 -1
  143. package/dist/cli/update.js +204 -44
  144. package/dist/cli/update.js.map +1 -1
  145. package/dist/cli/version-range.d.ts +24 -0
  146. package/dist/cli/version-range.d.ts.map +1 -0
  147. package/dist/cli/version-range.js +157 -0
  148. package/dist/cli/version-range.js.map +1 -0
  149. package/dist/cli/website-plugins.test.d.ts +2 -0
  150. package/dist/cli/website-plugins.test.d.ts.map +1 -0
  151. package/dist/cli/website-plugins.test.js +34 -0
  152. package/dist/cli/website-plugins.test.js.map +1 -0
  153. package/dist/orchestrator/plugins/chrome-devtools/config.d.ts.map +1 -1
  154. package/dist/orchestrator/plugins/chrome-devtools/config.js +11 -1
  155. package/dist/orchestrator/plugins/chrome-devtools/config.js.map +1 -1
  156. package/dist/orchestrator/plugins/contentful/config.d.ts.map +1 -1
  157. package/dist/orchestrator/plugins/contentful/config.js +11 -1
  158. package/dist/orchestrator/plugins/contentful/config.js.map +1 -1
  159. package/dist/orchestrator/plugins/convex/config.d.ts.map +1 -1
  160. package/dist/orchestrator/plugins/convex/config.js +11 -1
  161. package/dist/orchestrator/plugins/convex/config.js.map +1 -1
  162. package/dist/orchestrator/plugins/coolify/config.d.ts.map +1 -1
  163. package/dist/orchestrator/plugins/coolify/config.js +14 -1
  164. package/dist/orchestrator/plugins/coolify/config.js.map +1 -1
  165. package/dist/orchestrator/plugins/figma/config.d.ts.map +1 -1
  166. package/dist/orchestrator/plugins/figma/config.js +24 -13
  167. package/dist/orchestrator/plugins/figma/config.js.map +1 -1
  168. package/dist/orchestrator/plugins/linear/config.d.ts.map +1 -1
  169. package/dist/orchestrator/plugins/linear/config.js +27 -17
  170. package/dist/orchestrator/plugins/linear/config.js.map +1 -1
  171. package/dist/orchestrator/plugins/netlify/config.d.ts.map +1 -1
  172. package/dist/orchestrator/plugins/netlify/config.js +23 -9
  173. package/dist/orchestrator/plugins/netlify/config.js.map +1 -1
  174. package/dist/orchestrator/plugins/nextjs/config.d.ts.map +1 -1
  175. package/dist/orchestrator/plugins/nextjs/config.js +11 -1
  176. package/dist/orchestrator/plugins/nextjs/config.js.map +1 -1
  177. package/dist/orchestrator/plugins/nx/config.d.ts.map +1 -1
  178. package/dist/orchestrator/plugins/nx/config.js +11 -1
  179. package/dist/orchestrator/plugins/nx/config.js.map +1 -1
  180. package/dist/orchestrator/plugins/pins.test.d.ts +2 -0
  181. package/dist/orchestrator/plugins/pins.test.d.ts.map +1 -0
  182. package/dist/orchestrator/plugins/pins.test.js +78 -0
  183. package/dist/orchestrator/plugins/pins.test.js.map +1 -0
  184. package/dist/orchestrator/plugins/playwright/config.d.ts.map +1 -1
  185. package/dist/orchestrator/plugins/playwright/config.js +11 -1
  186. package/dist/orchestrator/plugins/playwright/config.js.map +1 -1
  187. package/dist/orchestrator/plugins/prisma/config.d.ts.map +1 -1
  188. package/dist/orchestrator/plugins/prisma/config.js +17 -2
  189. package/dist/orchestrator/plugins/prisma/config.js.map +1 -1
  190. package/dist/orchestrator/plugins/resend/config.d.ts.map +1 -1
  191. package/dist/orchestrator/plugins/resend/config.js +17 -1
  192. package/dist/orchestrator/plugins/resend/config.js.map +1 -1
  193. package/dist/orchestrator/plugins/sentry/config.d.ts.map +1 -1
  194. package/dist/orchestrator/plugins/sentry/config.js +13 -1
  195. package/dist/orchestrator/plugins/sentry/config.js.map +1 -1
  196. package/dist/orchestrator/plugins/slack/config.d.ts.map +1 -1
  197. package/dist/orchestrator/plugins/slack/config.js +20 -1
  198. package/dist/orchestrator/plugins/slack/config.js.map +1 -1
  199. package/dist/orchestrator/plugins/strapi/config.d.ts.map +1 -1
  200. package/dist/orchestrator/plugins/strapi/config.js +11 -1
  201. package/dist/orchestrator/plugins/strapi/config.js.map +1 -1
  202. package/dist/orchestrator/plugins/trello/config.d.ts.map +1 -1
  203. package/dist/orchestrator/plugins/trello/config.js +21 -1
  204. package/dist/orchestrator/plugins/trello/config.js.map +1 -1
  205. package/dist/orchestrator/plugins/types.d.ts +22 -0
  206. package/dist/orchestrator/plugins/types.d.ts.map +1 -1
  207. package/package.json +3 -1
  208. package/src/cli/adapters/rules-dir-base.ts +23 -44
  209. package/src/cli/adapters/single-file-base.ts +43 -46
  210. package/src/cli/adapters/vscode.ts +28 -71
  211. package/src/cli/baseline.ts +289 -0
  212. package/src/cli/ci.ts +289 -0
  213. package/src/cli/dispatcher.test.ts +2 -2
  214. package/src/cli/docs-accuracy.test.ts +5 -0
  215. package/src/cli/doctor.ts +92 -6
  216. package/src/cli/explain.ts +210 -0
  217. package/src/cli/fleet.ts +176 -0
  218. package/src/cli/github-report.test.ts +158 -0
  219. package/src/cli/github-report.ts +179 -0
  220. package/src/cli/init.test.ts +27 -27
  221. package/src/cli/init.ts +135 -93
  222. package/src/cli/layers.test.ts +525 -0
  223. package/src/cli/layers.ts +1089 -0
  224. package/src/cli/lock.ts +395 -0
  225. package/src/cli/mcp-audit.test.ts +259 -0
  226. package/src/cli/mcp-audit.ts +619 -0
  227. package/src/cli/mcp-upgrade.test.ts +135 -0
  228. package/src/cli/mcp.ts +373 -34
  229. package/src/cli/policy.ts +207 -0
  230. package/src/cli/publish-workflow.test.ts +60 -1
  231. package/src/cli/remove.ts +8 -2
  232. package/src/cli/review.ts +457 -0
  233. package/src/cli/status.test.ts +5 -3
  234. package/src/cli/status.ts +29 -4
  235. package/src/cli/sync-check.test.ts +16 -8
  236. package/src/cli/sync-check.ts +245 -14
  237. package/src/cli/sync.ts +2 -0
  238. package/src/cli/team-ci.test.ts +195 -0
  239. package/src/cli/team-commands.test.ts +253 -0
  240. package/src/cli/team-config.ts +289 -0
  241. package/src/cli/team-health.ts +234 -0
  242. package/src/cli/team-sources.test.ts +578 -0
  243. package/src/cli/types.ts +19 -1
  244. package/src/cli/update.ts +217 -44
  245. package/src/cli/version-range.ts +150 -0
  246. package/src/cli/website-plugins.test.ts +41 -0
  247. package/src/dashboard/node_modules/.vite/deps/_metadata.json +6 -6
  248. package/src/orchestrator/plugins/chrome-devtools/config.ts +11 -1
  249. package/src/orchestrator/plugins/contentful/config.ts +11 -1
  250. package/src/orchestrator/plugins/convex/config.ts +11 -1
  251. package/src/orchestrator/plugins/coolify/config.ts +14 -1
  252. package/src/orchestrator/plugins/figma/SKILL.md +18 -14
  253. package/src/orchestrator/plugins/figma/config.ts +24 -13
  254. package/src/orchestrator/plugins/linear/SKILL.md +6 -14
  255. package/src/orchestrator/plugins/linear/config.ts +27 -17
  256. package/src/orchestrator/plugins/netlify/config.ts +23 -9
  257. package/src/orchestrator/plugins/nextjs/config.ts +11 -1
  258. package/src/orchestrator/plugins/nx/config.ts +11 -1
  259. package/src/orchestrator/plugins/pins.test.ts +80 -0
  260. package/src/orchestrator/plugins/playwright/config.ts +11 -1
  261. package/src/orchestrator/plugins/prisma/config.ts +17 -2
  262. package/src/orchestrator/plugins/resend/config.ts +17 -1
  263. package/src/orchestrator/plugins/sentry/config.ts +13 -1
  264. package/src/orchestrator/plugins/slack/config.ts +20 -1
  265. package/src/orchestrator/plugins/strapi/config.ts +11 -1
  266. package/src/orchestrator/plugins/trello/config.ts +21 -1
  267. package/src/orchestrator/plugins/types.ts +24 -0
@@ -7,28 +7,32 @@ description: "Figma design-to-code workflows, design token extraction, component
7
7
 
8
8
  # Figma Design
9
9
 
10
- Project design system: the **frontend-design** skill. Docs: https://www.figma.com/developers/api
10
+ Project design system: the **frontend-design** skill. Docs: https://developers.figma.com/docs/figma-mcp-server/
11
11
 
12
12
  ## MCP tools
13
13
 
14
- | Tool | Purpose |
14
+ Figma's own remote server (`https://mcp.figma.com/mcp`), signed in with OAuth. It works from a **link**: pass the Figma URL of the frame or layer, including its `node-id`. It does not see what is selected in the desktop app — that is the desktop server's feature.
15
+
16
+ | Tool | Use it for |
15
17
  |------|---------|
16
- | `figma/get_file` | Full file structure — takes `depth` to cap traversal |
17
- | `figma/get_file_nodes` | Specific nodes/frames by `node_ids` |
18
- | `figma/get_images` | Export nodes: `{ ids, format, scale }` |
19
- | `figma/get_comments` | Design review comments |
20
- | `figma/get_styles` | Color/text/effect styles |
21
- | `figma/get_components` | Reusable components |
18
+ | `figma/get_metadata` | A sparse outline of a large frame — layer IDs, names, positions, sizes. Start here on anything big, then narrow |
19
+ | `figma/get_design_context` | Design context for one layer: structure, styles, layout, as a starting point for code |
20
+ | `figma/get_variable_defs` | The variables and styles a layer uses — colors, spacing, typography — for token mapping |
21
+ | `figma/get_screenshot` | A PNG of the layer, to compare against what you built |
22
+ | `figma/search_design_system` | Components, variables and styles in the team's libraries — reuse before rebuilding |
23
+ | `figma/get_code_connect_map` | Which code component a Figma component already maps to |
24
+ | `figma/download_assets` | Image and vector exports |
22
25
 
23
- Every call needs `file_key` (from the file URL). Node IDs use a colon, e.g. `"123:45"`. Never call `get_file` without `depth` on a large file — it returns the entire node tree.
26
+ On a large frame, get the outline with `get_metadata` first, then ask `get_design_context` for the frames you need.
24
27
 
25
28
  ## Workflow
26
29
 
27
- 1. `get_file_nodes` for the target frames; extract bounding boxes, fills, text styles, and auto-layout properties.
28
- 2. Map returned styles into token files (`src/styles/tokens.css` or token JSON) — do not inline raw hex values into components.
29
- 3. Build the component consuming those tokens, with a `data-testid` so the result can be verified programmatically.
30
- 4. Verify: render in Storybook, compare DOM bounding boxes against the Figma node metrics. **Acceptance: spacing within 4px, token colors exact, font family and weight exact.**
31
- 5. Outside threshold → fix the token mapping or ask design; re-run from step 1.
30
+ 1. `get_metadata` on the frame's link; pick the node IDs you need.
31
+ 2. `get_design_context` and `get_variable_defs` for those nodes. Check `get_code_connect_map` and `search_design_system` first — a mapped component is imported, not rebuilt.
32
+ 3. Map variables into the token files (`src/styles/tokens.css` or token JSON). Do not inline raw hex values into components; the returned code is a starting point, not the answer — translate it into the project's components and tokens.
33
+ 4. Build the component with a `data-testid` so the result can be verified programmatically.
34
+ 5. Verify with `get_screenshot` side by side, and compare DOM bounding boxes against the node metrics. **Acceptance: spacing within 4px, token colors exact, font family and weight exact.**
35
+ 6. Outside threshold → fix the token mapping or ask design; re-run from step 2.
32
36
 
33
37
  ## Figma → CSS, the non-obvious mappings
34
38
 
@@ -9,24 +9,35 @@ export const config: PluginConfig = {
9
9
  hint: 'Design tokens, component specs, asset export',
10
10
  skillName: 'figma-design',
11
11
  mcpServerKey: 'Figma',
12
+ // Figma's own remote server, signed in with OAuth. The previous default
13
+ // pointed at `@anthropic/figma-mcp`, a package that was never published on
14
+ // npm, so the server could not start for anyone.
12
15
  mcpConfig: {
13
- type: 'stdio',
14
- command: 'npx',
15
- args: ['-y', '@anthropic/figma-mcp@latest'],
16
- envFile: '${workspaceFolder}/.env'
16
+ type: 'http',
17
+ url: 'https://mcp.figma.com/mcp',
17
18
  },
18
- authType: 'env-token',
19
- envVars: [
20
- {
21
- name: 'FIGMA_ACCESS_TOKEN',
22
- hint: 'Generate at figma.com → Settings → Personal access tokens',
23
- },
24
- ],
19
+ authType: 'oauth',
20
+ envVars: [],
25
21
  agentToolMap: {
26
22
  'ui-ux-expert': ['figma/*'],
27
23
  'developer': ['figma/*'],
28
24
  },
29
25
  docsUrl: 'https://www.opencastle.dev/docs/plugins#figma',
30
- officialDocs: 'https://www.figma.com/developers/api',
31
- mcpPackage: '@anthropic/figma-mcp',
26
+ officialDocs: 'https://help.figma.com/hc/en-us/articles/32132100833559-Guide-to-the-Figma-MCP-server',
27
+ previousMcpConfigs: [
28
+ {
29
+ mcpConfig: {
30
+ type: 'stdio',
31
+ command: 'npx',
32
+ args: ['-y', '@anthropic/figma-mcp@latest'],
33
+ envFile: '${workspaceFolder}/.env',
34
+ },
35
+ envVars: [
36
+ {
37
+ name: 'FIGMA_ACCESS_TOKEN',
38
+ hint: 'Generate at figma.com → Settings → Personal access tokens',
39
+ },
40
+ ],
41
+ },
42
+ ],
32
43
  };
@@ -7,24 +7,16 @@ description: "Creates and names Linear issues, assigns labels and priorities, ma
7
7
 
8
8
  # Task Management with Linear
9
9
 
10
- Team ID, workflow state UUIDs, and label UUIDs: `.opencastle/project/linear-config.md`. Docs: https://linear.app/docs
10
+ Team, workflow states and labels: `.opencastle/project/linear-config.md`. Docs: https://linear.app/docs/mcp
11
11
 
12
- ## The `stateId` UUID trap
12
+ ## The MCP server
13
13
 
14
- `update_issue` requires a workflow state **UUID**. Passing a display name like `"In Progress"` always fails with `stateId must be a UUID`. The names returned by `list_issues` / `get_issue` are display-only and are *not* valid `stateId` values.
14
+ Linear's own remote server (`https://mcp.linear.app/mcp`), signed in with OAuth — each teammate as themselves, so issue history shows who did what. It finds, creates and updates issues, projects and comments, and lists teams, cycles, statuses and labels. Tool names change between server versions: read the tool list the server offers instead of assuming a name.
15
15
 
16
- ```json
17
- // works — UUID read from linear-config.md
18
- { "issueId": "TAS-42", "stateId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890" }
19
- // fails — name, not UUID
20
- { "issueId": "TAS-42", "status": "In Progress" }
21
- ```
16
+ ## Gotchas
22
17
 
23
- If `linear-config.md` has no state UUIDs: skip status updates and log a warning. To populate them, ask the user for Linear *Settings → Teams → Workflow* (the UUID is in the browser URL per state) or the GraphQL `workflowStates { nodes { id name } }` query. Labels and teams are UUIDs too (`teamId`, `labelIds`).
24
-
25
- ## Other gotchas
26
-
27
- - **Linear MCP has no comment API.** To record a blocker, edit the issue description.
18
+ - **Look up, don't guess.** Read the team's statuses and labels from the server before setting them, and record the ones the team uses in `linear-config.md`.
19
+ - **Blockers go in a comment** on the issue, not in the description — the description is the spec.
28
20
  - Treat a create as successful only if it returns an issue ID (`TAS-42`) — verify before delegating.
29
21
  - GitHub integration auto-transitions on PR events (push → In Progress, review → In Review, merge → Done), configured in *Settings → Team → Pull request automation*. Link by putting `TAS-123` in the branch or PR title.
30
22
  - On resume, re-read every issue status before acting; a stale local view causes double work.
@@ -9,26 +9,36 @@ export const config: PluginConfig = {
9
9
  hint: 'Issue tracking with MCP integration',
10
10
  skillName: 'linear-task-management',
11
11
  mcpServerKey: 'Linear',
12
+ // Linear's own remote server, signed in with OAuth — no API key in .env. It
13
+ // replaces a third-party republish of a community server.
12
14
  mcpConfig: {
13
- type: 'stdio',
14
- command: 'npx',
15
- args: ['-y', '@mseep/linear-mcp'],
16
- envFile: '${workspaceFolder}/.env',
15
+ type: 'http',
16
+ url: 'https://mcp.linear.app/mcp',
17
17
  },
18
- authType: 'env-token',
19
- envVars: [
18
+ authType: 'oauth',
19
+ envVars: [],
20
+ // The whole server, not a list of names. The names belonged to the previous
21
+ // community server; Linear's own names its tools differently and changes them
22
+ // between versions, and a named tool that does not exist is silently absent.
23
+ agentToolMap: {
24
+ 'team-lead': ['linear/*'],
25
+ },
26
+ docsUrl: 'https://www.opencastle.dev/docs/plugins#linear',
27
+ officialDocs: 'https://linear.app/docs/mcp',
28
+ previousMcpConfigs: [
20
29
  {
21
- name: 'LINEAR_API_KEY',
22
- hint: 'Create at linear.app → Settings → API → Personal API keys',
30
+ mcpConfig: {
31
+ type: 'stdio',
32
+ command: 'npx',
33
+ args: ['-y', '@mseep/linear-mcp'],
34
+ envFile: '${workspaceFolder}/.env',
35
+ },
36
+ envVars: [
37
+ {
38
+ name: 'LINEAR_API_KEY',
39
+ hint: 'Create at linear.app → Settings → API → Personal API keys',
40
+ },
41
+ ],
23
42
  },
24
43
  ],
25
- agentToolMap: {
26
- 'team-lead': [
27
- 'linear/create_issue', 'linear/list_issues', 'linear/update_issue',
28
- 'linear/list_teams', 'linear/list_projects', 'linear/get_issue', 'linear/search_issues',
29
- ],
30
- },
31
- docsUrl: 'https://www.opencastle.dev/guides/linear-setup',
32
- officialDocs: 'https://linear.app/docs',
33
- mcpPackage: '@mseep/linear-mcp',
34
44
  };
@@ -9,22 +9,36 @@ export const config: PluginConfig = {
9
9
  hint: 'Deployment, serverless functions, edge config',
10
10
  skillName: 'netlify-deployment',
11
11
  mcpServerKey: 'Netlify',
12
+ // Netlify's official server. The previous default, `netlify-mcp`, was
13
+ // unpublished from npm in January 2026 — a name anyone can claim — and ran as
14
+ // `@latest` with `-y`. It signs in through the browser; a personal access
15
+ // token is only a fallback, so none is required here.
12
16
  mcpConfig: {
13
17
  type: 'stdio',
14
18
  command: 'npx',
15
- args: ['-y', 'netlify-mcp@latest'],
19
+ args: ['-y', '@netlify/mcp@1.17.0'],
16
20
  },
17
- authType: 'env-token',
18
- envVars: [
19
- {
20
- name: 'NETLIFY_AUTH_TOKEN',
21
- hint: 'Generate at app.netlify.com → User Settings → Applications → Personal access tokens',
22
- },
23
- ],
21
+ authType: 'oauth',
22
+ envVars: [],
24
23
  agentToolMap: {
25
24
  'devops-expert': ['netlify/*'],
26
25
  },
27
26
  docsUrl: 'https://www.opencastle.dev/docs/plugins#netlify',
28
27
  officialDocs: 'https://docs.netlify.com',
29
- mcpPackage: 'netlify-mcp',
28
+ mcpPackage: '@netlify/mcp',
29
+ previousMcpConfigs: [
30
+ {
31
+ mcpConfig: {
32
+ type: 'stdio',
33
+ command: 'npx',
34
+ args: ['-y', 'netlify-mcp@latest'],
35
+ },
36
+ envVars: [
37
+ {
38
+ name: 'NETLIFY_AUTH_TOKEN',
39
+ hint: 'Generate at app.netlify.com → User Settings → Applications → Personal access tokens',
40
+ },
41
+ ],
42
+ },
43
+ ],
30
44
  };
@@ -12,7 +12,7 @@ export const config: PluginConfig = {
12
12
  mcpConfig: {
13
13
  type: 'stdio',
14
14
  command: 'npx',
15
- args: ['-y', 'next-devtools-mcp@latest'],
15
+ args: ['-y', 'next-devtools-mcp@0.4.0'],
16
16
  },
17
17
  authType: 'none',
18
18
  envVars: [],
@@ -33,4 +33,14 @@ export const config: PluginConfig = {
33
33
  docsUrl: 'https://www.opencastle.dev/docs/plugins#nextjs',
34
34
  officialDocs: 'https://nextjs.org/docs',
35
35
  mcpPackage: 'next-devtools-mcp',
36
+ previousMcpConfigs: [
37
+ {
38
+ mcpConfig: {
39
+ type: 'stdio',
40
+ command: 'npx',
41
+ args: ['-y', 'next-devtools-mcp@latest'],
42
+ },
43
+ envVars: [],
44
+ },
45
+ ],
36
46
  };
@@ -12,7 +12,7 @@ export const config: PluginConfig = {
12
12
  mcpConfig: {
13
13
  type: 'stdio',
14
14
  command: 'npx',
15
- args: ['nx', 'mcp'],
15
+ args: ['--no', 'nx', 'mcp'],
16
16
  },
17
17
  authType: 'none',
18
18
  envVars: [],
@@ -24,4 +24,14 @@ export const config: PluginConfig = {
24
24
  },
25
25
  docsUrl: 'https://www.opencastle.dev/docs/plugins#nx',
26
26
  officialDocs: 'https://nx.dev/getting-started/intro',
27
+ previousMcpConfigs: [
28
+ {
29
+ mcpConfig: {
30
+ type: 'stdio',
31
+ command: 'npx',
32
+ args: ['nx', 'mcp'],
33
+ },
34
+ envVars: [],
35
+ },
36
+ ],
27
37
  };
@@ -0,0 +1,80 @@
1
+ /**
2
+ * The MCP servers this tool writes into a project are code that agents run with
3
+ * the developer's credentials, on every teammate's machine and in CI. These
4
+ * tests hold every default to the rules `doctor` holds a user's config to, so
5
+ * the tool can never ship the thing it warns about.
6
+ *
7
+ * They exist because it did: most defaults ran `@latest`, and three pointed at
8
+ * packages that are not on npm at all — two never published, one unpublished in
9
+ * January 2026, whose name anyone could register and have every existing install
10
+ * run on its next start.
11
+ */
12
+ import { describe, it, expect } from 'vitest'
13
+ import { PLUGINS } from './index.js'
14
+ import { packageLaunch, isPinned, NONEXISTENT_PACKAGES } from '../../cli/mcp-audit.js'
15
+
16
+ const withMcp = Object.values(PLUGINS).filter((p) => p.mcpServerKey && p.mcpConfig)
17
+
18
+ describe('shipped MCP defaults', () => {
19
+ it('has servers to check', () => {
20
+ expect(withMcp.length).toBeGreaterThan(10)
21
+ })
22
+
23
+ it('pins every package a runner fetches, or runs the project’s own copy', () => {
24
+ const offenders: string[] = []
25
+ for (const plugin of withMcp) {
26
+ const cfg = plugin.mcpConfig!
27
+ if (cfg.type !== 'stdio') continue
28
+ const launch = packageLaunch(cfg.command ?? '', cfg.args ?? [])
29
+ if (launch && !isPinned(launch)) offenders.push(`${plugin.id}: ${launch.spec}`)
30
+ }
31
+ expect(offenders).toEqual([])
32
+ })
33
+
34
+ it('never says @latest', () => {
35
+ const offenders = withMcp
36
+ .filter((p) => (p.mcpConfig!.args ?? []).some((a) => a.endsWith('@latest')))
37
+ .map((p) => p.id)
38
+ expect(offenders).toEqual([])
39
+ })
40
+
41
+ it('launches no package known not to exist', () => {
42
+ const offenders: string[] = []
43
+ for (const plugin of withMcp) {
44
+ const cfg = plugin.mcpConfig!
45
+ const launch = cfg.type === 'stdio' ? packageLaunch(cfg.command ?? '', cfg.args ?? []) : null
46
+ if (launch && NONEXISTENT_PACKAGES[launch.name]) offenders.push(`${plugin.id}: ${launch.spec}`)
47
+ }
48
+ expect(offenders).toEqual([])
49
+ })
50
+
51
+ it('keeps mcpPackage in step with what is actually launched', () => {
52
+ const offenders: string[] = []
53
+ for (const plugin of withMcp) {
54
+ const cfg = plugin.mcpConfig!
55
+ const launch = cfg.type === 'stdio' ? packageLaunch(cfg.command ?? '', cfg.args ?? []) : null
56
+ if (launch && plugin.mcpPackage && plugin.mcpPackage !== launch.name) {
57
+ offenders.push(`${plugin.id}: mcpPackage ${plugin.mcpPackage}, launches ${launch.name}`)
58
+ }
59
+ if (!launch && plugin.mcpPackage) offenders.push(`${plugin.id}: mcpPackage set on a server that launches no package`)
60
+ }
61
+ expect(offenders).toEqual([])
62
+ })
63
+
64
+ it('reaches every remote server over https', () => {
65
+ const offenders = withMcp
66
+ .filter((p) => p.mcpConfig!.type === 'http' && !/^https:\/\//.test(p.mcpConfig!.url ?? ''))
67
+ .map((p) => p.id)
68
+ expect(offenders).toEqual([])
69
+ })
70
+
71
+ it('records a previous default only when it differs from the current one', () => {
72
+ const offenders: string[] = []
73
+ for (const plugin of withMcp) {
74
+ for (const prev of plugin.previousMcpConfigs ?? []) {
75
+ if (JSON.stringify(prev.mcpConfig) === JSON.stringify(plugin.mcpConfig)) offenders.push(plugin.id)
76
+ }
77
+ }
78
+ expect(offenders).toEqual([])
79
+ })
80
+ })
@@ -12,7 +12,7 @@ export const config: PluginConfig = {
12
12
  mcpConfig: {
13
13
  type: 'stdio',
14
14
  command: 'npx',
15
- args: ['-y', '@playwright/mcp@latest'],
15
+ args: ['-y', '@playwright/mcp@0.0.83'],
16
16
  },
17
17
  authType: 'none',
18
18
  envVars: [],
@@ -23,4 +23,14 @@ export const config: PluginConfig = {
23
23
  docsUrl: 'https://www.opencastle.dev/docs/plugins#playwright',
24
24
  officialDocs: 'https://playwright.dev/docs/intro',
25
25
  mcpPackage: '@playwright/mcp',
26
+ previousMcpConfigs: [
27
+ {
28
+ mcpConfig: {
29
+ type: 'stdio',
30
+ command: 'npx',
31
+ args: ['-y', '@playwright/mcp@latest'],
32
+ },
33
+ envVars: [],
34
+ },
35
+ ],
26
36
  };
@@ -9,10 +9,15 @@ export const config: PluginConfig = {
9
9
  hint: 'Type-safe ORM, migrations, schema management',
10
10
  skillName: 'prisma-database',
11
11
  mcpServerKey: 'Prisma',
12
+ // Prisma's own MCP server ships inside the Prisma CLI, so it runs from the
13
+ // project's own dependency — the version your lockfile pins, the one your
14
+ // migrations were written against. `--no` makes npx refuse to download a
15
+ // different one. The previous default, `@anthropic/prisma-mcp`, was never
16
+ // published on npm.
12
17
  mcpConfig: {
13
18
  type: 'stdio',
14
19
  command: 'npx',
15
- args: ['-y', '@anthropic/prisma-mcp@latest'],
20
+ args: ['--no', 'prisma', 'mcp'],
16
21
  },
17
22
  authType: 'none',
18
23
  envVars: [],
@@ -22,5 +27,15 @@ export const config: PluginConfig = {
22
27
  },
23
28
  docsUrl: 'https://www.opencastle.dev/docs/plugins#prisma',
24
29
  officialDocs: 'https://www.prisma.io/docs',
25
- mcpPackage: '@anthropic/prisma-mcp',
30
+ mcpPackage: 'prisma',
31
+ previousMcpConfigs: [
32
+ {
33
+ mcpConfig: {
34
+ type: 'stdio',
35
+ command: 'npx',
36
+ args: ['-y', '@anthropic/prisma-mcp@latest'],
37
+ },
38
+ envVars: [],
39
+ },
40
+ ],
26
41
  };
@@ -12,7 +12,7 @@ export const config: PluginConfig = {
12
12
  mcpConfig: {
13
13
  type: 'stdio',
14
14
  command: 'npx',
15
- args: ['-y', 'resend-mcp'],
15
+ args: ['-y', 'resend-mcp@2.24.0'],
16
16
  envFile: '${workspaceFolder}/.env',
17
17
  },
18
18
  authType: 'env-token',
@@ -44,4 +44,20 @@ export const config: PluginConfig = {
44
44
  docsUrl: 'https://www.opencastle.dev/docs/plugins#resend',
45
45
  officialDocs: 'https://resend.com/docs',
46
46
  mcpPackage: 'resend-mcp',
47
+ previousMcpConfigs: [
48
+ {
49
+ mcpConfig: {
50
+ type: 'stdio',
51
+ command: 'npx',
52
+ args: ['-y', 'resend-mcp'],
53
+ envFile: '${workspaceFolder}/.env',
54
+ },
55
+ envVars: [
56
+ {
57
+ name: 'RESEND_API_KEY',
58
+ hint: 'Generate at resend.com → API Keys',
59
+ },
60
+ ],
61
+ },
62
+ ],
47
63
  };
@@ -12,7 +12,7 @@ export const config: PluginConfig = {
12
12
  mcpConfig: {
13
13
  type: 'stdio',
14
14
  command: 'npx',
15
- args: ['@sentry/mcp-server@latest'],
15
+ args: ['@sentry/mcp-server@0.42.0'],
16
16
  },
17
17
  authType: 'env-token',
18
18
  envVars: [
@@ -26,4 +26,16 @@ export const config: PluginConfig = {
26
26
  docsUrl: null,
27
27
  officialDocs: 'https://docs.sentry.io/',
28
28
  mcpPackage: '@sentry/mcp-server',
29
+ previousMcpConfigs: [
30
+ {
31
+ mcpConfig: {
32
+ type: 'stdio',
33
+ command: 'npx',
34
+ args: ['@sentry/mcp-server@latest'],
35
+ },
36
+ envVars: [
37
+ { name: 'SENTRY_ACCESS_TOKEN', hint: 'Create at Settings \u2192 Auth Tokens in sentry.io' },
38
+ ],
39
+ },
40
+ ],
29
41
  };
@@ -12,7 +12,7 @@ export const config: PluginConfig = {
12
12
  mcpConfig: {
13
13
  type: 'stdio',
14
14
  command: 'npx',
15
- args: ['-y', '@kazuph/mcp-slack'],
15
+ args: ['-y', '@kazuph/mcp-slack@1.3.2'],
16
16
  envFile: '${workspaceFolder}/.env',
17
17
  env: {
18
18
  SLACK_MCP_ADD_MESSAGE_TOOL: 'true',
@@ -32,4 +32,23 @@ export const config: PluginConfig = {
32
32
  docsUrl: 'https://www.opencastle.dev/docs/plugins#slack',
33
33
  officialDocs: 'https://api.slack.com/docs',
34
34
  mcpPackage: '@kazuph/mcp-slack',
35
+ previousMcpConfigs: [
36
+ {
37
+ mcpConfig: {
38
+ type: 'stdio',
39
+ command: 'npx',
40
+ args: ['-y', '@kazuph/mcp-slack'],
41
+ envFile: '${workspaceFolder}/.env',
42
+ env: {
43
+ SLACK_MCP_ADD_MESSAGE_TOOL: 'true',
44
+ },
45
+ },
46
+ envVars: [
47
+ {
48
+ name: 'SLACK_MCP_XOXB_TOKEN',
49
+ hint: 'Create a Slack App at api.slack.com/apps → Bot User OAuth Token',
50
+ },
51
+ ],
52
+ },
53
+ ],
35
54
  };
@@ -12,7 +12,7 @@ export const config: PluginConfig = {
12
12
  mcpConfig: {
13
13
  type: 'stdio',
14
14
  command: 'npx',
15
- args: ['-y', 'strapi-mcp'],
15
+ args: ['-y', 'strapi-mcp@0.2.3'],
16
16
  },
17
17
  authType: 'none',
18
18
  envVars: [],
@@ -38,4 +38,14 @@ export const config: PluginConfig = {
38
38
  docsUrl: 'https://www.opencastle.dev/docs/plugins#strapi',
39
39
  officialDocs: 'https://docs.strapi.io/',
40
40
  mcpPackage: 'strapi-mcp',
41
+ previousMcpConfigs: [
42
+ {
43
+ mcpConfig: {
44
+ type: 'stdio',
45
+ command: 'npx',
46
+ args: ['-y', 'strapi-mcp'],
47
+ },
48
+ envVars: [],
49
+ },
50
+ ],
41
51
  };
@@ -12,7 +12,7 @@ export const config: PluginConfig = {
12
12
  mcpConfig: {
13
13
  type: 'stdio',
14
14
  command: 'npx',
15
- args: ['-y', '@delorenj/mcp-server-trello'],
15
+ args: ['-y', '@delorenj/mcp-server-trello@1.8.1'],
16
16
  envFile: '${workspaceFolder}/.env',
17
17
  },
18
18
  authType: 'env-token',
@@ -41,4 +41,24 @@ export const config: PluginConfig = {
41
41
  docsUrl: 'https://www.opencastle.dev/docs/plugins#trello',
42
42
  officialDocs: 'https://developer.atlassian.com/cloud/trello/',
43
43
  mcpPackage: '@delorenj/mcp-server-trello',
44
+ previousMcpConfigs: [
45
+ {
46
+ mcpConfig: {
47
+ type: 'stdio',
48
+ command: 'npx',
49
+ args: ['-y', '@delorenj/mcp-server-trello'],
50
+ envFile: '${workspaceFolder}/.env',
51
+ },
52
+ envVars: [
53
+ {
54
+ name: 'TRELLO_API_KEY',
55
+ hint: 'Create at trello.com/app-key -> API Key',
56
+ },
57
+ {
58
+ name: 'TRELLO_TOKEN',
59
+ hint: 'Generate at trello.com/app-key -> Token (click "Generate a Token")',
60
+ },
61
+ ],
62
+ },
63
+ ],
44
64
  };
@@ -54,12 +54,36 @@ export interface PluginConfig {
54
54
 
55
55
  /** VS Code input prompts required by this plugin's MCP config (e.g. tenant ID) */
56
56
  mcpInputs?: McpInput[];
57
+
58
+ /**
59
+ * What earlier releases generated for this server, newest first.
60
+ *
61
+ * `sync` leaves a server entry alone once it is in a config, because people
62
+ * tune them — an extra env var, a different flag. That also meant a default we
63
+ * had to change never reached anyone who already had it: a package that was
64
+ * unpublished from npm stayed in every existing config, and so did every
65
+ * `@latest`. An entry that is still byte for byte one of these was never
66
+ * customised, so it is ours to replace; anything else stays the user's.
67
+ */
68
+ previousMcpConfigs?: PreviousMcpConfig[];
69
+ }
70
+
71
+ export interface PreviousMcpConfig {
72
+ mcpConfig: McpServerConfig;
73
+ /**
74
+ * The env vars that release injected, written out even when they match the
75
+ * current ones: if a later release changes them, this entry must still
76
+ * describe what its own release wrote, or `sync` stops recognising it.
77
+ */
78
+ envVars: EnvVarRequirement[];
57
79
  }
58
80
 
59
81
  export interface McpInput {
60
82
  id: string;
61
83
  type: 'promptString';
62
84
  description: string;
85
+ /** VS Code stores a password input in its secret storage and masks it. */
86
+ password?: boolean;
63
87
  }
64
88
 
65
89
  export interface McpServerConfig {