a11y-devkit-deploy 0.8.7 → 0.8.8
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.
- package/README.md +18 -1
- package/config/a11y.json +2 -1
- package/package.json +1 -1
- package/src/paths.js +16 -3
package/README.md
CHANGED
|
@@ -199,17 +199,31 @@ Add an object to the `hostApplications` array with the host application's config
|
|
|
199
199
|
"mcpServerKey": "servers",
|
|
200
200
|
"skillsFolder": ".codeium/windsurf/skills",
|
|
201
201
|
"mcpConfigFile": ".codeium/windsurf/mcp_config.json"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"id": "vscode",
|
|
205
|
+
"displayName": "VSCode",
|
|
206
|
+
"mcpServerKey": "servers",
|
|
207
|
+
"skillsFolder": ".github/skills",
|
|
208
|
+
"mcpConfigFile": ".github/mcp.json",
|
|
209
|
+
"globalMcpConfigFile": "Code/User/mcp.json"
|
|
202
210
|
}
|
|
203
211
|
]
|
|
204
212
|
}
|
|
205
213
|
```
|
|
206
214
|
|
|
215
|
+
**Note:** The `globalMcpConfigFile` property is optional. When specified, the global MCP config path is relative to the platform's app support directory (AppData on Windows, Application Support on macOS) instead of the home directory.
|
|
216
|
+
|
|
207
217
|
**Host Application Configuration Properties:**
|
|
208
218
|
- `id` - Unique identifier for the host application
|
|
209
219
|
- `displayName` - Human-readable name shown in prompts
|
|
210
220
|
- `mcpServerKey` - MCP config key name (`"servers"` or `"mcpServers"`)
|
|
211
221
|
- `skillsFolder` - Path to skills directory (relative to home/project root)
|
|
212
222
|
- `mcpConfigFile` - Path to MCP config file (relative to home/project root)
|
|
223
|
+
- `globalMcpConfigFile` - (Optional) Path to global MCP config relative to AppData/Application Support instead of home directory. Used for hosts like VSCode that store configs in platform-specific app directories:
|
|
224
|
+
- Windows: `%APPDATA%` (e.g., `C:\Users\name\AppData\Roaming`)
|
|
225
|
+
- macOS: `~/Library/Application Support`
|
|
226
|
+
- Linux: `$XDG_CONFIG_HOME` or `~/.config`
|
|
213
227
|
|
|
214
228
|
### Config Structure
|
|
215
229
|
|
|
@@ -265,7 +279,6 @@ your-project/
|
|
|
265
279
|
├── mcp.json # Codex global MCP config
|
|
266
280
|
└── skills/ # Codex global skills
|
|
267
281
|
~/.github/
|
|
268
|
-
├── mcp.json # VSCode global MCP config
|
|
269
282
|
└── skills/ # VSCode global skills
|
|
270
283
|
~/.codeium/windsurf/
|
|
271
284
|
├── mcp_config.json # Windsurf global MCP config
|
|
@@ -273,6 +286,10 @@ your-project/
|
|
|
273
286
|
~/.factory/
|
|
274
287
|
├── mcp.json # Factory global MCP config
|
|
275
288
|
└── skills/ # Factory global skills
|
|
289
|
+
|
|
290
|
+
# VSCode MCP config lives in AppData/Application Support:
|
|
291
|
+
# Windows: %APPDATA%/Code/User/mcp.json
|
|
292
|
+
# macOS: ~/Library/Application Support/Code/User/mcp.json
|
|
276
293
|
```
|
|
277
294
|
|
|
278
295
|
**Note:** Paths are fully customizable per IDE in `config/a11y.json`
|
package/config/a11y.json
CHANGED
package/package.json
CHANGED
package/src/paths.js
CHANGED
|
@@ -32,19 +32,32 @@ function getAppSupportDir(platformInfo = getPlatform()) {
|
|
|
32
32
|
|
|
33
33
|
function getHostApplicationPaths(projectRoot, platformInfo = getPlatform(), hostConfigs = []) {
|
|
34
34
|
const home = os.homedir();
|
|
35
|
+
const appSupport = getAppSupportDir(platformInfo);
|
|
35
36
|
const paths = {};
|
|
36
37
|
|
|
37
38
|
for (const host of hostConfigs) {
|
|
38
|
-
// Default paths for
|
|
39
|
+
// Default paths for local scope (relative to home or project)
|
|
39
40
|
const skillsFolder = host.skillsFolder || `.${host.id}/skills`;
|
|
40
41
|
const mcpConfigFile = host.mcpConfigFile || `.${host.id}/mcp.json`;
|
|
41
42
|
|
|
43
|
+
// MCP config: use AppData/Application Support if globalMcpConfigFile specified, otherwise home
|
|
44
|
+
// appSupport resolves to:
|
|
45
|
+
// - Windows: %APPDATA% (e.g., C:\Users\name\AppData\Roaming)
|
|
46
|
+
// - macOS: ~/Library/Application Support
|
|
47
|
+
// - Linux: $XDG_CONFIG_HOME or ~/.config
|
|
48
|
+
const globalMcpConfig = host.globalMcpConfigFile
|
|
49
|
+
? path.join(appSupport, host.globalMcpConfigFile)
|
|
50
|
+
: path.join(home, mcpConfigFile);
|
|
51
|
+
|
|
52
|
+
// Skills always use home directory (skills live at project level, not in AppData)
|
|
53
|
+
const globalSkillsDir = path.join(home, skillsFolder);
|
|
54
|
+
|
|
42
55
|
paths[host.id] = {
|
|
43
56
|
name: host.displayName,
|
|
44
|
-
mcpConfig:
|
|
57
|
+
mcpConfig: globalMcpConfig,
|
|
45
58
|
localMcpConfig: path.join(projectRoot, mcpConfigFile),
|
|
46
59
|
mcpServerKey: host.mcpServerKey,
|
|
47
|
-
skillsDir:
|
|
60
|
+
skillsDir: globalSkillsDir,
|
|
48
61
|
localSkillsDir: path.join(projectRoot, skillsFolder)
|
|
49
62
|
};
|
|
50
63
|
}
|