Skip to content

dialtone-mcp-server 1.1.0

Install from the command line:
Learn more about npm packages
$ npm install @dialpad/dialtone-mcp-server@1.1.0
Install via package.json:
"@dialpad/dialtone-mcp-server": "1.1.0"

About this version

Dialtone MCP Server

A Model Context Protocol (MCP) server that provides AI assistants with search access to Dialtone's design system: utility classes, design tokens, and Vue components.

Quick Start

1. Build

From the monorepo root:

pnpm install
pnpm nx run dialtone-mcp-server:build

2. Test Interactively

Try out search queries (must be run from the package directory):

# Navigate to the package directory first!
cd packages/dialtone-mcp-server

# Then run the interactive tool
pnpm run interactive

Or use tsx directly from anywhere:

npx tsx packages/dialtone-mcp-server/interactive-search.ts

Query Format: Use keywords only, not questions.

  • βœ“ Good: padding 8px, color primary, button
  • βœ— Bad: how do I add padding?, what button component exists?

Example session:

Select a search tool:
  1. Utility Classes
  2. Design Tokens
  3. Components

Enter 1, 2, or 3: 1

> padding 8px
Found 8 results:
  1. d-p8
  2. d-pt8
  3. d-pr8
  4. d-pb8
  ...

Type help for more examples, switch to change tools, quit to exit.

3. Configure with Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (MacOS) or %APPDATA%/Claude/claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "dialtone": {
      "command": "node",
      "args": [
        "/ABSOLUTE/PATH/TO/dialtone/packages/dialtone-mcp-server/build/index.js"
      ]
    }
  }
}

Important:

  • Use the absolute path to your dialtone repo
  • Restart Claude Desktop completely after updating the config
  • Look for the πŸ”Œ icon to confirm connection

Finding your absolute path:

cd /path/to/dialtone
pwd
# Use the output + /packages/dialtone-mcp-server/build/index.js

What You Can Search

1. Utility Classes (3,315 classes)

Find CSS utility classes for styling HTML elements.

Example queries:

  • padding 8px β†’ d-p8, d-pt8, d-pr8, d-pb8, d-pl8, d-px8, d-py8
  • display flex β†’ d-d-flex, d-d-inline-flex
  • width 100% β†’ d-w100p
  • margin top auto β†’ d-mt-auto
  • text align center β†’ d-ta-center

2. Design Tokens (5,691 tokens)

Search for design tokens (CSS variables).

Example queries:

  • color foreground primary β†’ --dt-color-foreground-primary
  • space 400 β†’ --dt-space-400, --dt-space-400-negative
  • font family β†’ --dt-font-family-body, --dt-font-family-expressive
  • font weight bold β†’ --dt-font-weight-bold

3. Components (87 components)

Discover Vue components with props, events, and slots.

Example queries:

  • button β†’ DtButton, DtButtonGroup, DtBanner (29 results)
  • modal β†’ DtModal, DtBanner, DtDropdown (6 results)
  • checkbox β†’ DtCheckbox, DtCheckboxGroup, DtRadio

Development

Project Structure

packages/dialtone-mcp-server/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ index.ts              # MCP server setup
β”‚   β”œβ”€β”€ types.ts              # TypeScript interfaces
β”‚   β”œβ”€β”€ data.ts               # Data imports
β”‚   β”œβ”€β”€ utils/filters.ts      # Smart filtering
β”‚   └── tools/                # Search implementations
β”‚       β”œβ”€β”€ utility-classes.ts
β”‚       β”œβ”€β”€ tokens.ts
β”‚       └── components.ts
β”œβ”€β”€ build/                    # Compiled output
β”œβ”€β”€ test-search.js           # Automated tests
β”œβ”€β”€ interactive-search.js    # Interactive CLI tool
└── README.md

Run Tests

From the package directory:

cd packages/dialtone-mcp-server
pnpm run test

Or from monorepo root:

node packages/dialtone-mcp-server/test-search.js

Expected: Overall Success Rate: 100% (77/77 tests)

Rebuild After Changes

pnpm nx run dialtone-mcp-server:build

Troubleshooting

MCP server not connecting:

  1. Verify build/index.js exists
  2. Check the path in config is absolute (not relative)
  3. Restart Claude Desktop completely
  4. Check Claude Desktop logs for errors

Test the server manually:

node build/index.js
# Should print: "Dialtone MCP Server running on stdio"
# Press Ctrl+C to exit

Resources

Details


Assets

  • dialtone-mcp-server-1.1.0.tgz

Download activity

  • Total downloads 66
  • Last 30 days 0
  • Last week 0
  • Today 0