mcp-chat-demo
This project is a sample chat application demonstrating integration with Model Context Protocol (MCP) servers. It provides a real-time chat interface and features such as message history and error handling. Built with React and TypeScript, it serves as a good starting point for developers looking to leverage MCP.
GitHub Stars
1
User Rating
Not Rated
Favorites
0
Views
24
Forks
1
Issues
1
MCP Chat Demo
A sample chat application demonstrating integration with Model Context Protocol (MCP) servers.
Project Structure
mcp-chat-demo/
├── package.json
├── README.md
├── .gitignore
├── src/
│ ├── App.tsx
│ ├── main.tsx
│ ├── components/
│ │ ├── Chat.tsx
│ │ ├── MessageList.tsx
│ │ ├── MessageInput.tsx
│ │ └── MCPConnection.tsx
│ ├── lib/
│ │ ├── mcp-client.ts
│ │ └── types.ts
│ └── styles/
│ └── main.css
└── public/
└── index.html
Setup Instructions
- Clone the repository:
git clone https://github.com/yourusername/mcp-chat-demo.git
cd mcp-chat-demo
- Install dependencies:
npm install
- Start the development server:
npm run dev
Features
- Connect to local or remote MCP servers
- Real-time chat interface
- Support for MCP tools and resources
- Message history
- Error handling and reconnection logic
Technology Stack
- React 18
- TypeScript
- Vite
- TailwindCSS
- MCP TypeScript SDK
1
Followers
9
Repositories
0
Gists
0
Total Contributions
🤩 Easy-to-use global IM bot platform designed for the LLM era / 简单易用的大模型即时通信机器人开发平台 ⚡️ Bots for QQ / QQ频道 / Discord / WeChat(微信)/ Telegram / 飞书 / 钉钉 / Slack 🧩 Integrated with ChatGPT(GPT)、DeepSeek、Dify、n8n、Claude、Google Gemini、xAI、PPIO、Ollama、阿里云百炼、SiliconFlow、Qwen、Moonshot(Kimi K2)、SillyTraven、MCP、WeClone etc. LLM & Agent & RAG