UNPKG

tremor-ui-mcp-server

Version:

A Model Context Protocol (MCP) server providing AI assistants with access to Tremor UI components, blocks, and templates for React dashboard development

152 lines (119 loc) • 5.13 kB
# šŸŽÆ Tremor UI MCP Server Project Summary ## šŸ“ Project Structure ``` tremor-ui-mcp-server/ ā”œā”€ā”€ šŸ“‚ src/ # Source code │ ā”œā”€ā”€ index.ts # Main MCP server implementation │ ā”œā”€ā”€ services/ # Core services │ │ ā”œā”€ā”€ github.ts # GitHub API integration │ │ └── tremor.ts # Tremor UI component logic │ └── types/ # TypeScript type definitions │ └── index.ts # Component and API types ā”œā”€ā”€ šŸ“‚ tests/ # Test suite │ ā”œā”€ā”€ setup.ts # Jest test configuration │ └── tremor.test.ts # Unit tests ā”œā”€ā”€ šŸ“‚ scripts/ # Utility scripts │ ā”œā”€ā”€ setup.js # Project setup script │ └── test-server.js # MCP server testing script ā”œā”€ā”€ šŸ“‚ examples/ # Usage examples and documentation ā”œā”€ā”€ šŸ“‚ .github/workflows/ # CI/CD configuration ā”œā”€ā”€ šŸ“„ package.json # Project configuration ā”œā”€ā”€ šŸ“„ tsconfig.json # TypeScript configuration ā”œā”€ā”€ šŸ“„ jest.config.js # Jest test configuration ā”œā”€ā”€ šŸ“„ .eslintrc.js # ESLint code quality rules ā”œā”€ā”€ šŸ“„ .prettierrc # Prettier formatting rules ā”œā”€ā”€ šŸ“„ README.md # Main documentation ā”œā”€ā”€ šŸ“„ CONTRIBUTING.md # Contribution guidelines ā”œā”€ā”€ šŸ“„ CHANGELOG.md # Version history └── šŸ“„ LICENSE # MIT license ``` ## ⚔ Quick Start 1. **Setup the project:** ```bash npm run setup ``` 2. **Get a GitHub token** (optional but recommended): - Visit: https://github.com/settings/tokens - Create token with `public_repo` scope - Add to `.env` file or use `--github-api-key` flag 3. **Test the server:** ```bash npm run test:server ``` 4. **Run the server:** ```bash # Basic usage npx @tremor-ui/mcp-server # With GitHub token npx @tremor-ui/mcp-server --github-api-key your_token_here ``` ## šŸ”§ Development Commands | Command | Description | |---------|-------------| | `npm run setup` | Complete project setup | | `npm run build` | Build TypeScript to JavaScript | | `npm run dev` | Start development server with hot reload | | `npm test` | Run unit tests | | `npm run test:watch` | Run tests in watch mode | | `npm run test:coverage` | Run tests with coverage | | `npm run test:server` | Test MCP server integration | | `npm run lint` | Check code quality | | `npm run format` | Format code with Prettier | ## šŸ› ļø MCP Tools Provided The server provides these tools for AI assistants: ### šŸ“¦ Component Tools - `get_component` - Get component source and info - `get_component_demo` - Get usage examples - `list_components` - List all components - `get_component_metadata` - Get props and dependencies ### 🧩 Block Tools - `get_block` - Get dashboard block implementations - `list_blocks` - List all available blocks ### šŸ—ļø Template Tools - `get_template` - Get complete application templates - `list_templates` - List all available templates ### šŸ” Utility Tools - `get_directory_structure` - Explore repository structure ## šŸŽØ Supported Components 35+ Tremor UI components across categories: - **Charts**: AreaChart, BarChart, LineChart, DonutChart - **Layout**: Card, Grid, Flex - **Text**: Metric, Text, Title, Badge, Callout - **Input**: ProgressBar, Button, Select, DatePicker - **Data**: Table, List, Tracker ## šŸ¤– AI Assistant Integration Compatible with: - Claude Desktop - Cursor IDE - VS Code Continue extension - VS Code Claude extension - Continue.dev See `README.md` for detailed configuration instructions. ## šŸ“š Key Files - **`README.md`** - Complete documentation and setup guide - **`CONTRIBUTING.md`** - Development and contribution guidelines - **`examples/README.md`** - Usage examples and prompts - **`CHANGELOG.md`** - Version history and release notes ## šŸš€ Getting Started Tips 1. **For Users**: Start with `npm run setup` and follow the instructions 2. **For Contributors**: Read `CONTRIBUTING.md` for development guidelines 3. **For AI Prompts**: Check `examples/README.md` for effective prompts 4. **For Troubleshooting**: See the troubleshooting section in `README.md` ## šŸ“ˆ Features - āœ… 35+ Tremor UI components with full metadata - āœ… Intelligent demo code generation - āœ… Dashboard blocks and templates - āœ… GitHub API integration with caching - āœ… TypeScript with strict typing - āœ… Comprehensive test suite - āœ… CI/CD with GitHub Actions - āœ… Cross-platform compatibility - āœ… Production-ready error handling ## šŸŽÆ Next Steps After setup: 1. Configure your preferred AI assistant 2. Try the example prompts in `examples/README.md` 3. Start building amazing dashboards with AI assistance! --- **Made with ā¤ļø for the Tremor and AI community** *This MCP server bridges the gap between AI assistants and the beautiful Tremor UI component library, enabling rapid dashboard development with intelligent assistance.*