Skip to content

fix(mcp): run filesystem server in allowed dir for correct relative paths#24

Merged
assagman merged 1 commit intomainfrom
fix/fs-mcp
Dec 17, 2025
Merged

fix(mcp): run filesystem server in allowed dir for correct relative paths#24
assagman merged 1 commit intomainfrom
fix/fs-mcp

Conversation

@assagman
Copy link
Owner

  • Change NewMCPFilesystemClient to accept a single directory (used as both allowed + working dir)
  • Add NewMCPStdioTransportWithDir to set cmd.Dir for stdio transports
  • Update yaml_program example and REFERENCE docs accordingly

BREAKING CHANGE: NewMCPFilesystemClient no longer accepts multiple allowedDirs (variadic); it now takes a single directory string (empty defaults to cwd).

…aths

- Change NewMCPFilesystemClient to accept a single directory
(used as both allowed + working dir)
- Add NewMCPStdioTransportWithDir to set cmd.Dir for stdio transports
- Update yaml_program example and REFERENCE docs accordingly

BREAKING CHANGE: NewMCPFilesystemClient no longer accepts multiple
allowedDirs (variadic); it now takes a single directory string (empty
defaults to cwd).

Signed-off-by: assagman <ahmetsercansagman@gmail.com>
@assagman assagman self-assigned this Dec 17, 2025
@assagman assagman added bug Something isn't working enhancement New feature or request labels Dec 17, 2025
@assagman assagman merged commit 6553559 into main Dec 17, 2025
4 checks passed
@assagman assagman deleted the fix/fs-mcp branch December 17, 2025 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant