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

@iblai/mcp

v1.0.0

Published

MCP server for IBL frontend packages documentation and guidance

Readme

IBL Frontend MCP Server

An MCP (Model Context Protocol) server that provides comprehensive documentation and guidance for working with the IBL frontend packages.

Overview

This MCP server helps AI assistants understand and work with:

  • @iblai/web-containers: Shared React components built on Radix UI
  • @iblai/web-utils: Authentication utilities, context providers, and hooks
  • @iblai/data-layer: Redux store and RTK Query APIs

Installation

cd packages/mcp-server
pnpm install
pnpm build

Quick Start

# 1. Build the MCP server
cd packages/mcp-server
pnpm build

# 2. Restart Claude Code (exit and re-enter your session)
# The server is already configured in .claude/settings.json

That's it! Claude will now have access to IBL-specific tools and documentation.

Configuration

The MCP server is pre-configured in .claude/settings.json:

{
  "mcpServers": {
    "ibl-web-frontend": {
      "type": "stdio",
      "command": "node",
      "args": ["packages/mcp-server/dist/index.js"]
    }
  }
}

No additional setup required - just build and restart Claude Code.

Project Structure

packages/mcp-server/
├── src/
│   ├── index.ts              # Main server entry point
│   ├── resources/            # Documentation resources
│   │   ├── index.ts          # Resource exports
│   │   ├── packages-overview.ts
│   │   ├── web-containers.ts
│   │   ├── web-utils.ts
│   │   ├── data-layer.ts
│   │   ├── guides-layout.ts
│   │   ├── guides-rbac.ts
│   │   └── guides-theme.ts
│   └── tools/                # MCP tools
│       ├── index.ts          # Tool exports
│       ├── component-info.ts
│       ├── hook-info.ts
│       ├── provider-setup.ts
│       ├── api-query-info.ts
│       └── page-template.ts
└── dist/                     # Compiled output

Available Resources

The server provides the following documentation resources:

| Resource URI | Description | |--------------|-------------| | ibl://packages/overview | Overview of all IBL frontend packages | | ibl://packages/web-containers | UI components documentation | | ibl://packages/web-utils | Providers and hooks documentation | | ibl://packages/data-layer | Redux and RTK Query documentation | | ibl://guides/layout | Layout rules and patterns | | ibl://guides/rbac | RBAC (Role-Based Access Control) patterns | | ibl://guides/theme | Theme configuration |

Available Tools

get_component_info

Get detailed information about a UI component.

Component name: Button, Card, Dialog, Profile, NotificationDropdown, Input, Select, Tabs, etc.

get_hook_info

Get detailed information about a React hook.

Hook name: useAdvancedChat, useMentorSettings, useGetMentorsQuery, useTenantMetadata, etc.

get_provider_setup

Get the correct provider setup for an app type.

App type: mentor, skills, auth, custom
Features: chat, analytics, notifications, rbac

get_api_query_info

Get information about an RTK Query API endpoint.

Query name: useGetMentorsQuery, useGetUserMetadataQuery, usePlatformUserGroupsQuery, etc.

create_page_template

Generate a template for a new page following IBL patterns.

Page name: Dashboard, Settings, etc.
Features: auth-required, rbac, analytics, sidebar, data-fetching
App type: mentor, skills

Development

# Watch mode
pnpm dev

# Build
pnpm build

# Run server directly
pnpm start

Key Concepts

Provider Hierarchy

Apps must use providers in this order:

Skills App:

StoreProvider → AuthProvider → TenantProvider → ClientLayout

Mentor App:

StoreProvider → AuthProvider → TenantProvider → MentorProvider → AppProvider

Package Imports

// Data Layer
import { useGetMentorsQuery, mentorReducer } from '@iblai/data-layer';

// Web Containers
import { Button, Card, Dialog } from '@iblai/web-containers';

// Web Utils
import { AuthProvider, useAdvancedChat } from '@iblai/web-utils';

RBAC Pattern

import { WithPermissions } from '@/hoc/withPermissions';

<WithPermissions rbacResource={`/platforms/${tenant}/#can_view_analytics`}>
  {({ hasPermission }) => hasPermission && <AnalyticsButton />}
</WithPermissions>

Adding New Resources

  1. Create a new file in src/resources/ (e.g., my-resource.ts)
  2. Export the resource object with uri, name, description, mimeType, and content
  3. Import and add it to src/resources/index.ts

Adding New Tools

  1. Create a new file in src/tools/ (e.g., my-tool.ts)
  2. Export the tool definition and handler function
  3. Import and add it to src/tools/index.ts
  4. Add the case handler in src/index.ts