Skip to content

Conversation

@freiit
Copy link
Contributor

@freiit freiit commented Mar 5, 2025

New function executeJSCode that lets run JavaScript against files/directories in the MCP server, not only with the analysis tool. Files are not automatically loaded into the context window to enable the handling of large files.

Key details

  • JS execution with lodash, mathjs, PapaParse, XLSX libraries
  • Robust error handling for sync/async code
  • Proper Node.js environment with fs, path access
  • No context pollution: large files won't bloat context, must be explicitly read

The function expands MCP capabilities for complex file analysis and data processing.

@olaservo olaservo added server-filesystem Reference implementation for the Filesystem MCP server - src/filesystem enhancement New feature or request labels Mar 27, 2025
@alfonsograziano
Copy link

Ho @freiit, I see that you're experimenting with Node and MCP as well :D

In case you think it might be helpful, I built this Node.js MCP server which leverages Docker containers and custom images: https://github.com/alfonsograziano/node-code-sandbox-mcp

@olaservo
Copy link
Member

olaservo commented Jul 18, 2025

Hi, thanks for the PR and apologies for not reviewing this sooner. Looking at these changes, I think we will hold on merging this into the filesystem server at this time, since we're focusing more on stability/security at the moment and making sure the core MCP features work reliably.

@olaservo olaservo closed this Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request server-filesystem Reference implementation for the Filesystem MCP server - src/filesystem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants