Filesystem

io.github.domdomegg由 GitHub 账号 domdomegg 发布v1.3.0更新于 Oct 24, 2026

Read, create, and edit files.

已验证STDIO仅桌面文件与存储开发者工具

概览

AI 生成的概览

一个本地 MCP 服务器,让助手读取、创建和编辑你机器上的文件,包括列出目录和做精确的文本替换。

可以做什么
用 view 工具读取文件内容或列出目录(带行号),让助手先了解内容和结构。用 create 工具创建或覆盖文件。用 str_replace 替换文件中的精确字符串,或用 insert 在指定行插入文本,从而编辑已有文件。可组合这些步骤完成更新配置值、重命名函数、生成报告或保存带时间戳的备份等任务。
适用场景
适合希望助手直接处理本地文件的场景:查看代码、做针对性修改、生成并保存报告,或在改动前复制文件。适用于桌面环境,让助手读写你的项目或笔记文件夹。
运行要求
以本地进程通过 stdio 运行,从 npm 包 filesystem-mcp 安装并用 npx 启动,因此需要 Node.js 以及获取该软件包的网络访问。必须设置环境变量 MCP_TRANSPORT。按 install-mcp 的说明为你的 MCP 客户端生成配置。未声明身份验证。
安装前请注意
该服务器可以创建、覆盖和修改你机器上的文件,覆盖操作若没有备份则无法恢复。只让它访问你愿意让助手改动的文件夹,并在依赖修改结果前先检查。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Filesystem,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

filesystem-mcp

MCP server for filesystem operations - read, create, and edit files.

Use Cases

Save email attachments: "Download all PDFs from my accountant's emails this month" → searches Gmail for matching emails, extracts attachments, and saves them to a local folder.

Update config files: "Change the API endpoint from staging to production in my config" → finds the config file, replaces the URL, and shows you the diff.

Generate reports: "Create a summary of today's calendar events" → reads your calendar, formats a markdown report, and saves it to your notes folder.

Code refactoring: "Rename the function getData to fetchUserData in src/api.ts" → reads the file, makes the precise replacement, and confirms the change.

Backup before changes: "Save a copy of my .zshrc before I modify it" → reads the current file and writes a timestamped backup.

Setup

Follow the instructions on install-mcp, which generates the right config for your MCP client (Claude Code, Claude Desktop, Cursor, Cline, VS Code, and more).

Tools

ToolDescription
viewRead file contents or list directory (with line numbers)
createCreate or overwrite a file
str_replaceReplace an exact string in a file
insertInsert text at a specific line

Contributing

Pull requests are welcomed on GitHub! To get started:

  1. Install Git and Node.js
  2. Clone the repository
  3. Install dependencies with npm install
  4. Run npm run test to run tests
  5. Build with npm run build

Releases

Versions follow the semantic versioning spec.

To release:

  1. Use npm version <major | minor | patch> to bump the version
  2. Run git push --follow-tags to push with tags
  3. Wait for GitHub Actions to publish to the NPM registry.

来源:README.md,提交 3fa9a0e

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.3.0最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。