npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@workday/canvas-kit-mcp

v15.0.7

Published

MCP package for Canvas Kit

Readme

Canvas Kit MCP

Our MCP server provides resources and tools to help you work with Canvas Kit components.

Installation

Cursor Quick Install

Other IDEs (Windsurf, VS Code, etc.)

Add to your MCP servers configuration file:

{
  "mcpServers": {
    "canvas-kit-mcp": {
      "command": "npx",
      "args": ["-y", "@workday/canvas-kit-mcp"]
    }
  }
}

Claude Code CLI

claude mcp add --scope project --transport stdio canvas-kit -- npx -y @workday/canvas-kit-mcp

Tools

get-canvas-kit-upgrade-guides

Returns Canvas Kit upgrade guide documentation (v9 through v14) as resource links.

get-canvas-kit-tokens

Returns Canvas Kit design token documentation for migrating to @workday/canvas-tokens-web.

fetch-component-documentation-example

Renders an interactive Canvas Kit component story inline for the user. Accepts a story parameter with an enum of all available component slugs (e.g. buttons, text-input, modal, tabs, etc.).

The tool returns:

  • The Storybook documentation URL
  • A resource_link to docs://examples/{story} with documentation and code examples
  • Story HTML via _meta for inline MCP App rendering

LLMs should read the docs://examples/{story} resource first for documentation and code examples. Only call fetch-component-documentation-example to show the user a live interactive preview.

Resources

docs://upgrade-guides/*

Markdown upgrade guides for Canvas Kit major versions (v9-v14).

docs://tokens/*

Design token migration guides, color palette, roles, contrast, and scale documentation.

docs://examples/{slug}

Markdown documentation and inline code examples for each component. These are extracted from the MDX story files at build time, with ExampleCodeBlock references replaced by the actual source code of each example.

ui://story/{slug}

Interactive HTML previews of Canvas Kit components, served as MCP App resources (text/html;profile=mcp-app). These are compiled from each component's Storybook MDX documentation and include live, styled component examples.

Contributing

Canvas Kit MCP has two exports:

  • dist/cli.js -- a Node server that can be invoked via npx for local stdio
  • dist/index.js -- module exports for extending the server or hosting with other transports

Build Pipeline

The build runs in stages via npm run build:

  1. build:discover -- scans modules/react and modules/preview-react for story files, extracts metadata (title, slug, Storybook URL, MDX path, prose with inlined code examples), and writes lib/stories-config.json
  2. build:apps -- compiles each MDX story into a self-contained single-file HTML app using Vite, bundling React, Emotion, Canvas Tokens CSS, and lightweight Storybook stubs
  3. build:copy -- copies static resources (upgrade guides, token docs) into dist/lib
  4. build:types -- generates TypeScript declarations
  5. build:mcp -- bundles lib/index.ts and lib/cli.ts with esbuild

Key build files

  • build/vite-plugins.ts -- shared Vite plugins (canvasKitSourceResolver) and CANVAS_KIT_PACKAGE_MAP for monorepo package resolution
  • build/discover-stories.ts -- story discovery and stories-config.json generation
  • build/build-story-apps.ts -- MDX-to-HTML compilation with Vite
  • build/harness.html -- HTML template for MCP App stories (MCP bridge, base typography, font loading)
  • build/storybook-stubs/ -- lightweight replacements for Storybook components (Meta, ExampleCodeBlock, SymbolDoc, etc.) used in MDX files

To test locally

MCP Inspector

The inspector requires Node >= 22 so you will need to temporarily switch:

nvm use 22
yarn build
npx @modelcontextprotocol/inspector node dist/cli.js

Local IDE Testing

Add an entry to your MCP servers configuration pointing to your local build:

{
  "mcpServers": {
    "canvas-kit-mcp-local": {
      "command": "node",
      "args": ["/absolute/path/to/canvas-kit/modules/mcp/dist/cli.js"]
    }
  }
}

In Cursor, put the JSON in ~/.cursor/mcp.json (all projects) or .cursor/mcp.json at the repo root (this project only). Restart Cursor or reload MCP after edits.

Rebuild the server after changes:

yarn build