fabric-mcp-服务器
目录
介绍
fabric-mcp-server
是一个模型上下文协议 (MCP) 服务器,旨在将 Fabric 模式公开为与 Cline 集成的工具。此集成利用 Fabric 存储库中 AI 驱动的模式执行,增强了 Cline 的功能。
什么是模型上下文协议(MCP)?
模型上下文协议 (MCP) 是一种规范,旨在促进 AI 系统与外部工具或资源之间的通信。它标准化了 AI 模型与数据库、API 和文件系统等各种功能交互的方式。MCP 服务器(例如fabric-mcp-server
)实现了此协议,使 AI 模型能够访问工具和资源,从而扩展其功能范围。
特征
- 将织物图案作为工具公开:服务器将所有织物图案作为 Cline 内的单独工具提供。
- 模式执行:用户可以直接在 Cline 任务中选择和执行织物模式。
- 增强功能:集成 AI 驱动的模式执行以增强 Cline 的功能。
工具
fabric-mcp-server
提供了多种 Fabric 模式的工具。例如:
analyze_claims
summarize
extract_wisdom
create_mermaid_visualization
- 还有更多...
要查看可用模式的完整列表,您可以列出fabric/patterns
目录中的目录。
安装
- 克隆存储库:将
fabric-mcp-server
存储库克隆到本地系统。 - 安装依赖项:导航到
fabric-mcp-server
目录并运行npm install
。 - 构建项目:运行
npm run build
来编译 TypeScript 代码。
用法
要将fabric-mcp-server
与 Cline 一起使用:
- 确保服务器已安装并正在运行。
- 在您的 Cline 设置文件中配置 MCP 服务器。
- 在 Cline 中创建一个新任务并选择要使用的织物图案。
与 VS Code 一起使用的配置
- 克隆存储库:将
fabric-mcp-server
存储库克隆到本地系统。 - 安装依赖项:导航到
fabric-mcp-server
目录并运行npm install
。 - 构建项目:运行
npm run build
。 - 配置 Cline 设置:将 MCP 服务器配置添加到您的 Cline 设置文件中。文件路径因操作系统而异:
- Windows :
C:\Users\<username>\AppData\Roaming\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
- macOS :
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
- Linux :
~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
使用以下配置:
- Windows :
将<path-to-fabric-mcp-server>
替换为你系统上fabric-mcp-server
目录的实际路径。例如:
- Windows :
"C:\\path\\to\\fabric-mcp-server\\build\\index.js"
- macOS/Linux :
"/path/to/fabric-mcp-server/build/index.js"
- 重新启动 VSCode :重新启动 VSCode 或重新加载 Cline 扩展以应用更改。
与 Cline 一起使用的技巧
为了最大限度地发挥fabric-mcp-server
与 Cline 的优势,请在提示末尾添加use fabric-mcp-server
或考虑将以下规则添加到.clinerules
文件:
该规则简化了 Cline 中新任务的工具选择过程。
故障排除
- 确保
fabric-mcp-server
在您的 Cline 设置中正确配置。 - 验证服务器是否正在运行并且可以访问。
- 检查控制台输出是否有任何错误消息。
贡献
欢迎为fabric-mcp-server
做出贡献。请参阅CONTRIBUTING.md文件,了解如何贡献。
执照
fabric-mcp-server
在MIT 许可证下发布。
Tools
MCP 服务器将 Fabric 模式公开为 Cline 的工具,从而支持在 Cline 任务中直接执行 AI 驱动的模式。
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityAn advanced MCP server for Cline that leverages EverArt's AI models to generate vector and raster images, supporting flexible storage, multiple formats, and robust image generation capabilities.Last updated -10
- -securityFlicense-qualityAn MCP server that connects to your Notion knowledge base, allowing you to query and retrieve information directly from VSCode using the Cline extension.Last updated -
- AsecurityAlicenseAqualityAn MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.Last updated -15260MIT License
- -securityFlicense-qualityA Python-based MCP server that enables interaction with Microsoft Fabric APIs for managing workspaces, lakehouses, warehouses, and tables through natural language.Last updated -12