fabric mcp server
An MCP server that exposes Fabric patterns as tools for Cline, enabling AI-driven pattern execution directly within Cline tasks.
An MCP server that exposes Fabric patterns as tools for Cline, enabling AI-driven pattern execution directly within Cline tasks.
The fabric-mcp-server is a Model Context Protocol (MCP) server designed to expose Fabric patterns as tools for integration with Cline. This integration enhances Cline s capabilities by leveraging AI-driven pattern execution from the Fabric repository.
The Model Context Protocol (MCP) is a specification that facilitates communication between AI systems and external tools or resources. It standardizes the way AI models interact with various capabilities such as databases, APIs, and file systems. MCP servers, like fabric-mcp-server, implement this protocol to make tools and resources accessible to AI models, thereby expanding their functional scope.
The fabric-mcp-server exposes a wide range of Fabric patterns as tools. Some examples include:
- analyze_claims
- summarize
- extract_wisdom
- create_mermaid_visualization
- And many more...
To see the full list of available patterns, you can list the directories in the fabric/patterns directory.
fabric-mcp-server repository to your local system.fabric-mcp-server directory and run npm install.npm run build to compile the TypeScript code.To use the fabric-mcp-server with Cline:
1. Ensure the server is installed and running.
2. Configure the MCP server in your Cline settings file.
3. Create a new task in Cline and select a Fabric pattern to use.
fabric-mcp-server repository to your local system.fabric-mcp-server directory and run npm install.npm run build.C:Users<username>AppDataRoamingCodeUserglobalStoragesaoudrizwan.claude-devsettingscline_mcp_settings.json~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.jsonUse the following configuration:
"fabric-mcp-server": {
"command": "node",
"args": [
"<path-to-fabric-mcp-server>/build/index.js"
],
"env": {},
"disabled": false,
"autoApprove": [],
"transportType": "stdio",
"timeout": 60
}
Replace <path-to-fabric-mcp-server> with the actual path to the fabric-mcp-server directory on your system. For example:
- Windows: "C:pathtofabric-mcp-serverbuildindex.js"
- macOS/Linux: "/path/to/fabric-mcp-server/build/index.js"
5. Restart VSCode: Restart VSCode or reload the Cline extension to apply the changes.
To maximize the benefits of fabric-mcp-server with Cline, add use fabric-mcp-server at the end of your prompts or consider adding the following rule to your .clinerules file:
# 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.
This rule streamlines the tool selection process for new tasks in Cline.
fabric-mcp-server is correctly configured in your Cline settings.Contributions to fabric-mcp-server are welcome. Please refer to the CONTRIBUTING.md file for guidelines on how to contribute.
fabric-mcp-server is released under the MIT License.
[
{
"description": "Recommends the best Fabric pattern tool for a given task",
"inputSchema": {
"properties": {
"input": {
"description": "The user s task description",
"type": "string"
}
},
"required": [
"input"
],
"type": "object"
},
"name": "recommend_tool"
}
]