NK

normaltusker/kotlin-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

31 stars 6 forks 质量 71 趋势 11AGPL-3.0

🧠 Kotlin MCP 服务器用于使用 OpenAI、Gemini 或 OpenRouter 开发 Android 应用。通过 Aider、Gradle 构建/测试集成、Kotlin LSP 和基于 Docker 的可移植性支持人工智能辅助编码。

概览

一个全面的模型上下文协议(MCP)服务器,为AI代理提供基于Kotlin的Android开发项目的企业级访问。该服务器支持上下文感知辅助,支持高级安全、隐私合规、AI集成及综合开发工具。 - : 所有27个工具现均采用具备类似LSP功能的智能代理系统 - : 统一为单kotlin_mcp_server.py并增强架构 - : 归档冗余服务器版本以优化项目结构 - : 通过智能管理系统妥善展示完整工具套件 - : 原生实现与智能代理之间的智能委派 - :单一kotlin_mcp_server。

概述(AI 翻译)

一个全面的模型上下文协议(MCP)服务器,为AI代理提供基于Kotlin的Android开发项目的企业级访问。该服务器支持上下文感知辅助,支持高级安全、隐私合规、AI集成及综合开发工具。


📋 修订历史

版本2.1 (当前 - 2025年8月)

增强版:统一智能服务器

🎯 最新改进

  • ** 🧠 智能工具管理**:所有27个工具现在都使用具备类似LSP功能的智能代理系统
  • ** 🔄 服务器整合**:统一为单一kotlin_mcp_server.py,并增强了架构
  • ** 📁 干净架构**:为更简洁的项目结构,存档冗余服务器版本
  • ** ⚡ 增强工具曝光**:通过智能管理系统正确展示完整工具套件
  • ** 🛠️ 改进工具路由**:原生实现与智能代理之间的智能委托

🔧 建筑变更

  • 统一服务器:单kotlin_mcp_server.py替代多个服务器版本
  • 智能代理系统:未完整实现的工具使用智能代理并增强 AI

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Enterprise Kotlin Android MCP Server

A comprehensive Model Context Protocol (MCP) server that provides AI agents with enterprise-grade access to Kotlin-based Android development projects. This server enables context-aware assistance with advanced security, privacy compliance, AI integration, and comprehensive development tools.


📋 Revision History

Version 2.1 (Current - August 2025)

Enhanced Release: Unified Intelligent Server

🎯 Latest Improvements

  • 🧠 Intelligent Tool Management: All 27 tools now use intelligent proxy system with LSP-like capabilities
  • 🔄 Server Consolidation: Unified into single kotlin_mcp_server.py with enhanced architecture
  • 📁 Clean Architecture: Archived redundant server versions for cleaner project structure
  • ⚡ Enhanced Tool Exposure: Complete tool suite properly exposed through intelligent management system
  • 🛠️ Improved Tool Routing: Smart delegation between native implementations and intelligent proxies

🔧 Architectural Changes

  • Unified Server: Single kotlin_mcp_server.py replaces multiple server versions
  • Intelligent Proxy System: Tools without full implementations use smart proxies with AI enhancement
  • Clean File Structure: Legacy servers archived in archive/legacy-servers/
  • Enhanced Tool Manager: Integration with IntelligentMCPToolManager for advanced capabilities
  • Complete Tool Coverage: All 32 tools properly exposed and functional

📊 Tool Implementation Status

  • Fully Implemented: 6 tools (format_code, run_lint, generate_docs, create_compose_component, setup_mvvm_architecture, security_hardening)
  • Legacy Integration: 3 core tools (create_kotlin_file, gradle_build, analyze_project)
  • Intelligent Proxies: 23 tools with smart fallback implementations
  • Total Available: 32 tools with comprehensive Android development coverage

Version 2.0 (August 2025)

Major Release: AI-Enhanced Modular Architecture

🎯 Key Improvements

  • 🤖 AI Integration: Transformed from template generator to AI-powered development assistant
  • 🏗️ Modular Architecture: Refactored monolithic structure into 6 specialized modules
  • 🌍 Dynamic Configuration: Eliminated all hardcoded paths for cross-platform portability
  • ⚡ Enhanced Tools: Expanded from 30 to 31 tools with AI-enhanced implementations
  • 🛡️ Security Hardening: Added configurable audit trails and compliance monitoring
  • 📦 Zero-Config Setup: Intelligent installer with automatic environment detection

🔧 Technical Changes

  • Modular Design: Split into ai/, android/, gradle/, security/, testing/, utils/ modules
  • AI-Powered Code Generation: Leverages calling LLM for production-ready code (no TODOs)
  • Environment Variable Support: All configurations now use dynamic environment variables
  • Cross-Platform Paths: Universal ~ notation replaces OS-specific hardcoded paths
在 GitHub 查看完整 README

安装

docker run -p 8000:8000 -v $(pwd):/workspace kotlin-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "kotlin-android": { "command": "python", "args": ["/path/to/kotlin-mcp-server/kotlin_mcp_server.py"], "env": { "WORKSPACE_PATH": "/path/to/your/android/project" } } } }