简体中文
本文将为你介绍如何安装并使用 MCP 服务。
别晕了我的朋友,我向你保证,你不需要写代码就能根据本篇文档搞定安装和使用。
deepseek-chat
deepseek-r1
node -v npx -v
{ "mcpServers": { "filesystem": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", // MCP 服务代码,无需更改 // 下面是允许 AI 访问的文件路径(根据你系统选择性替换): // macOS / Linux 示例路径 "/Users/username/Desktop", // 替换为你的桌面路径,AI 可以读取桌面上的文件 "/path/to/other/allowed/dir", // 添加更多你希望 AI 能访问的目录 // Windows 示例路径 "C:\\Users\\username\\Desktop", // 替换为你的桌面路径(Windows 格式,注意双斜杠) "D:\\Projects\\MyDocs" // 添加更多你希望 AI 能访问的目录 ] } } }
/Users/username/Desktop