Skip to main content
Glama

Fabric MCP Server

by adapoet

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 许可证下发布。

Deploy Server
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

                          • A
                            security
                            F
                            license
                            A
                            quality
                            An 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
                          • -
                            security
                            F
                            license
                            -
                            quality
                            An 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 -
                            • Apple
                          • A
                            security
                            A
                            license
                            A
                            quality
                            An 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 -
                            15
                            260
                            MIT License
                            • Apple
                            • Linux
                          • -
                            security
                            F
                            license
                            -
                            quality
                            A Python-based MCP server that enables interaction with Microsoft Fabric APIs for managing workspaces, lakehouses, warehouses, and tables through natural language.
                            Last updated -
                            12
                            • Linux
                            • Apple

                          View all related MCP servers

                          MCP directory API

                          We provide all the information about MCP servers via our MCP API.

                          curl -X GET 'https://glama.ai/api/mcp/v1/servers/adapoet/fabric-mcp-server'

                          If you have feedback or need assistance with the MCP directory API, please join our Discord server