MCP ExplorerExplorer

Android Studio Mcp Server

@muxi1998on a year ago
8 MIT
FreeCommunity
AI Systems
android-studio-mcp-server 使 Android Studio 实现 AI 聊天集成,允许开发者通过自然语言与项目互动。主要功能包括询问代码问题、请求修改、生成代码组件和调试应用程序,提高开发效率和生产力。

Overview

What is Android Studio Mcp Server

The android-studio-mcp-server is a plugin that integrates AI chat capabilities into Android Studio, enabling developers to interact with their code and projects using natural language.

Use cases

Use cases include asking for code explanations, generating new code snippets, debugging existing applications, and requesting modifications to improve code quality.

How to use

To use android-studio-mcp-server, install the MCP Server plugin in Android Studio, configure the client in Cursor IDE, and connect both applications to the same project. Developers can then use the chat interface in Cursor to ask questions and interact with their Android Studio project.

Key features

Key features include the ability to ask questions about Android code, request code modifications and refactoring, get explanations of Android concepts, generate new code components, and debug issues in Android applications.

Where to use

android-studio-mcp-server is primarily used in software development, specifically for Android application development, where developers need to enhance their coding efficiency and understanding of Android-specific concepts.

Content

Android Studio AI Chat Integration

This repository provides instructions for setting up AI chat capabilities with Android Studio, allowing developers to interact with their code and projects using natural language.

Overview

By connecting Android Studio to an AI chat interface through the MCP Server plugin, developers can:

  • Ask questions about their Android code
  • Request code modifications and refactoring
  • Get explanations of Android-specific concepts
  • Generate new code components
  • Debug issues in Android applications

Prerequisites

  • Android Studio installed on your computer
  • Cursor IDE installed (for client communication)

Installation

Step 1: Install the MCP Server Plugin for JetBrains

  1. Open Android Studio
  2. Go to Settings/PreferencesPluginsMarketplace
  3. Search for “MCP Server”
  4. Click Install on the plugin titled “MCP Server” (plugin ID: 26071)
  5. Restart Android Studio when prompted

Step 2: Configure the Client in Cursor

  1. Open Cursor and access settings:

    • For Mac: Press Cmd+, or go to CursorPreferences
    • For Windows/Linux: Press Ctrl+, or go to FilePreferences
  2. Navigate to the AI settings section and enable “JetBrains Integration”

  3. Configure your settings:

    {
      "mcpServers": {
        "jetbrains": {
          "command": "npx",
          "args": [
            "-y",
            "@jetbrains/mcp-proxy"
          ]
        }
      }
    }
  4. If you’re running multiple IDEs and want to connect to a specific one, add:

  5. Save your settings and restart Cursor

Usage

  1. Open Android Studio and load your project
  2. Open Cursor and connect to the same project
  3. In Cursor, use the built-in chat to interact with your Android Studio project

Troubleshooting

  • Connection Issues: Ensure Android Studio is running before attempting to connect from Cursor
  • Plugin Not Found: Verify you’re using a compatible version of Android Studio
  • Multiple IDEs: If you have multiple JetBrains IDEs running, specify the IDE_PORT in your configuration
  • Permission Issues: Some operations may require explicit permissions in Android Studio

Advanced Configuration

To enable logging for debugging purposes:

To connect to IDE on a different address/host:

Resources

License

This project is licensed under the terms specified in the repository.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers