Quick Start
1. Install in Your IDE
For Cursor: Open your Cursor settings file (~/.cursor/settings.json
) and add:
2. Restart Your IDE
Close and reopen your IDE (Cursor, Claude Code, or Windsurf) to activate the MCP server.3. Verify Installation
In any file, type a comment and use your IDE’s AI assistant:4. Start Using Cedar
Ask the MCP server natural language questions:Key Features
- Intelligent Code Assistance: Context-aware suggestions for Cedar components and patterns
- Documentation Search: Instant access to relevant Cedar documentation
- Component Discovery: Find and implement the right Cedar components
- Voice Integration Support: Specialized assistance for voice features
- Spells Implementation: Expert guidance on Cedar spells
- Mastra Backend Integration: Seamless agent backend connections
Common Usage Patterns
Component Implementation
Documentation Queries
Integration Tasks
Advanced Features
Contextual Awareness
The MCP server understands:- Your project structure and existing Cedar components
- Current file context and imports
- Project dependencies and configuration
- Cedar best practices and patterns
Specialized Modules
- Voice Expert: Audio streaming, permissions, WebSocket configuration
- Spells Expert: Spell creation, activation patterns, gesture handling
- Mastra Expert: Agent connections, workflow setup, backend integration
- Chat Expert: Message handling, streaming, custom rendering
Common Workflows
Setting Up a New Project
- Initialize Cedar:
"Set up a new Cedar project with TypeScript"
- Add chat:
"Add Cedar chat components to my app"
- Configure backend:
"Connect to my Mastra agent backend"
- Add voice:
"Implement voice capabilities"
Building Features
- Start simple:
"Create a basic chat interface"
- Add interactivity:
"Add mention support to chat"
- Enhance UX:
"Implement message streaming"
- Add AI features:
"Create a questioning spell"
Debugging Issues
"Debug WebSocket connection problems"
"Fix streaming message display"
"Resolve spell activation conflicts"
"Troubleshoot voice permissions"
Best Practices
- Ask Before Building: Query capabilities before implementing
- Use Examples: Request code examples for complex features
- Incremental Development: Build features step by step
- Leverage Search: Use semantic search for documentation
- Validate Code: Ask for best practice reviews
Tips and Tricks
- Auto-imports: MCP knows Cedar import paths
- Pattern Matching: Ask for common Cedar patterns
- Code Review: Request validation of implementations
- Component Discovery: Ask “What Cedar components help with [task]?”
- Quick Fixes: Get immediate solutions for errors
Troubleshooting
MCP Server Not Responding
- Verify configuration in your IDE settings
- Check Node.js is accessible
- Restart your IDE after changes
Incorrect Suggestions
- Provide more project context
- Specify Cedar version
- Include relevant code snippets
Performance Issues
- Clear your IDE cache
- Check internet connection
- Update MCP server version
Prerequisites
- Compatible IDE: Cursor, Claude Code, or Windsurf (latest version)
- Node.js 18+ installed
- Basic TypeScript/React knowledge
- Cedar-OS project or willingness to create one