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

@idealyst/mcp-server

v1.2.101

Published

MCP server providing documentation and examples for the Idealyst framework

Downloads

8,022

Readme

@idealyst/mcp-server

Model Context Protocol server for the Idealyst Framework

Provides AI assistants like Claude Code with access to accurate, type-checked documentation and examples for Idealyst components, theme, and navigation.

Features

  • 🔍 Type-Driven Documentation: Extract TypeScript types directly from source packages
  • Validated Examples: All examples are type-checked and guaranteed to compile
  • 🎨 Theme Type Access: Get Size, Intent, Color, and other theme types
  • 🧭 Navigation Types: Access to routing and navigator type definitions
  • 🔎 Icon Search: Search through 7,447 Material Design Icons
  • 📚 Component Docs: Detailed documentation with props, usage, and best practices

Installation

Global Installation

npm install -g @idealyst/mcp-server

Project Installation

npm install --save-dev @idealyst/mcp-server
# or
yarn add -D @idealyst/mcp-server

Usage with Claude Code

Project-Level Configuration

Add to your project's .mcp.json:

{
  "mcpServers": {
    "idealyst": {
      "command": "npx",
      "args": ["@idealyst/mcp-server"]
    }
  }
}

User-Level Configuration

Add to ~/.config/claude-code/mcp_config.json:

{
  "mcpServers": {
    "idealyst": {
      "command": "idealyst-mcp"
    }
  }
}

Claude Desktop Configuration

macOS/Linux

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "idealyst": {
      "command": "npx",
      "args": ["@idealyst/mcp-server"]
    }
  }
}

Windows

Edit %APPDATA%\Claude\claude_desktop_config.json:

{
  "mcpServers": {
    "idealyst": {
      "command": "npx",
      "args": ["@idealyst/mcp-server"]
    }
  }
}

Available Tools

Component Tools

get_component_types

Get TypeScript type definitions for a component.

{
  component: "Button",
  format: "both" // "typescript" | "json" | "both"
}

Returns the actual TypeScript interface and/or parsed JSON schema with prop details.

get_component_docs

Get comprehensive documentation for a component including props, usage, features, and best practices.

{
  component: "Button"
}

get_component_example

Get a specific example type for a component.

{
  component: "Button",
  example_type: "basic" // "basic" | "variants" | "with-icons" | "interactive"
}

get_component_examples_ts

Get validated TypeScript examples that are guaranteed to compile.

{
  component: "Button"
}

list_components

List all available Idealyst components with descriptions.

search_components

Search for components by name, category, or feature.

{
  query: "form",
  category: "form" // optional: "layout" | "form" | "display" | "navigation" | "overlay" | "data"
}

Theme Tools

get_theme_types

Get all theme type definitions (Size, Intent, Color, etc.).

{
  format: "json" // "typescript" | "json" | "both"
}

Navigation Tools

get_navigation_types

Get navigation type definitions for routers, navigators, and screens.

{
  format: "typescript" // "typescript" | "json" | "both"
}

Icon Tools

search_icons

Search through 7,447 Material Design Icons.

{
  query: "arrow",
  limit: 20 // optional, default: 20
}

CLI Tools

get_cli_usage

Get information about Idealyst CLI commands.

{
  command: "init" // optional, omit for all commands
}

Type Extraction System

This MCP server uses a unique type-driven architecture to ensure documentation accuracy:

  1. Extract Types: Parse TypeScript from @idealyst/components, @idealyst/theme, @idealyst/navigation
  2. Validate Examples: Type-check all examples against extracted types
  3. Serve Types: Provide both raw TypeScript and JSON schema via MCP tools

See TYPE-SYSTEM.md for detailed documentation.

Development

Setup

# Install dependencies
yarn install

# Extract types from packages
yarn extract-types

# Validate examples
yarn validate-examples

# Build
yarn build

# Run locally
yarn start

Adding Examples

Create TypeScript example files in examples/components/:

// examples/components/Button.examples.tsx
import React from 'react';
import { Button } from '@idealyst/components';

export function BasicButton() {
  return (
    <Button type="contained" intent="primary">
      Save
    </Button>
  );
}

Then validate:

yarn validate-examples

Project Structure

packages/mcp-server/
├── src/
│   ├── index.ts              # MCP server entry point
│   ├── tools/                # MCP tool implementations
│   │   └── get-types.ts      # Type extraction tools
│   ├── data/                 # Component documentation
│   │   ├── components/       # Component docs
│   │   ├── cli-commands.ts   # CLI documentation
│   │   └── framework-guides.ts
│   └── generated/            # Auto-generated (gitignored)
│       └── types.json        # Extracted types
├── scripts/
│   ├── extract-types.ts      # Type extraction script
│   ├── type-extractor.ts     # Extraction utilities
│   └── validate-examples.ts  # Example validation
├── examples/
│   └── components/           # Type-checked examples
│       ├── Button.examples.tsx
│       ├── Card.examples.tsx
│       └── ...
├── ARCHITECTURE.md           # System architecture
├── TYPE-SYSTEM.md           # Type system documentation
└── package.json

Build Process

The build includes type extraction and validation:

{
  "scripts": {
    "prebuild": "yarn extract-types && yarn validate-examples",
    "build": "tsc && chmod +x dist/index.js"
  }
}

This ensures:

  • ✅ Types are up-to-date
  • ✅ Examples are valid
  • ✅ Build fails if examples have type errors

Resources

The server also provides markdown resources accessible via MCP:

  • idealyst://framework/getting-started - Getting started guide
  • idealyst://framework/components-overview - Components overview
  • idealyst://framework/theming - Theming guide
  • idealyst://framework/cli - CLI reference
  • idealyst://navigation/overview - Navigation system overview
  • idealyst://navigation/route-configuration - Route configuration
  • idealyst://navigation/navigator-types - Navigator types guide
  • idealyst://icons/reference - Icon reference with common icons

Benefits

For AI Assistants

  • 🎯 Accurate Types: Get exact TypeScript interfaces from source
  • Validated Examples: Examples guaranteed to compile
  • 📊 Multiple Formats: TypeScript and JSON schema formats
  • 🔄 Always Updated: Types extracted from actual packages

For Developers

  • 🚀 Fast Development: AI generates correct code on first try
  • 📖 Reliable Docs: Documentation always matches reality
  • 🔍 Easy Discovery: Search components, icons, and types
  • 💡 Best Practices: Built-in guidance and examples

Example Queries for Claude

Once the MCP server is connected, you can ask:

  • "List all Idealyst components"
  • "Get the TypeScript types for the Button component"
  • "Show me validated examples for the Card component"
  • "What are the available Size values in the theme?"
  • "Search for arrow icons"
  • "How do I create a new Idealyst workspace?"
  • "What navigation types are available?"

Troubleshooting

"Types file not found" Error

Run type extraction:

yarn extract-types

Examples Have Type Errors

This means the examples don't match the current types (which is good - we caught it!):

yarn validate-examples  # See errors
# Fix examples, then re-validate

Types Are Out of Date

Re-extract after changing component packages:

yarn extract-types
yarn build

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Add/update examples with type validation
  4. Run yarn validate-examples
  5. Submit a pull request

See ARCHITECTURE.md and TYPE-SYSTEM.md for technical details.

License

MIT

Links