Thanks to visit codestin.com
Credit goes to github.com

Skip to content

McpSynergy/client

Repository files navigation

McpSynergy Client · GitHub license npm version Ask DeepWiki

English | 简体中文

McpSynergy Client is a solution that implements UI component rendering on the client side based on the MCP protocol. It can render interactive UI components in your intelligent chat box, further enhancing the capabilities of AI assistants.

  • Rapid Development: Fast development experience based on Vite 6, supporting hot updates and instant builds.
  • Type Safety: Complete type support with TypeScript, making development more reliable.
  • Modularity: Monorepo architecture implemented with Turborepo, supporting multi-package management and code sharing.
  • Unified Standards: Code formatting with Prettier ensures consistent code style.
  • Full Stack Solution: Implements frontend and backend hot update mechanisms within Vite plugins, updating configuration files.

Installation

McpSynergy Client supports multiple installation methods:

Quick Start

# Clone the repository
git clone [email protected]:McpSynergy/client.git

# Install dependencies
pnpm install

# Start development server
pnpm dev

Documentation

You can find McpSynergy Client documentation at:

Examples

Here's a simple example:

import { ChatComponent } from "@mcp-synergy/react";

// AI model request
const data = request('url')
const content = data?.content
const meta = data?.meta;
const props = meta?.componentProps;

return <ChatComponent name={meta.toolName} props={props} fallback={<></>} />

This example will render the UI component required by the server-side MCP.

Project Structure

.
├── apps/                # Applications directory
│   └── antd-example/   # Ant Design example application
├── packages/           # Shared packages directory
├── packages-private/   # Private packages directory
└── ...

Tech Stack

  • Framework: React 19
  • Build Tool: Vite 6
  • Language: TypeScript
  • Package Manager: pnpm 7.8.0
  • Monorepo: Turborepo
  • Code Style: Prettier
  • Dependency Management: syncpack

Contributing

We welcome contributions of any kind, including but not limited to:

  • Submitting bug reports
  • Proposing new features
  • Improving documentation
  • Submitting code fixes

Code of Conduct

Please read our Code of Conduct to understand our expected behavior standards.

Contributing Guide

Please read our Contributing Guide to learn how to participate in project development.

Development Process

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

McpSynergy Client is ISC licensed.

Related Links

Releases

No releases published

Packages

No packages published