Fabric MCP Server

by adapoet

Integrations

  • Provides the ability to create Mermaid visualizations through the create_mermaid_visualization pattern, enabling diagram generation within the tools framework.

fabric-mcp-服务器

目录

  1. 介绍
  2. 什么是模型上下文协议(MCP)?
  3. 特征
  4. 工具
  5. 安装
  6. 用法
  7. 与 VS Code 一起使用的配置
  8. 与 Cline 一起使用的技巧
  9. 故障排除
  10. 贡献
  11. 执照

介绍

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目录中的目录。

安装

  1. 克隆存储库:将fabric-mcp-server存储库克隆到本地系统。
  2. 安装依赖项:导航到fabric-mcp-server目录并运行npm install
  3. 构建项目:运行npm run build来编译 TypeScript 代码。

用法

要将fabric-mcp-server与 Cline 一起使用:

  1. 确保服务器已安装并正在运行。
  2. 在您的 Cline 设置文件中配置 MCP 服务器。
  3. 在 Cline 中创建一个新任务并选择要使用的织物图案。

与 VS Code 一起使用的配置

  1. 克隆存储库:将fabric-mcp-server存储库克隆到本地系统。
  2. 安装依赖项:导航到fabric-mcp-server目录并运行npm install
  3. 构建项目:运行npm run build
  4. 配置 Cline 设置:将 MCP 服务器配置添加到您的 Cline 设置文件中。文件路径因操作系统而异:
    • WindowsC:\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

    使用以下配置:

"fabric-mcp-server": { "command": "node", "args": [ "<path-to-fabric-mcp-server>/build/index.js" ], "env": {}, "disabled": false, "autoApprove": [], "transportType": "stdio", "timeout": 60 }

<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"
  1. 重新启动 VSCode :重新启动 VSCode 或重新加载 Cline 扩展以应用更改。

与 Cline 一起使用的技巧

为了最大限度地发挥fabric-mcp-server与 Cline 的优势,请在提示末尾添加use fabric-mcp-server或考虑将以下规则添加到.clinerules文件:

# Fabric MCP Server Rule 1. **List Fabric Patterns**: When a new task is created, list all pattern names from the Fabric repository. 2. **Prompt for Pattern Selection**: Ask the user to select one of the following options: a) Enter a pattern name from the list to use the `fabric-mcp-server` tool with the specified pattern. b) Choose not to use `fabric-mcp-server` for the task.

该规则简化了 Cline 中新任务的工具选择过程。

故障排除

  • 确保fabric-mcp-server在您的 Cline 设置中正确配置。
  • 验证服务器是否正在运行并且可以访问。
  • 检查控制台输出是否有任何错误消息。

贡献

欢迎为fabric-mcp-server做出贡献。请参阅CONTRIBUTING.md文件,了解如何贡献。

执照

fabric-mcp-serverMIT 许可证下发布。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

MCP 服务器将 Fabric 模式公开为 Cline 的工具,从而支持在 Cline 任务中直接执行 AI 驱动的模式。

  1. 目录
    1. 介绍
      1. 什么是模型上下文协议(MCP)?
        1. 特征
          1. 工具
            1. 安装
              1. 用法
                1. 与 VS Code 一起使用的配置
                  1. 与 Cline 一起使用的技巧
                    1. 故障排除
                      1. 贡献
                        1. 执照

                          Related MCP Servers

                          • -
                            security
                            F
                            license
                            -
                            quality
                            A TypeScript implementation of a Model Context Protocol (MCP) server that exposes Dify workflows as tools for AI systems to interact with.
                            Last updated -
                            9
                            TypeScript
                          • A
                            security
                            A
                            license
                            A
                            quality
                            A tool that helps manage and synchronize MCP server configurations across different AI assistant clients (Cline, Roo Code, WindSurf, Claude), automating the process of retrieving, listing, adding, and removing server configurations from client configuration files.
                            Last updated -
                            6
                            6
                            1
                            JavaScript
                            MIT License
                            • Apple
                          • -
                            security
                            A
                            license
                            -
                            quality
                            An MCP server implementation that standardizes how AI applications access tools and context, providing a central hub that manages tool discovery, execution, and context management with a simplified configuration system.
                            Last updated -
                            9
                            Python
                            MIT License
                          • -
                            security
                            A
                            license
                            -
                            quality
                            A Model Context Protocol (MCP) server that wraps the dbt CLI tool, enabling AI coding agents to interact with dbt projects through standardized MCP tools. Developed by Mammoth Growth.
                            Last updated -
                            8
                            Python
                            MIT License
                            • Linux
                            • Apple

                          View all related MCP servers

                          ID: mle6oralcx