Skip to content

Commit 3c42f9f

Browse files
cliffhallclaude
andcommitted
chore(release): declare filesystem's allowed directories in its registry entry
A client that builds its launch command from the entry had no directory input to collect, so the server would start with an empty allow-list. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: cliffhall <cliff@futurescale.com>
1 parent 7da087d commit 3c42f9f

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

‎scripts/mcp-registry-entries.test.mjs‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,20 @@ test("repository: every published server has a sound entry at its manifest's ver
282282
}
283283
});
284284

285+
test("repository: filesystem's entry asks for its allowed directories", () => {
286+
// Without them a 2026-07-28 client starts the server with an empty
287+
// allow-list, so an entry a client builds its launch command from must say
288+
// they are needed, and that there can be several.
289+
const [pkg] = registryEntries().entries.filesystem.packages;
290+
assert.equal(pkg.version, expectedPackages().npm.filesystem.version);
291+
assert.equal(pkg.packageArguments.length, 1);
292+
const [argument] = pkg.packageArguments;
293+
assert.equal(argument.type, "positional");
294+
assert.equal(argument.format, "filepath");
295+
assert.equal(argument.isRequired, true);
296+
assert.equal(argument.isRepeated, true);
297+
});
298+
285299
test("repository: no two servers share a registry name", () => {
286300
const names = Object.values(registryEntries().entries).map((e) => e.name);
287301
assert.equal(new Set(names).size, names.length);

‎src/filesystem/server.json‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,17 @@
1414
"identifier": "@modelcontextprotocol/server-filesystem",
1515
"transport": {
1616
"type": "stdio"
17-
}
17+
},
18+
"packageArguments": [
19+
{
20+
"type": "positional",
21+
"valueHint": "allowed_directory",
22+
"description": "A directory the server may read and write. Repeat for each directory to allow.",
23+
"format": "filepath",
24+
"isRequired": true,
25+
"isRepeated": true
26+
}
27+
]
1828
}
1929
]
2030
}

0 commit comments

Comments
 (0)