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
Markdown
# šÆ 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.*