Harmony 2.0 Master Agent - Gemini MCP Server
Click on "Deploy 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
Related MCP server: ohos-mcp-unofficial
đ Prerequisites
Node.js 18+
Gemini API key (free tier available at Google AI Studio)
đ Quick Start
1. Install Dependencies
npm install2. Configure Environment
Copy .env.example to .env and add your Gemini API key:
cp .env.example .envEdit .env:
GEMINI_API_KEY=your_gemini_api_key_here
PORT=30003. Local Development
Run the REST API Server:
npm startThe API will be available at http://localhost:3000
Run the MCP Server (for Cursor):
npm run mcpđ§ Cursor Integration
Option 1: Local MCP Server
Add to your Cursor MCP configuration (usually in
~/.cursor/mcp.jsonor Cursor settings):
{
"mcpServers": {
"harmony2-master": {
"command": "node",
"args": ["/absolute/path/to/harmony2-gemini-mcp/src/mcp-server.js"],
"env": {
"GEMINI_API_KEY": "your_gemini_api_key_here"
}
}
}
}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:
npm i -g vercelDeploy:
vercelSet environment variable:
vercel env add GEMINI_API_KEYYour 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:
curl -L https://fly.io/install.sh | shInitialize:
fly launchSet secrets:
fly secrets set GEMINI_API_KEY=your_key_hereDeploy:
fly deployđĄ API Endpoints
Health Check
GET /healthChat with Harmony Agent
POST /api/chat
Body: {
"message": "How do I set up a new Harmony 2.0 project?",
"context": {} // optional
}Analyze Code
POST /api/analyze
Body: {
"code": "your code here",
"language": "javascript" // optional
}Generate Code
POST /api/generate
Body: {
"description": "Create a React component for user authentication",
"componentType": "component" // optional
}Get Guidance
POST /api/guidance
Body: {
"topic": "state management"
}đ ď¸ 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
This server cannot be deployed
Maintenance
Related MCP Connectors
Governance copilot for AI-assisted coding. 72 packs, 532 rules, proof bundles.
Create, edit, preview, and build Flutter apps via FlutterGo.AI cloud MCP (OAuth).
- OolkinOAuthcom.oolkin
AI colleagues that keep your standards, your project and their reasoning between sessions
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Related MCP Servers
- AlicenseCqualityCmaintenanceIntegrates Google's Gemini AI with Claude Code to provide advanced development assistance including code analysis, implementation planning, technical explanations, debugging support, and strategic development guidance.1046 npm7MIT
- FlicenseAqualityDmaintenanceBrings HarmonyOS and OpenHarmony English documentation to AI assistants for instant retrieval and multimodal analysis.33-
- FlicenseAqualityCmaintenanceProvides documentation search, reading, and AI-powered Q\&A for ArkTS/ArkUI development, enabling AI coding assistants to answer questions and retrieve official docs.743-
- FlicenseNot gradedqualityBmaintenanceProvides AI-powered tools for UX/UI review, web component generation, and code refactoring using Google Gemini.-