wave-mcp

v0.2.0
@volue/wave-mcp Checked 3 days ago Published 2 months ago

An MCP server that connects AI tools to the Wave Design System

The following tools are available in the Wave MCP server and can be executed by LLMs using agent mode: Add configuration code that tells your MCP-compatible client how to connect to the Wave MCP server. Use the button above or manually add to your .vscode/mcp.json:

Summary extracted from the README.

@volue/wave-mcp

A Model Context Protocol (MCP) server that enables AI assistants to access Wave Design System documentation and resources.

Available Tools

The following tools are available in the Wave MCP server and can be executed by LLMs using agent mode:

Tool Name Description
init Initialize the Wave Design System in your project
list_components List all available components grouped by category
get_component Get comprehensive documentation for a specific component
list_patterns List all UX patterns grouped by category
get_pattern Retrieve detailed guidance for a specific pattern
get_color_usage Get color token usage and guidelines
get_tokens Get design tokens and usage examples
get_styling_guidelines Retrieve guidelines for styling components and creating custom styled components
list_icons List all available icons in the Wave icon library
get_icon Get SVG code and usage information for a specific icon

Setup

Add configuration code that tells your MCP-compatible client how to connect to the Wave MCP server.

VS Code (Copilot)

Install in VS Code

Use the button above or manually add to your .vscode/mcp.json:

{
  "servers": {
    "Wave Design System": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@volue/wave-mcp@latest"]
    }
  },
  "inputs": []
}

Claude Code

[!TIP] For Claude Code users, consider the Wave plugin as an alternative to MCP.

Use the CLI:

# 1. Navigate to your project
cd your-awesome-project

# 2. Add Wave MCP server
claude mcp add wave --scope project -- npx -y @volue/wave-mcp@latest

Or manually add to your Claude Code MCP servers configuration:

{
  "mcpServers": {
    "wave": {
      "command": "npx",
      "args": ["-y", "@volue/wave-mcp@latest"]
    }
  }
}

Windows Users: On native Windows (not WSL), you must use the cmd /c wrapper for npx commands to work correctly:

CLI:

claude mcp add wave --scope project -- cmd /c npx -y @volue/wave-mcp@latest

Manual configuration:

{
  "mcpServers": {
    "wave": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@volue/wave-mcp@latest"]
    }
  }
}

Cursor

Install in Cursor

Use the button above or manually add to your Cursor MCP configuration:

{
  "mcpServers": {
    "wave": {
      "command": "npx",
      "args": ["-y", "@volue/wave-mcp@latest"]
    }
  }
}

Supported Transports

Wave MCP supports two transport methods:

stdio (default)

The standard input/output transport, used by most AI coding assistants:

npx @volue/wave-mcp@latest

HTTP

For server deployments or custom integrations:

npx @volue/wave-mcp@latest http

The HTTP server runs on port 3000 by default and exposes the MCP endpoint at /mcp.

You can customize the port using environment variable:

PORT=8080 npx @volue/wave-mcp@latest http

Environment variables

Variable Default Description
HOST localhost Address the HTTP server binds to.
PORT 3000 Port the HTTP server listens on.
CORS_ORIGIN * Comma-separated list of allowed CORS origins.
ALLOWED_HOSTS unset Comma-separated list of allowed Host header values (e.g. mcp.example.com). Setting this (or ALLOWED_ORIGINS) enables DNS-rebinding protection.
ALLOWED_ORIGINS unset Comma-separated list of allowed Origin header values (e.g. https://mcp.example.com).

Docker Deployment

Pre-built Docker images are automatically published to GitHub Container Registry on every release.

Running the Container

The container runs the HTTP transport by default on port 3000:

docker run -p 3000:3000 ghcr.io/volue/wave-mcp:latest

The MCP endpoint will be available at http://localhost:3000/mcp.

Custom Configuration

Override the default port:

docker run -p 8080:8080 -e PORT=8080 ghcr.io/volue/wave-mcp:latest

Building Locally

To build the image yourself from source:

docker buildx build -f mcp/Dockerfile -t wave-mcp .