-
Notifications
You must be signed in to change notification settings - Fork 9.9k
Open
Description
Problem
Directory tree responses can vary by host filesystem enumeration order, causing unstable output for the same directory across runs.
Why now
The filesystem server is a reference implementation; deterministic output is required for reproducible comparisons and contract tests.
Expected behavior
For the same directory contents and exclude patterns, directory_tree should return a stable ordering across repeated runs and platforms.
Claim-to-codepath map
src/filesystem/index.tssrc/filesystem/lib.tssrc/filesystem/__tests__/directory-tree.test.tssrc/filesystem/__tests__/structured-content.test.ts
Validation requirements
- Enforce deterministic sorting in recursive tree traversal.
- Add test assertions for stable sibling ordering and nested ordering.
- Run filesystem package tests.
Evidence packet
- Commit under test:
$(git -C /Users/davidahmann/Projects/agent-ecosystem/mcp-servers rev-parse HEAD) - Runtime: Node.js + vitest on macOS
- Minimal repro: call
directory_treemultiple times over same fixture and compare ordering of siblings.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels