Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Harmony 2.0 Master Agent - Gemini MCP ServerHow do I implement state management in a new Harmony 2.0 project?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Harmony 2.0 Master Agent - Gemini MCP Server
A powerful Gemini-powered agent that serves as the master guide for Harmony 2.0 development, accessible via Model Context Protocol (MCP) for Cursor and other MCP-compatible tools.
π Features
Harmony 2.0 Expert: Deep knowledge of Harmony 2.0 architecture, patterns, and best practices
MCP Integration: Full Model Context Protocol support for Cursor and other tools
Free Tier Compatible: Designed to run on free-tier hosting services
Multiple Interfaces:
MCP server for Cursor integration
REST API for external access
Direct programmatic access
π Prerequisites
Node.js 18+
Gemini API key (free tier available at Google AI Studio)
π Quick Start
1. Install Dependencies
2. Configure Environment
Copy .env.example to .env and add your Gemini API key:
Edit .env:
3. Local Development
Run the REST API Server:
The API will be available at http://localhost:3000
Run the MCP Server (for Cursor):
π§ Cursor Integration
Option 1: Local MCP Server
Add to your Cursor MCP configuration (usually in
~/.cursor/mcp.jsonor Cursor settings):
Restart Cursor
The Harmony 2.0 tools will appear in Cursor's MCP tools section
Option 2: External MCP Server (Recommended for Sharing)
Deploy the server (see Deployment section) and configure Cursor to connect to it.
π Deployment (Free Tier Options)
Option 1: Vercel (Recommended)
Install Vercel CLI:
Deploy:
Set environment variable:
Your API will be available at
https://your-project.vercel.app
Option 2: Render
Create a new Web Service on Render
Connect your GitHub repository
Use these settings:
Build Command:
npm installStart Command:
npm start
Add
GEMINI_API_KEYin Environment VariablesDeploy!
Option 3: Railway
Create a new project on Railway
Connect your GitHub repository
Add
GEMINI_API_KEYenvironment variableDeploy!
Option 4: Fly.io
Install Fly CLI:
Initialize:
Set secrets:
Deploy:
π‘ API Endpoints
Health Check
Chat with Harmony Agent
Analyze Code
Generate Code
Get Guidance
π οΈ MCP Tools
The MCP server exposes these tools:
harmony_chat - Chat with the Harmony 2.0 Master Agent
harmony_analyze_code - Analyze code for Harmony 2.0 compliance
harmony_generate_code - Generate code following Harmony 2.0 patterns
harmony_get_guidance - Get comprehensive guidance on Harmony 2.0 topics
π Harmony 2.0 Resources
π Security Notes
Never commit your
.envfileKeep your Gemini API key secure
For production, use environment variables provided by your hosting platform
Consider rate limiting for public APIs
π Free Tier Limits
Gemini API: Free tier includes generous usage limits
Vercel: 100GB bandwidth/month, unlimited requests
Render: 750 hours/month, 512MB RAM
Railway: $5 free credit/month
Fly.io: 3 shared VMs, 3GB storage
π€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
π License
MIT
π Support
For issues or questions:
Check the Harmony 2.0 documentation
Open an issue on GitHub
Contact the Harmony 2.0 community
Built with β€οΈ for the Harmony 2.0 community