Dialtone MCP Server

Search Dialtone's design system with AI assistants using the Model Context Protocol

The Dialtone MCP Server lets compatible AI clients search Dialtone through Model Context Protocol (MCP) tools. Use the Dialtone CLI for direct terminal queries or shell scripts. MCP can select installed lookup data when configured with an explicit dependency root; otherwise it uses bundled data.

What It Does

Search across:

  • CSS utility classes - Find classes like d-p-100, d-d-flex, d-w100p
  • Design tokens - Find tokens like --dt-color-foreground-primary, --dt-spacing-100
  • Vue components - Discover DtButton and DtModal with sampled API summaries, then use get_component for complete available records
  • Icons - Find icons like bell-ring, arrow-up, calendar-plus
  • Public documentation - search_documentation: Search usage prose, recipes, accessibility rules, migration guides, and design principles. Use for "how-to" and "why" questions that go beyond component/token/icon lookups.

Smart Features

  • Filters deprecated discovery results - Exact legacy utility and token names retain their contract and migration guidance
  • Recommends alternatives - Suggests better patterns when discouraged classes are found
  • AI-optimized results - Smart scoring provides the most relevant matches first
  • Design system aware - Understands Dialtone's conventions and patterns

Installation

Install the package separately from configuring your client. A project dependency and lockfile keep the team's selected version repeatable:

npm install --save-dev --save-exact @dialpad/dialtone-mcp-server

Run this in the application package that will use the tool. The examples below use npm; other package managers need an equivalent checked launcher. A bare dialtone-mcp-server command is not guaranteed to resolve a project's local bin.

For Claude Code, merge this entry into .mcp.json at the project root:

{
  "mcpServers": {
    "dialtone": {
      "command": "npm",
      "args": ["--prefix", "${CLAUDE_PROJECT_DIR:-.}", "exec", "--no", "--", "dialtone-mcp-server"]
    }
  }
}

Launch Claude Code from that project root. For an application under apps/web, append /apps/web to the prefix. The prefix selects the installed executable; it does not change the server's working directory or select installed Dialtone data. This shared example uses bundled lookup data until an absolute data root is configured below.

Commit the project configuration with the dependency manifest and lockfile. Approve the project/server through your existing trust and permission controls, then reconnect or restart the client. Preserve existing servers, allowlists and other settings.

User-Scoped (Personal Use)

For a dedicated personal installation, use an absolute installation directory:

mkdir -p /absolute/path/to/mcp-tools
cd /absolute/path/to/mcp-tools
npm install --save-exact @dialpad/dialtone-mcp-server
claude mcp add --scope user dialtone -- npm --prefix /absolute/path/to/mcp-tools exec --no -- dialtone-mcp-server

Claude Code stores user-scoped entries in ~/.claude.json; local entries in that file apply to one project. Project-scoped entries live in .mcp.json. For duplicate names, local scope takes precedence over project, then user scope. Managed settings can also constrain the connection; see Claude's MCP documentation.

A global installation is another option if the client's PATH contains its bin directory. For npx, choose an explicit package version when repeatability matters. It may use an installed package or install into npm's cache; an unqualified name does not guarantee the newest release. npm exec --no declines a requested installation, but may still use an ancestor node_modules/.bin, npm's global bin or a cached package.

Check a project or dedicated installation with npm ls @dialpad/dialtone-mcp-server from its installation directory; use npm ls -g @dialpad/dialtone-mcp-server for a global installation. For npx, check the connected server version; npm ls does not identify a cached selection. Use a resolved absolute entry when you need a fixed executable path.

If a runner is unsuitable, resolve the installed entry from the installation directory with node -p "require.resolve('@dialpad/dialtone-mcp-server')". Configure Node and that absolute entry path in your client. Do not assume the package lives under the application's own node_modules: workspaces can hoist it.

Codex

Put this complete, application-specific entry in your user configuration at ~/.codex/config.toml. Replace the paths with your application's absolute directory and choose a distinct server name for each application:

[mcp_servers.dialtone_web]
command = "npm"
args = ["exec", "--no", "--", "dialtone-mcp-server"]
cwd = "/absolute/path/to/app"
env = { DIALTONE_PROJECT_ROOT = "/absolute/path/to/app" }

This user entry keeps the same application root even when Codex is opened in another project. Check the intended named server and its selected source. For hoisted dependencies, add an absolute DIALTONE_LOOKUP_ROOT to the same env table as described below.

Codex also supports trusted-project .codex/config.toml for portable server definitions. Keep machine-specific absolute paths in your user configuration; do not commit this example to a shared project file or split it into partial entries across configuration layers. Keep existing approval policy, timeouts and tool allowlists. Configuration syntax, server connection and tool exposure are separate checks; see Codex's MCP documentation.

Transport

The packaged server uses stdio. Configure your MCP client to launch the server process, as shown above.

Assistant instructions

Add the shared lookup instruction to a project instruction file your client loads. The connected server supplies its own routing instructions during MCP initialization; keep that workflow with the server rather than copying it into project rules. Installation, loaded project guidance, server connection, exposed tools and actual tool calls are separate checks. Confirm a lookup call and its selected source/version in the consuming session.

Configure MCP to use your installed Dialtone version

The project root setting, DIALTONE_PROJECT_ROOT, tells the MCP server which application's installed Dialtone data to select. Set it to the absolute directory containing your application's package.json. Dependencies may be hoisted into an ancestor workspace when DIALTONE_LOOKUP_ROOT authorizes that search, as described below. Use a Claude Code local registration or the complete Codex user entry above; keep machine-specific absolute paths out of shared project files. A relative value, including ., cannot select installed data. The server does not infer this directory from its launch location, scan for nested applications, or request client workspace roots.

For Claude Code, run this from the project root where you launch the client. This example selects a nested application at apps/web:

claude mcp add dialtone --scope local \
  --env "DIALTONE_PROJECT_ROOT=/absolute/path/repo/apps/web" \
  -- npm --prefix "/absolute/path/repo/apps/web" exec --no -- dialtone-mcp-server

Keep the server name before --env. A local registration replaces the entire shared entry with the same name; fields are not merged. Inspect it with claude mcp get dialtone. A user-scoped registration with an application root selects that same application's data across projects, so use local scope for a project-specific root.

For dependencies hoisted into an ancestor workspace, also set DIALTONE_LOOKUP_ROOT to that absolute workspace directory. Package and data realpaths must stay inside the authorized boundary; lookup does not cross a separate Git repository. Symlinks into that boundary are supported. Dependencies linked outside it remain unverified. Use separate named server configurations for separate applications.

In pnpm workspaces, and other layouts where package symlinks resolve outside the application folder, also set DIALTONE_LOOKUP_ROOT to the workspace root.

A declared @dialpad/dialtone takes precedence over standalone packages. Otherwise, declared standalone Vue, CSS and icon packages supply installed data. With an explicit lookup root, declarations can come from the nearest ancestor workspace manifest inside that boundary; the closest manifest declaring Dialtone packages wins. Missing or malformed domains fall back separately to bundled data with a reason. Documentation, component-page links and client rules remain bundled references. Without configuration, existing bundled lookups continue; invalid configuration never silently falls back to the launch directory.

Search replies remain Markdown, with actual source package versions, hashes and fallback reasons. Structured detail reports per-domain installed or bundled sources. Resource JSON uses the same selected data, with source information in the result's _meta.dialtone. A statically verified entry can establish that a component is not exported; absent metadata alone cannot. Bundled fallback retains its source-verified component names and import hints; it does not verify your installation. Startup stderr and search/detail replies report fallback and version-mismatch warnings. Bundled documentation is an expected latest reference, so it is not labelled as a failed installed-data lookup. These checks do not run application imports or verify peers, runtime behavior or the active theme.

Restart the server after changing configuration or dependencies. It captures one context at startup and does not watch installations for changes. This feature requires a server package version containing it; a source merge does not update an existing installed server. Check a component detail response after setup: its selected source should name the installed package/version, or explain the bundled fallback. A server version that predates this feature can ignore the new environment settings.

Search Tools

Utility Classes

Tool: search_utility_classes

Find CSS utility classes to style HTML elements. Use when your query mentions CSS properties (padding, margin, display, flex) or values (8px, 100%, center, auto).

Example queries:

"padding 8px"       → d-p-100, d-pbs-100, d-pbe-100, d-pis-100, d-pie-100 d-px-100, d-py-100
"display flex"      → d-d-flex, d-d-inline-flex
"width 100%"        → d-w100p
"margin top auto"   → d-mbs-auto
"text align center" → d-ta-center

Parameters:

  • query (required): CSS property and/or value
  • limit (optional): Maximum returned classes (default 15)
  • offset (optional): Integer record offset (0–100000, default 0)

Readable Markdown results retain every available property and usage example for each returned class, together with search notes and source provenance. Follow the text continuation call for more classes.

Design Tokens

Tool: search_tokens

Find design tokens (CSS variables) from Dialtone's design system. Use when your query mentions token categories (color, space, font, size) or semantic names (primary, positive, foreground, background).

Example queries:

"color foreground primary" → --dt-color-foreground-primary
"spacing 100"              → --dt-spacing-100, --dt-spacing-100-negative
"font family"              → --dt-font-family-body, --dt-font-family-expressive
"font weight bold"         → --dt-font-weight-bold

Parameters:

  • query (required): Token category, name, or value; an exact returned token name for theme detail
  • projection (optional): summary (default) or themes
  • limit (optional): Maximum returned tokens or theme records (default 15)
  • offset (optional): Record offset (default 0)

Readable Markdown results preserve three named theme samples and token usage, label the sample as incomplete, and supply an exact projection: "themes" call. The theme projection returns complete available named source records and migration metadata as text, with limit/offset continuations. Samples and detail values do not identify your active installed theme.

Components

Tool: search_components

Discover Vue component candidates by UI element or name. Select a canonical component and use get_component to retrieve its available API contract.

Component and documentation discovery reuse curated page keywords. spinner leads with DtLoader, blank slate with DtEmptyState, and text field, text-field, or textbox with DtInput. autocomplete and typeahead find the supported Combobox candidates. notification exposes DtBanner, DtNotice, and DtToast as distinct choices. Canonical component name and family matches keep their existing priority. Longer requests recognize complete keyword phrases and public names, including regular plurals. Complete name, keyword and API-text matches lead before partial contextual candidates; separate keywords do not combine into a complete phrase. Text notes identify the matched keywords or names. Unrecognized context is not a supported feature claim. Documentation preserves named subjects and selects sections using their source evidence; keywords help discover pages.

For a longer request:

{ "query": "add a loader to the settings page" }

For example, call search_components with { "query": "spinner" }, then get_component with { "component": "DtLoader" }. Use search_documentation with { "query": "blank slate" } for Empty State guidance. Keywords never become component export aliases: get_component with { "component": "spinner" } returns no match.

Keyword associations come from bundled latest documentation and apply only to public components present in the selected data. They do not establish availability or compatibility with your installed Dialtone version.

Directive identifiers such as v-dt-tooltip or DtTooltipDirective are not component names. Component search returns no components for them; use search_documentation for directive contracts.

Example queries:

"button"   → DtButton, DtButtonGroup, DtBanner (29 results)
"modal"    → DtModal, DtBanner, DtDropdown (6 results)
"checkbox" → DtCheckbox, DtCheckboxGroup, DtRadio

Returns:

  • Component names, descriptions, the first five props and sampled event/slot names
  • Deprecation metadata and verified export hints where available
  • Exact detail and pagination continuation calls
  • Selected data package versions and hashes; installed runtime compatibility is not checked

Parameters:

  • query (required): Component name or UI element
  • limit (optional): Maximum returned components (default 15)
  • offset (optional): Integer record offset (0–100000, default 0)

Selected component API

Tool: get_component

Retrieve the selected component's complete available generated records. For Button's full kind values, default and deprecation contract, call:

{ "component": "DtButton", "projection": "props", "field": "kind" }

projection accepts all (default), props, events, slots, methods and expose. field is optional and stays within that component. Records preserve available types, values, defaults, required inputs, tags, event payloads and scoped-slot bindings. Missing metadata is unknown. Import hints state export verification only; documentation links are latest production references with readiness and API-content qualification.

limit accepts integers 1–50 (default 20); offset defaults to zero. Follow the returned continuation for remaining records. Selected detail has a rough budget of 12000 estimated tokens, counted as compact envelope JSON UTF-8 bytes divided by four and rounded up. Readable searches are not cut by this budget. Oversized atomic contracts report their omission instead of silently truncating values or payloads.

Complete documentation prose

Tools: search_documentation, then get_documentation

Search returns exact section IDs, 500-character excerpts and detail calls. Pass an exact ID to retrieve the available prose, for example:

{ "id": "components/checkbox#accessibility" }

textLimit defaults to 6000 Unicode code points (1–10000); textOffset defaults to zero (0–1000000). Follow the returned continuation to read remaining content. Prose retrieval does not verify example code or consumer compatibility.

Directive documentation includes source code snippets and registration guidance. Component documentation can omit code fences or page-level scripts, so retrieving a complete record does not necessarily return a complete working example. Check required imports, CSS/theme setup, state, and behavior against your application before using a snippet.

The five search tools return readable Markdown only, with selected package/version/hash provenance and text continuation calls. All execute and advertise a default limit of 15. They accept plain string queries, fractional numeric limits, harmless numeric-string limits and extra arguments. Whitespace-only queries return a clear no-match message; long inputs follow the existing domain search rules. Only get_component and get_documentation return structured envelopes and matching JSON text fallbacks; their selected detail schemas remain strict. Installed compatibility is not checked.

Retrieve a selected example

Use the existing exact-ID tool for complete source-derived examples:

{"id":"examples/button-default"}

Pass this object to get_documentation; examples/button-disabled-tooltip retrieves the existing disabled Button Tooltip pattern. For a longer request, use search_documentation, for example {"query":"button with a tooltip"}. Matching source sections supply example IDs and fetch calls. Component search also supplies hints for the requested subject; assembly imports alone do not make an example relevant. Discovery shows at most three IDs and the total; the matching source or component detail exposes its full exampleIds list. Complete example records stay out of ordinary search rankings.

Vue-app records contain all five application files, dependency pins and setup instructions. Static-HTML records contain authored HTML with CSS/theme prerequisites, without Vue application files or page scripts. Follow every textOffset continuation and concatenate content in order before copying it; a continued fragment is not a runnable application. Unknown example IDs retain no-match, list available IDs and offer documentation-search recovery.

Ready component-page live Vue examples are included automatically when public imports, supported source state and source API checks are complete. Their IDs use examples/docs/<doc-path>/<section>, where <doc-path> is the page path under docs/ without its extension, for example examples/docs/components/button/variants-critical. Source-authored keys append a final segment where needed. Existing Button, Loader, Toggle and Word Wrap IDs remain available. A source edit updates the fixture; a heading rename or removal retires its derived ID. Source delivery does not prove that the pinned packages support the fixture. Unverified records qualify their setup instructions; read the validation status before using them.

Included local state supports literal Boolean, string, null and string-array refs, including empty arrays. Computed values, application handlers, calls and object setup remain unresolved. This support adds 12 SegmentedControl source examples and one dynamic-mode ModeIsland example to lookup; their delivery does not establish consumer or accessibility qualification.

Five controlled FilterPill source sections have owned lookup exclusions. The hero, single-selection and multiple-selection starters require the unreleased feature APIs; dt10-pinned uses Dialtone 10.5.1, which predates options/selected. The Labels and counts section also needs application handlers, reactive options and computed counts beyond bounded setup. The Closing before removal section also needs named handlers and component refs beyond bounded setup. The six controlled Combinator presets remain withheld until compatible publication and profile qualification. Live documentation and Storybook demos remain available, as do the 11 legacy FilterPill source-example IDs and the original examples/presets/DtFilterPill/default record.

Vue apps use the dt10-pinned profile (umbrella 10.5.1, icons 5.2.0, Vue 3.5.18); other installations remain unverified. Source package/version, section and hash remain separate. Delivered-file or runtime/tooling tuple changes invalidate affected validation until rechecked; whole-page hashes identify source provenance. Source-derived Vue records describe setup, whether local state is included and manual-review status. Read the source page's guidance for adoption responsibilities. Consumers must prevent disabled actions in their handlers and verify interaction/accessibility in their own application; a successful build establishes compilation only. The Toggle v-model example includes authored local state; application side effects remain consumer responsibilities. The Toggle Base Styles and Sizes fixtures omit a fieldset legend; provide an appropriate group label before adopting them. Check the record's browser, keyboard and screen-reader evidence separately.

search_utility_classes with {"query":"d-ww-normal"} supplies the static utility example ID; retrieve it with get_documentation. Hints use actual selected utility results and bundled documentation. Check each representation and validation status. Static subjects, referenced examples, MDX and richer state remain partial coverage.

Combinator’s curated registry drives preset examples through the same exact-ID route. The legacy FilterPill defer selection preset includes its authored popover-footer-class after clarifying the prop descriptions used by the existing dependency parser; prop_dependencies.js is unchanged. Generated legacy slot metadata uses the camelCase runtime names activeFilters, activeFilterList, activeFilterOverflow and pendingFilters; the runtime names are unchanged. For example, retrieve examples/presets/DtLoader/default or examples/presets/DtButton/start%20icon. Supported sources with complete assembly context appear without a second publishing list; unresolved, unsupported and deprecated sources remain excluded. Read each record’s consumer-build and manual-review status: source delivery alone does not establish compatibility or a working application. Source versions and bank hashes identify the preset separately from its consumer proof. A rename or removal retires the old ID. Curation changes reach installed tools through generation, package publication and updates; an MCP server also needs a restart.

Example generation runs in dialtone-docs:build; query-core and adapter builds bundle that output into packed packages. Documentation deployment and source merges do not update an installed server: the existing release selection, publication and package-update path still applies. Packed candidates are separate from published packages and verified consumer delivery.

Icons

Tool: search_icons

Find icons from Dialtone's icon library and learn how to use icon components. Icons are imported from @dialpad/dialtone-icons/vue, not @dialpad/dialtone-vue.

Example queries:

"notification" → bell, bell-ring, bell-off, bell-plus
"arrow up"     → arrow-up, arrow-up-down, arrow-up-left
"profile"      → user
"calendar"     → calendar, calendar-plus, calendar-event

Returns:

  • Icon name
  • Categories
  • Keywords
  • Tree-shakable import path
  • Usage example

Parameters:

  • query (required): Icon name, category, or keyword
  • limit (optional): Maximum returned icons (default 15)
  • offset (optional): Integer record offset (0–100000, default 0)

Documentation

Tool: search_documentation

Search usage guidance, accessibility responsibilities and directive contracts, including imports, registration, arguments and modifiers.

"v-dt-tooltip"
"DtModeDirective registration"

Directive replies identify the source package and version and link to the Storybook reference. Documentation uses bundled data; compatibility with the project's installed packages is not checked.

To find related guidance, call get_documentation with the selected ID and projection: "context". It lists source/page sections, authored API subjects, explicit directive/utility targets and documentation links without repeating their content. Follow relevant documentation IDs with get_documentation, components with get_component, utilities with search_utility_classes, and link targetDocId values with documentation context.

Context uses reference limit 1–50 (default 20) and offset (default 0); follow its continuation. Content mode retains Unicode textOffset/textLimit pagination. A preset's synthetic provenance is not a documentation ID. References stay bundled/latest-qualified and do not prove installed API or CSS availability.

Usage Examples

Finding Styling Classes

When working on a component and need specific styling:

User: "What class adds padding 8px to all sides?"
Claude: [Uses search_utility_classes tool]
Result: d-p-100 (padding: var(--dt-spacing-100) which equals 8px)

Discovering Components

When building UI and unsure what components exist:

User: "What button components are available in Dialtone?"
Claude: [Uses search_components tool]
Result: Component descriptions, sampled props/events/slots, imports and detail routes.
Claude: [Uses get_component for the selected DtButton API]

Looking Up Tokens

When implementing designs and need exact token values:

User: "What's the primary foreground color token?"
Claude: [Uses search_tokens tool]
Result: --dt-color-foreground-primary
        Value: #1C1C1C (in light theme)
        Available in: dp-light, dp-dark themes

Finding Icons

When adding icons to your interface:

User: "Show me all notification-related icons"
Claude: [Uses search_icons tool]
Result: bell, bell-ring, bell-off, bell-plus, bell-minus
        Import: import { IconBell } from '@dialpad/dialtone-icons/vue'

CLI or MCP Server

The MCP server and Dialtone CLI use the same Dialtone search engine. Choose the interface that fits the task:

  • Use the MCP server when you want an AI client to choose and run Dialtone searches during a conversation.
  • Use the CLI when you want to run an explicit terminal query, use Dialtone data in a script, or inspect the version installed in your project.

You can install both. The MCP server handles tool calls from an AI client, while the CLI handles commands that you run directly.

Configuration

Updating the Server

Changes to the component, utility, token, icon and documentation sources bundled by the server are eligible for an MCP server release through the normal release process. A source change or documentation-site deployment does not update an installed server.

Update the package in the directory where it was installed, using the same installation mode. For a project dependency:

npm install --save-dev --save-exact @dialpad/dialtone-mcp-server@latest

Review and commit the manifest/lockfile change. For a dedicated personal installation, run the update there; for a global installation, use npm install -g @dialpad/dialtone-mcp-server@latest. If configuration pins an npx version, update that pin deliberately. @latest requests the registry's latest tag; it is not a locked version.

If your startup notice suggests a project-dev install without --save-exact, use the command for your installation mode above to preserve the intended pin and installation directory.

Restart the MCP server or reconnect/restart its client after package, configuration or Dialtone dependency changes. Starting a new conversation does not necessarily restart a long-lived server. The advisory startup version check does not update packages for you.

Replies identify installed or bundled sources and versions. Updating the server refreshes its bundled data; it does not update your application's Dialtone packages or verify runtime or example behavior. Bundled source and keyword changes reach an installed server only after package publication, an update and a server restart. Changes to data selected from your installed project can be loaded by restarting the server; those local changes do not require publishing or updating the MCP package. Local generation, builds and source merge do not publish bundled updates.

Managing Connections

List configured servers:

claude mcp list

View specific server:

claude mcp get dialtone

Remove server:

claude mcp remove dialtone

Compatible Platforms

The setup examples above cover Claude Code and Codex. Other clients need support for local stdio servers and their own executable, environment and permission configuration. Check connection and available tools in that client; this is not a compatibility certification for every MCP client. Yarn Plug'n'Play and Windows launcher variants have not been verified here.

Claude Desktop setup has not been verified here. Follow the local MCP server setup guide and use the resolved installed entry described above. Verify the client's connection and available tools separately.

Troubleshooting

Server Not Connecting

For Claude Code project configuration:

  1. Verify .mcp.json exists in your project root with correct format

  2. Check package is installed:

    npm list @dialpad/dialtone-mcp-server
    
  3. Check the configured runner or resolved entry from the installation directory. A hoisted workspace bin may be outside the application's own node_modules; check the selected package/version rather than requiring that local path.

  4. Restart Claude Code completely

For Claude Code local/user configuration:

  1. List configured servers:

    claude mcp list
    
  2. Check if dialtone is listed and enabled

  3. Test the server:

    claude mcp get dialtone
    

Version Shows Old After Updating

Restart the server or reconnect/restart its client after updating, then check the selected package/version. A new conversation may reuse a long-lived server process.

No Search Results

  • Use keywords, not questions - Try "button" instead of "What button components exist?"
  • Try broader terms first - Search "padding" before "padding left 16px"
  • Check example queries - Review the examples in each tool section above
  • Verify installation - Ensure the server is running: claude mcp list

Build Issues

If you're developing or testing locally:

  1. Ensure workspace dependencies are built first
  2. Run from monorepo root: pnpm install
  3. Build the server: pnpm nx run dialtone-mcp-server:build
  4. Check for TypeScript errors in the console

Resources

Next Steps

Now that you have the MCP server installed, explore these resources:

Dialtone MCP Server documentation last updated Friday, November 13, 2026