Skip to content

Conversation

@ayakut16
Copy link
Contributor

Description

Fixes #31

Old:

~ mcp tools npx -y @modelcontextprotocol/server-filesystem ~

read_file(path:str)
     Read the complete contents of a file from the file system. Handles various text encodings and provides detailed error messages if the file cannot be read.
     Use this tool when you need to examine the contents of a single file. Only works within allowed directories.
     .
     .
     .

New:

~ mcp tools --server-logs npx -y @modelcontextprotocol/server-filesystem ~

[>] Secure MCP Filesystem Server running on stdio
[>] Allowed directories: [ '/Users/alperen' ]
read_file(path:str)
     Read the complete contents of a file from the file system. Handles various text encodings and provides detailed error messages if the file cannot be read.
     Use this tool when you need to examine the contents of a single file. Only works within allowed directories.
     .
     .
     .

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Unit tests and run local mcp with changes.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@f f merged commit 5910f30 into f:master Apr 12, 2025
2 checks passed
@ayakut16 ayakut16 deleted the fix/show-logs branch April 12, 2025 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

can mcp tools (and other commands) capture err/std out logs?

2 participants