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

intent-mcp

v2.0.0

Published

MCP server for AI integration with Intent styling framework

Readme

intent-mcp

npm version License

MCP (Model Context Protocol) server for AI integration with Intent styling framework.

Installation

npm install -g intent-mcp
# or
pnpm add -g intent-mcp

Quick Start

# Start the MCP server
intent-mcp

# Or with custom port
intent-mcp --port 3000

What is MCP?

The Model Context Protocol (MCP) is a protocol for AI assistants to interact with external tools and services. The Intent MCP server allows AI assistants like Claude, GPT, and others to:

  • Generate Intent component code
  • Validate component schemas
  • Query design system tokens
  • Generate CSS from schemas
  • Validate component usage

Features

  • Schema Queries - Access all component schemas
  • Code Generation - Generate React component code
  • Validation - Validate schemas and component usage
  • Token Access - Query design tokens
  • CSS Generation - Compile schemas to CSS on demand

Configuration

Claude Desktop

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "intent": {
      "command": "intent-mcp",
      "args": [],
      "env": {
        "INTENT_SCHEMAS_PATH": "./src/schemas"
      }
    }
  }
}

Environment Variables

  • INTENT_SCHEMAS_PATH - Path to your schema files
  • INTENT_THEME_PATH - Path to your theme configuration
  • INTENT_PORT - Server port (default: 3000)

Usage with AI Assistants

Once configured, you can ask Claude (or other MCP-enabled AIs):

"Generate a Card component with elevation and padding props using Intent"

The AI will:

  1. Query available schemas via MCP
  2. Generate valid Intent component code
  3. Ensure type safety and constraint compliance

API Endpoints

GET /schemas

List all available component schemas.

GET /schemas/:name

Get a specific component schema.

POST /validate

Validate a component schema or usage.

{
  "type": "schema",
  "data": { /* schema object */ }
}

POST /generate

Generate code from a schema.

{
  "component": "Button",
  "props": {
    "importance": "primary",
    "size": "lg"
  }
}

POST /compile

Compile schemas to CSS.

{
  "schemas": [ /* array of schemas */ ],
  "options": {
    "minify": true
  }
}

Example: AI-Generated Component

With MCP enabled, you can ask:

"Create a Badge component with variant prop for success, warning, and error states"

And receive:

import { defineComponent } from 'intent-core';

export const BadgeSchema = defineComponent({
  name: 'Badge',
  properties: {
    variant: {
      type: 'enum',
      values: ['success', 'warning', 'error', 'info'],
      default: 'info'
    },
    size: {
      type: 'enum',
      values: ['sm', 'md'],
      default: 'md'
    }
  },
  mappings: {
    'variant=success': {
      backgroundColor: '#22C55E',
      color: 'white'
    },
    'variant=warning': {
      backgroundColor: '#F59E0B',
      color: 'white'
    },
    'variant=error': {
      backgroundColor: '#EF4444',
      color: 'white'
    }
  }
});

License

MIT © Intent Framework Contributors