0.7.3 • Published 3 months ago

@simon-archer/designbot-mcp v0.7.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

DesignBot MCP

npm version

A lightweight MCP (Model Context Protocol) server that forwards messages to the designbot.deno.dev/chat endpoint. This allows you to access the Designsystemet assistant through any MCP-compatible client like Windsurf, Cursor or Claude Code.

To pin to a specific MCP version, install with a version suffix (e.g., @simon-archer/designbot-mcp@latest; ).

Usage

With Windsurf or Cursor

Add this to your mcp_config.json file:

{
  "mcpServers": {
    "Designbot": {
      "command": "npx",
      "args": [
        "@simon-archer/designbot-mcp@latest"
      ]
    }
  }
}

Then use it with Windsurf or Cursor (sometimes invocations requires custom prompting):

Ask the designbot how to use the Button from the design system

With VSCode

To use the DesignBot MCP server with VSCode, you'll typically need an extension that supports the Model Context Protocol (MCP). Configure the MCP server in your VSCode settings (.vscode/settings.json or user settings).

Here's an example configuration, though the specific setting key (e.g., mcp.servers) might vary depending on the extension you use:

{
    "chat.mcp.discovery.enabled": true,
    "mcp": {
        
        "inputs": [],
        "servers": {
            "Designbot": {
            "command": "npx",
            "args": [
                "@simon-archer/designbot-mcp@latest"
            ]
            }
        }
    }
}   

Once configured, you should be able to interact with the Designbot through your MCP-compatible VSCode extension, similar to the Windsurf/Cursor example:

Ask the designbot how to use the Accordion component

Available Tool

The MCP server provides a single tool:

  • Ask-designbot: Forwards messages to the configured /chat endpoint (defaults to https://designbot.deno.dev/chat or your local Fresh server). Supports sub-queries:
    • getComponentDoc: Component docs and usage examples
    • getComponentCode: React/HTML code snippets
    • getCssCode: CSS-only implementations
    • getStarted: Onboarding and setup guides
    • getChangelog: Version history
    • getBasics: Core design concepts
    • getGoodPractice: Implementation best practices
    • getUxPatterns: Common UX patterns
    • getDesignModification: Design tokens (colors, typography, spacing)

You can pin to a specific MCP version by specifying @simon-archer/designbot-mcp@<version> in your mcp_config.json (defaults to latest).

HTTP Endpoint

This server also exposes a simple HTTP API at /chat. Send a POST request with JSON:

{
  "message": "Your message",
  "disabledTools": ["toolName"] // optional array of tool names to disable
}

Example cURL request:

curl -N \
  -H "Content-Type: application/json" \
  -d '{"message":"Test SSE","disabledTools":[]}' \
  http://localhost:8000/chat

SSE Response Example

data: {"role":"assistant","content":"Could you clarify?","isPartial":true}
data: {"role":"assistant","content":"Could you clarify what you're asking?","isPartial":false}

API

You can also use this package programmatically in your Node.js applications:

import { startMcpServer } from '@simon-archer/designbot-mcp';

// Start an MCP server
await startMcpServer({
  name: "DesignBot", // Optional
  version: "1.0.0"   // Optional
});

How It Works

This MCP server:

  1. Receives messages through the MCP protocol
  2. Forwards them to the designbot.deno.dev/chat endpoint
  3. Processes the server-sent events (SSE) response
  4. Returns the formatted response back to the MCP client

License

MIT

0.7.3

3 months ago

0.7.2

3 months ago

0.7.1

4 months ago

0.6.1

4 months ago

0.5.0-debug

4 months ago

0.4.0

4 months ago

0.3.6

4 months ago

0.3.5

4 months ago

0.3.4

4 months ago

0.3.3

4 months ago

0.3.2

4 months ago

0.3.1

4 months ago

1.1.0

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago

0.9.0

4 months ago

0.8.0

4 months ago

0.4.1

4 months ago

0.7.0

4 months ago

0.6.0

4 months ago