🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

mcp-react-toolkit

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mcp-react-toolkit

9 MCP servers for React + TypeScript development automation — component scaffolding, dep auditing, WCAG checking, test generation, TypeScript enforcement, and monorepo management.

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
50
-29.58%
Maintainers
1
Weekly downloads
 
Created
Source

mcp-toolkit

MCP servers for React + TypeScript development automation. Works with Claude Desktop, Cline, Cursor — and as plain CLI scripts — one protocol, zero duplication.

CI License: MIT MCP SDK Tests

What's here

tools/      9 MCP server packages — each independently buildable and runnable
server/     Express bridge (port 3002) — proxies calls from the UI to MCP servers
client/     React 19 showcase SPA — tool catalog, workflow demos, animated flowcharts

Tools

All 9 tools are production-ready: built, tested, and CI-verified on Node 20 + 22.

ToolWhat it doesMCP tools exposed
component-factoryScaffold React components from 41 shadcn/ui templates — with tests + Storybook6
code-modernizerAST-based JS/JSX → TypeScript conversion, PropTypes → interfaces1
quality-pipeline5-stage audit (tests · types · perf · a11y · design tokens) graded A–F2
json-viewerGenerate an interactive HTML JSON viewer — collapsible, searchable, dark/light3
dep-auditorUnused deps, duplicate versions, circular imports, bundle impact analysis4
accessibility-checkerWCAG 2.1 audit — alt text, label associations, ARIA roles, keyboard navigation3
generate-testsAnalyze a TypeScript/React source file and generate a Vitest test suite2
typescript-enforcerScan for any types, unsafe casts, missing modifiers — 7 rules, scored 0–104
monorepo-managerWorkspace listing, dependency graph, health check, shared dep finder6

Roadmap

ToolDescriptionStatus
render-analyzerReact render profiling — detect unnecessary renders, missing memo📋 Planned
storybook-generatorAuto-generate Storybook stories for existing components📋 Planned
legacy-analyzerTech debt detection — anti-patterns, duplication, refactor plans📋 Planned
test-gap-analyzerFind unimplemented functions, uncovered branches, missing edge cases📋 Planned
performance-auditBundle size analysis, memory leaks, slow component detection📋 Planned
lighthouse-runnerWeb Vitals / Lighthouse audit via CLI📋 Planned
component-reviewerAudit TypeScript errors, test coverage gaps, a11y issues📋 Planned
component-fixerAuto-fix broken imports, missing dependencies, export corrections📋 Planned

Want to implement one of these? See CONTRIBUTING.md.

Automation workflows

1 · Code Modernization

legacy-analyzer → code-modernizer → typescript-enforcer → generate-tests

Migrate a JS codebase to strict TypeScript with auto-generated test coverage.

2 · Dependency Health

dep-auditor [unused] → dep-auditor [duplicates] → dep-auditor [bundle-impact] → monorepo-manager

Audit and clean up a monorepo's dependency graph end-to-end.

3 · Component Pipeline

component-factory → accessibility-checker → quality-pipeline

Generate a production-ready component and verify it before shipping.

4 · Quality Audit

accessibility-checker → typescript-enforcer → quality-pipeline

Full code quality check — WCAG compliance, type safety score, overall grade.

How MCP works

Claude Desktop / Cline / Cursor
        │
        │ JSON-RPC over stdio
        ▼
   MCP Server (e.g. typescript-enforcer)
        │
        ▼
   Tool handlers (your code)

Each server in this repo extends McpServerBase from tools/shared/ — an abstract class that handles transport, routing, and error formatting. Adding a new tool is ~50 lines.

import { McpServerBase } from '@mcp-showcase/shared';

class MyTool extends McpServerBase {
  constructor() {
    super({ name: 'my-tool', version: '1.0.0' });
  }

  protected registerTools(): void {
    this.addTool('do_thing', 'Does a thing', {
      type: 'object',
      properties: { path: { type: 'string', description: 'Target path' } },
      required: ['path'],
    }, async (args) => {
      const { path } = args as { path: string };
      return this.success({ result: `Processed ${path}` });
    });
  }
}

new MyTool().run();

Run locally

git clone https://github.com/Nishant-Chaudhary5338/mcp-toolkit.git
cd mcp-toolkit
npm install
npm run build
npm test          # 134 tests across all 9 tools
npm run dev       # server on :3002, client on :5173

Add to Claude Desktop

// ~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "component-factory": {
      "command": "node",
      "args": ["/path/to/mcp-toolkit/tools/component-factory/build/index.js"]
    },
    "code-modernizer": {
      "command": "node",
      "args": ["/path/to/mcp-toolkit/tools/code-modernizer/build/index.js"]
    },
    "quality-pipeline": {
      "command": "node",
      "args": ["/path/to/mcp-toolkit/tools/quality-pipeline/build/index.js"]
    },
    "json-viewer": {
      "command": "node",
      "args": ["/path/to/mcp-toolkit/tools/json-viewer/build/index.js"]
    },
    "dep-auditor": {
      "command": "node",
      "args": ["/path/to/mcp-toolkit/tools/dep-auditor/build/index.js"]
    },
    "accessibility-checker": {
      "command": "node",
      "args": ["/path/to/mcp-toolkit/tools/accessibility-checker/build/index.js"]
    },
    "generate-tests": {
      "command": "node",
      "args": ["/path/to/mcp-toolkit/tools/generate-tests/build/index.js"]
    },
    "typescript-enforcer": {
      "command": "node",
      "args": ["/path/to/mcp-toolkit/tools/typescript-enforcer/build/index.js"]
    },
    "monorepo-manager": {
      "command": "node",
      "args": ["/path/to/mcp-toolkit/tools/monorepo-manager/build/index.js"]
    }
  }
}

Use as a CLI / in CI

# Scan a file for TypeScript issues
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"scan_file","arguments":{"path":"src/App.tsx"}}}' \
  | node tools/typescript-enforcer/build/index.js

# Run a full WCAG audit
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"check_accessibility","arguments":{"path":"src/components"}}}' \
  | node tools/accessibility-checker/build/index.js

Testing

Each tool has a dedicated test file covering its core logic directly — no MCP transport required.

npm test                                    # all tools
npm run test -w tools/typescript-enforcer  # single tool
ToolTests
json-viewer16
quality-pipeline8
component-factory6
code-modernizer8
dep-auditor15
accessibility-checker15
generate-tests14
typescript-enforcer22
monorepo-manager30

CI runs on every push and PR against Node 20 and 22.

Architecture

tools/
  shared/                McpServerBase, ToolRegistry, shared types
  component-factory/     41 shadcn/ui templates
  code-modernizer/       AST-based TS conversion
  quality-pipeline/      5-stage grading system
  json-viewer/           HTML generation
  dep-auditor/           Dependency graph analysis
  accessibility-checker/ WCAG rule engine (9 rules)
  generate-tests/        Source analyzer + test generator
  typescript-enforcer/   7-rule type safety scanner
  monorepo-manager/      Workspace operations

server/                  Express bridge — spawns tools as child processes
client/                  React 19 SPA — tool catalog and live demos

Contributing

See CONTRIBUTING.md — how to scaffold a new tool, write tests, and open a PR.

Stack

TypeScript strict · Node.js · MCP SDK 1.12 · Vitest · React 19 · Vite · Tailwind CSS · Express

Built by

Nishant Chaudhary — Senior Frontend Engineer
nishantchaudhary.dev@gmail.com

Also see: dashcraft · react-present · ai-builder

MIT License

Keywords

mcp

FAQs

Package last updated on 23 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts