Nix MCP 服务器配置工具
用于配置支持 AI 助手客户端的模型上下文协议(MCP)服务器的 Nix Flake。
快速入门
- 将此仓库添加到你的 Home Manager 配置:
{ inputs.nix-mcp-servers.url = "github:aloshy-ai/nix-mcp-servers"; outputs = { nixpkgs, home-manager, nix-mcp-servers, ... }: { homeConfigurations.yourname = home-manager.lib.homeManagerConfiguration { modules = [ nix-mcp-servers.homeManagerModules.default { nix-mcp-servers = { clients.generateConfigs = true; clients.cursor = { enable = true; filesystem.paths = [ "/path/to/projects" ]; }; }; } ]; }; }; }
- 执行
home-manager switch
应用配置。 - 检查生成的配置文件路径,例如:
cat ~/.config/Cursor/mcp-config.json