Commit 9650fb4
refactor(mcpb): use directory type for filesystem config to clarify restricted access
Changed user_config fields to use 'directory' type to:
1. Provide directory picker UI instead of text fields
2. Signal to Claude Desktop that filesystem access is limited
3. Make restrictions explicit in field descriptions
Changes to manifest.json:
- working_dir: Changed type from 'string' to 'directory'
* Required field (users must select a working directory)
* Description now explicitly states access is restricted
* Default changed to ${DOWNLOADS} variable
- allowed_dirs: Changed type from 'string' to 'directory'
* Added 'multiple: true' to allow selecting multiple directories
* Description clarifies extension access is restricted to these dirs
* No default (users explicitly choose additional access)
Changes to config.ts:
- Updated allowedDirs parsing to handle both:
* JSON array format (from directory type with multiple: true)
* Delimited string format (legacy MCP mode)
- Maintains backward compatibility with colon/semicolon separated paths
This improves transparency about the restricted filesystem access scope,
though the "grant access to everything" warning may still appear as it's
controlled by Claude Desktop, not the manifest.
Regenerated qsv-mcp-server.mcpb.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 3177cfe commit 9650fb4
File tree
3 files changed
+28
-9
lines changed- .claude/skills
- src
3 files changed
+28
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
169 | 172 | | |
170 | 173 | | |
171 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
172 | 191 | | |
173 | 192 | | |
174 | 193 | | |
| |||
0 commit comments