React + TypeScript + Vite
Overview
The mcp-client-server-demo is a minimal setup template for integrating React with TypeScript using Vite, featuring Hot Module Replacement (HMR) and ESLint rules.
To use this template, clone the repository from GitHub, install the necessary dependencies, and start the development server to see the React application in action.
- Minimal setup for React with TypeScript in Vite - Hot Module Replacement for a better development experience - ESLint configuration for code quality and consistency
- Quickly bootstrap a new React project with TypeScript.
- Develop production-ready applications with type-aware linting.
- Experiment with Vite's fast build and development features.
Add to your AI client
Use these steps to connect React + TypeScript + Vite in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-client-server-demo-yuyz0112": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-client-server-demo-yuyz0112"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-client-server-demo-yuyz0112": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-client-server-demo-yuyz0112"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-client-server-demo-yuyz0112": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-client-server-demo-yuyz0112"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-client-server-demo-yuyz0112": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-client-server-demo-yuyz0112"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-client-server-demo-yuyz0112": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-client-server-demo-yuyz0112"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-client-server-demo-yuyz0112": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-client-server-demo-yuyz0112"
]
}
}
}FAQ
Is this template suitable for production applications?
Yes! It is designed to be a starting point for production applications with recommended ESLint configurations.
What are the official plugins included?
The template includes plugins for React using Babel and SWC for Fast Refresh.
How can I customize the ESLint configuration?
You can expand the ESLint configuration by updating the parser options and adding recommended rules as described in the documentation.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1488,"uuid":"46202ab7-2dd5-4dfa-bf58-ab1d85e8bf2e","name":"mcp-client-server-demo","title":"React + TypeScript + Vite","description":null,"avatar_url":"https://avatars.githubusercontent.com/u/13651389?v=4","created_at":"2025-02-20T16:03:34.430Z","updated_at":"2025-02-23T07:13:14.821Z","status":"created","author_name":"Yuyz0112","author_avatar_url":"https://avatars.githubusercontent.com/u/13651389?v=4","tags":"react,typescript,vite,demo,template","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/Yuyz0112/mcp-client-server-demo","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]