react-ts-dev-tools
An MCP server that provides tools for React and TypeScript development, including generating typed form components, explaining TypeScript compiler errors, and producing Shadcn UI installation commands.
README
mcp-dev-tools
An MCP (Model Context Protocol) server that provides AI assistants with tools for React and TypeScript development. It can generate typed form components, explain TypeScript compiler errors, and produce Shadcn UI installation commands.
Tools
generate_react_form
Generates a fully typed React form component using React Hook Form, Zod, and Shadcn UI. The output is ready to drop into a Next.js or Vite project.
| Parameter | Type | Required | Description |
|---|---|---|---|
formName |
string |
✓ | Component name, e.g. UserLoginForm |
fields |
Field[] |
✓ | Array of form field definitions (see below) |
Field object:
| Property | Type | Required | Description |
|---|---|---|---|
name |
string |
✓ | Key used in form state |
label |
string |
✓ | Human-readable label |
type |
"text" | "email" | "password" | "number" | "select" | "checkbox" |
✓ | Input type |
placeholder |
string |
— | Placeholder text |
description |
string |
— | Helper text shown below the input |
required |
boolean |
— | Defaults to true |
options |
string[] |
— | Options list for select type |
The generated component includes: a Zod schema, inferred TypeScript types, proper default values, and only imports the Shadcn primitives it actually uses.
explain_typescript_error
Analyzes a TypeScript compiler error and returns a structured explanation with recommended fixes.
| Parameter | Type | Required | Description |
|---|---|---|---|
errorMessage |
string |
✓ | Raw TypeScript error output or error code |
codeContext |
string |
— | The problematic code block for additional context |
Handles TS2322 (type mismatch), TS2339 (missing property), TS2531 / TS18048 (null / undefined), and general diagnostics.
get_shadcn_install_command
Generates the exact Shadcn CLI command to install a set of UI components, always including the required form and button primitives.
| Parameter | Type | Required | Description |
|---|---|---|---|
components |
Array<"form" | "input" | "select" | "checkbox" | "button" | "textarea" | "card" | "dialog"> |
✓ | Components to install |
packageManager |
"npm" | "pnpm" | "bun" | "yarn" |
— | Defaults to "npm" |
Requirements
- Node.js 18+
- npm / pnpm / bun / yarn
Installation
npm install
Usage
Development (run without compiling)
npm run dev
Production
npm run build
npm start
MCP Inspector (interactive debugging)
npm run inspector
Connecting to an MCP client
Add the following to your MCP client configuration (e.g. Claude Desktop's claude_desktop_config.json):
{
"mcpServers": {
"react-ts-dev-tools": {
"command": "node",
"args": ["/absolute/path/to/mcp-dev-tools/build/index.js"]
}
}
}
Or, if installed globally via npm:
{
"mcpServers": {
"react-ts-dev-tools": {
"command": "mcp-dev-tools"
}
}
}
Project structure
mcp-dev-tools/
├── src/
│ ├── index.ts # Server entry point — registers all tools
│ └── tools/
│ ├── formGenerator.ts # generate_react_form
│ ├── tsExplainer.ts # explain_typescript_error
│ └── shadcnInstaller.ts # get_shadcn_install_command
├── build/ # Compiled output (generated by tsc)
├── package.json
└── tsconfig.json
Tech stack
| Package | Version | Role |
|---|---|---|
@modelcontextprotocol/sdk |
^1.29.0 | MCP server framework |
zod |
^4.4.3 | Schema validation & parameter definitions |
typescript |
^7.0.2 | Type safety |
tsx |
^4.23.1 | Zero-config TypeScript runner (dev) |
| #� �y�p�e�S�c�r�i�p�t�-�D�e�v�e�l�o�p�e�r�-�M�C�P�-�S�e�r�v�e�r� | ||
| � | ||
| � |
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。