Kotlin Multi-Agent Orchestrator
Enables end-to-end generation, scaffolding, testing, diagnosis, and auditing of Kotlin applications for Android, Compose Multiplatform, Ktor, and Spring Boot through a coordinated team of specialized agents.
README
Kotlin Multi-Agent Orchestrator (MCP Server & Skill)
Enterprise-grade Multi-Agent System & Model Context Protocol (MCP) Server for building production-ready Kotlin apps across Android (Jetpack Compose), Compose Multiplatform (CMP), Ktor Backend, and Spring Boot.
🌟 Key Capabilities & Specialized Agent Team
| Specialized Agent | Role & Tool Name | Key Responsibilities |
|---|---|---|
| 🧩 Prompt Architect | decompose_kotlin_prompt |
Breaks down vague or complex user prompts into structured feature tickets (P0/P1/P2), Clean Architecture modules, and execution sprints. |
| 🌐 Dependency Researcher | research_kotlin_dependencies |
Queries Maven Central, validates Kotlin 2.x K2 compiler compatibility, and generates standard gradle/libs.versions.toml Version Catalogs. |
| 🎨 UI / UX Specialist | design_kotlin_ui |
Generates modern Jetpack Compose / CMP screens with MVI Unidirectional Data Flow, Material 3 theming, animations, and @PreviewLightDark previews. |
| ⚙️ Backend Specialist | scaffold_kotlin_backend |
Scaffolds high-throughput Ktor 3.x / Spring Boot Kotlin backend routes, services, Exposed/Room databases, and Koin DI modules. |
| 🩺 Compiler & Error Doctor | diagnose_kotlin_errors |
Diagnoses Kotlin compiler errors, Gradle sync/build failures, Compose recomposition issues, and Coroutine race conditions with code diffs. |
| 🧪 QA & Test Specialist | generate_and_run_tests |
Generates Unit tests with MockK, Flow/State verification with Turbine, and Compose UI tests with createComposeRule. |
| 🔍 Code Quality Auditor | audit_kotlin_codebase |
Audits Kotlin source code for memory leaks, GlobalScope anti-patterns, and Compose performance bottlenecks. |
| 🚀 Master Orchestrator | orchestrate_kotlin_project |
Coordinates all specialized agents into an automated, end-to-end project generation pipeline. |
⚡ Performance & Design
- Zero-Latency Execution: Built with optimized TypeScript, in-memory caching, and sub-10ms response times.
- Progressive Disclosure: Built-in support for Antigravity progressive loading to keep context windows clean.
- Kotlin 2.x & K2 Ready: Out-of-the-box compatibility with the new official JetBrains Kotlin Compose Compiler plugin and modern Android Gradle Plugin standards.
📦 Installation & Setup
1. Build the MCP Server
git clone https://github.com/peter14l/kotlin-agent-orchestrator.git
cd kotlin-agent-orchestrator
npm install
npm run build
npm test
2. Antigravity CLI Integration
Add the server to your Antigravity configuration (mcp_config.json or .agents/mcp.json):
{
"mcpServers": {
"kotlin-orchestrator": {
"command": "node",
"args": ["C:/Users/LOQ/kotlin-agent-orchestrator/dist/index.js"]
}
}
}
Or copy the skill to your project's .agents/skills/ directory:
mkdir -p .agents/skills/kotlin-orchestrator
cp SKILL.md .agents/skills/kotlin-orchestrator/
3. OpenCode Integration
Add this entry to your OpenCode configuration (~/.config/opencode/config.json or project opencode.json):
{
"mcp": {
"servers": {
"kotlin-orchestrator": {
"command": "node",
"args": ["C:/Users/LOQ/kotlin-agent-orchestrator/dist/index.js"],
"enabled": true
}
}
}
}
🛠️ MCP Tools Overview
1. orchestrate_kotlin_project
Runs the complete multi-agent pipeline from raw prompt to working project structure.
{
"prompt": "Build a real-time crypto portfolio tracker with offline caching and Material 3 UI",
"projectName": "CryptoPortfolio",
"targetPlatform": "android-compose",
"includeUi": true,
"includeBackend": true,
"includeTests": true
}
2. decompose_kotlin_prompt
Deconstructs large or vague requirements into technical specifications.
{
"prompt": "Build an e-commerce checkout flow with cart, discount coupons, and Stripe payment",
"projectName": "ShopCheckout",
"targetPlatform": "android-compose"
}
3. research_kotlin_dependencies
Generates standard Gradle Version Catalogs (libs.versions.toml).
{
"targetPlatform": "android-compose",
"libraries": ["coil", "room", "koin", "ktor"]
}
4. design_kotlin_ui
Generates Jetpack Compose / CMP Composable screens, ViewModels, and Previews.
{
"screenName": "CartScreen",
"targetPlatform": "android-compose",
"layoutDescription": "Cart items list with quantity controls, promo code field, and total price checkout bar."
}
5. scaffold_kotlin_backend
Scaffolds Ktor or Spring Boot Kotlin services with repositories and DI.
{
"domainName": "Order",
"backendType": "ktor",
"database": "exposed"
}
6. diagnose_kotlin_errors
Diagnoses compilation errors, Gradle issues, and runtime crashes.
{
"errorMessage": "This version (1.5.14) of the Compose Compiler requires Kotlin version 1.9.24 but you appear to be using Kotlin version 2.1.0"
}
7. generate_and_run_tests
Generates Unit, Turbine Flow, and Compose UI tests.
{
"className": "CartViewModel",
"testType": "viewmodel",
"methodsToTest": ["applyCoupon", "checkout"]
}
8. audit_kotlin_codebase
Reviews Kotlin code for performance, threading, and coroutine anti-patterns.
{
"code": "fun load() { GlobalScope.launch { Thread.sleep(1000) } }",
"fileType": "viewmodel"
}
🧪 Running Tests
npm test
All unit and integration tests execute using Node's native test runner in ~100ms.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。