a11y-devkit-deploy 0.9.4 → 0.9.6

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.
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "skillsFolder": "a11y",
3
3
  "readmeTemplate": "deploy-README.md",
4
+ "supportLocalMcpInstallation": false,
4
5
  "skills": [
5
6
  {
6
7
  "name": "A11y Base Web Skill",
@@ -95,7 +96,7 @@
95
96
  "name": "wcag",
96
97
  "description": "WCAG guidelines reference",
97
98
  "command": "npx",
98
- "args": ["-y", "wcag-mcp"]
99
+ "args": ["-y", "wcag-guidelines-mcp"]
99
100
  },
100
101
  {
101
102
  "name": "aria",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "a11y-devkit-deploy",
3
- "version": "0.9.4",
3
+ "version": "0.9.6",
4
4
  "description": "CLI to deploy a11y skills and MCP servers across IDEs",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/cli.js CHANGED
@@ -227,7 +227,7 @@ async function run() {
227
227
  initial: 0,
228
228
  },
229
229
  {
230
- type: "select",
230
+ type: config.supportLocalMcpInstallation ? "select" : null,
231
231
  name: "mcpScope",
232
232
  message: "Install MCP configs locally or globally?",
233
233
  choices: [
@@ -262,7 +262,7 @@ async function run() {
262
262
  );
263
263
 
264
264
  scope = scope || response.scope;
265
- mcpScope = response.mcpScope || "local";
265
+ mcpScope = response.mcpScope || (config.supportLocalMcpInstallation ? "local" : "global");
266
266
  hostSelection = response.hosts || hostSelection;
267
267
  }
268
268
 
@@ -270,7 +270,7 @@ async function run() {
270
270
  scope = "local";
271
271
  }
272
272
  if (!mcpScope) {
273
- mcpScope = "local";
273
+ mcpScope = config.supportLocalMcpInstallation ? "local" : "global";
274
274
  }
275
275
 
276
276
  if (!hostSelection.length) {
@@ -418,7 +418,7 @@ async function runUninstall(projectRoot, platformInfo, config, hostPaths, args)
418
418
  });
419
419
  }
420
420
 
421
- if (removeMcp) {
421
+ if (removeMcp && config.supportLocalMcpInstallation) {
422
422
  questions.push({
423
423
  type: "select",
424
424
  name: "mcpScope",
@@ -465,7 +465,7 @@ async function runUninstall(projectRoot, platformInfo, config, hostPaths, args)
465
465
  }
466
466
 
467
467
  if (removeMcp && !mcpScope) {
468
- mcpScope = "local";
468
+ mcpScope = config.supportLocalMcpInstallation ? "local" : "global";
469
469
  }
470
470
 
471
471
  if (!hostSelection.length) {
@@ -591,32 +591,37 @@ async function runGitMcpInstallation(projectRoot, platformInfo, config, hostPath
591
591
  );
592
592
 
593
593
  // Prompt for MCP Config Scope (where to write MCP configurations)
594
- const mcpScopeResponse = await prompts(
595
- {
596
- type: "select",
597
- name: "mcpScope",
598
- message: "Where to write MCP configurations?",
599
- choices: [
600
- {
601
- title: `Local to this project (${formatPath(projectRoot)})`,
602
- value: "local",
603
- description: "Write to project-level IDE config folders",
604
- },
605
- {
606
- title: "Global for this user",
607
- value: "global",
608
- description: "Write to user-level IDE config folders",
594
+ // Skip if local MCP installation is not supported
595
+ let mcpScopeResponse = { mcpScope: config.supportLocalMcpInstallation ? null : "global" };
596
+
597
+ if (config.supportLocalMcpInstallation) {
598
+ mcpScopeResponse = await prompts(
599
+ {
600
+ type: "select",
601
+ name: "mcpScope",
602
+ message: "Where to write MCP configurations?",
603
+ choices: [
604
+ {
605
+ title: `Local to this project (${formatPath(projectRoot)})`,
606
+ value: "local",
607
+ description: "Write to project-level IDE config folders",
608
+ },
609
+ {
610
+ title: "Global for this user",
611
+ value: "global",
612
+ description: "Write to user-level IDE config folders",
613
+ },
614
+ ],
615
+ initial: 0,
616
+ },
617
+ {
618
+ onCancel: () => {
619
+ warn("Git MCP installation cancelled.");
620
+ process.exit(0);
609
621
  },
610
- ],
611
- initial: 0,
612
- },
613
- {
614
- onCancel: () => {
615
- warn("Git MCP installation cancelled.");
616
- process.exit(0);
617
622
  },
618
- },
619
- );
623
+ );
624
+ }
620
625
 
621
626
  // Prompt for host application selection
622
627
  const hostChoices = config.hostApplications.map((host) => ({
@@ -153,7 +153,8 @@ function mergeServers(existing, incoming, serverKey = "servers") {
153
153
  for (const server of incoming) {
154
154
  const serverConfig = {
155
155
  command: server.command,
156
- args: server.args || []
156
+ args: server.args || [],
157
+ startup_timeout_sec: 30
157
158
  };
158
159
 
159
160
  // Include type if provided