Filesystem (Rust)

by texasfortress-ai

21 stars
Not rated
GitHub

About

Provides secure filesystem operations within allowed directories for controlled file management and data processing tasks.

Details

Author
texasfortress-ai
Repository
TexasFortress-AI/rs_filesystem
GitHub stars
21
License
Other
Categories
Productivity, Developer Tools, Design, Workplace, File Management, AI, Project Management, Infrastructure, Automation, Security

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Filesystem (Rust)
    Command (node, npx, python, etc.) /path/to/rs_filesystem
    Arguments
    • Argument 1 --mcp
    Environment
    • MCP_RS_FILESYSTEM_ALLOWED_DIRECTORIES /path/number/one:/path/number/two

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "filesystem (rust)": {
            "env": {
                "MCP_RS_FILESYSTEM_ALLOWED_DIRECTORIES": "/path/number/one:/path/number/two"
            },
            "args": [
                "--mcp"
            ],
            "command": "/path/to/rs_filesystem"
        }
    }
}

Linux

{
    "env": {
        "MCP_RS_FILESYSTEM_ALLOWED_DIRECTORIES": "/path/number/one:/path/number/two"
    },
    "args": [
        "--mcp"
    ],
    "command": "/path/to/rs_filesystem"
}

Macos

{
    "env": {
        "MCP_RS_FILESYSTEM_ALLOWED_DIRECTORIES": "/path/number/one:/path/number/two"
    },
    "args": [
        "--mcp"
    ],
    "command": "/path/to/rs_filesystem"
}

Windows

{
    "env": {
        "MCP_RS_FILESYSTEM_ALLOWED_DIRECTORIES": "/path/number/one:/path/number/two"
    },
    "args": [
        "--mcp"
    ],
    "command": "/path/to/rs_filesystem"
}

rs_filesystem: MCP Rust Filesystem tools
=============================

rs_filesystem is a simple set of filesystem tools that can be used in Claude desktop or any other MCP client.

CLI options

--mcp: Enable MCP server
--resources: display resources
--prompts: display prompts
--tools: display tools

How to use MCP CLI server in Claude Desktop?

1. Edit claude_desktop_config.json: Claude Desktop -> Settings -> Developer -> Edit Config
2. Add the following configuration to the servers section:

{
   "mcpServers": {
      "rs_filesystem": {
         "command": "/path/to/rs_filesystem",
         "args": [
            "--mcp"
         ],
         "env": {
            "MCP_RS_FILESYSTEM_ALLOWED_DIRECTORIES": "/path/number/one:/path/number/two"
         }
      }
   }
}

Make sure you use the actual path to the rs_filesystem binary.
Make sure the MCP_RS_FILESYSTEM_ALLOWED_DIRECTORIES env variable is set to a colon-separated list of allowed directories.
The tools will only work inside those directories.

If you want to check MCP log, please use tail -n 20 -f ~/Library/Logs/Claude/rs_filesystem.logs.jsonl.

References

MCP Specification: https://spec.modelcontextprotocol.io/
Model Context Protocol (MCP): https://modelcontextprotocol.io/introduction
rpc-router: json-rpc routing library - https://github.com/jeremychone/rust-rpc-router/
Zed context_server: https://github.com/zed-industries/zed/tree/main/crates/context_server

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.