Model Context Protocol (MCP) 的 Go 语言实现,旨在使大型语言模型应用程序与外部数据源和工具之间无缝集成。 该项目的主要目的是学习 github.com/metoro-io/mcp-golang。在 github.com/mark3labs 存储库中已经存在一个 mcp-filesystem-server。本项目也是基于 github.com/mark3labs/mcp-filesystem-server 实现的。
安装服务器
go install github.com/qiangmzsx/mcp-filesystem-server
在你的 claude_desktop_config.json 中添加以下内容:
{
"mcpServers": {
"filesystem": {
"command": "mcp-filesystem-server",
"args": [
"/Users/username/Desktop",
"/path/to/other/allowed/dir"
]
}
}
}
此 MCP 服务器采用 MIT 许可证。这意味着你可以自由地使用、修改和分发该软件,但需遵守 MIT 许可证中的条款和条件。更多详情,请参见项目存储库中的 LICENSE 文件。