
muxi1998/android-studio-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
このリポジトリは、Android StudioでAIチャット機能を設定するための手順を提供し、開発者は自然言語を使用してコードやプロジェクトとやり取りすることができます.
概要
このリポジトリは、Android StudioでAIチャット機能を設定するための手順を提供し、開発者は自然言語を使用してコードやプロジェクトとやり取りすることができます。 Android Studio を MCP Server プラグインを介して AI チャット インターフェイスに接続すると、開発者は次のようにできます。 - 自分の Android コードに関する質問 - リクエストコードの変更と再構築 - Android 固有の概念の説明を入手 - 新しいコードコンポーネントの生成 - Android アプリケーションでのデバッグの問題 - コンピュータにインストールされているAndroid Studio - Cursor IDEをインストール(クライアント通信用) 1。 Android Studio 2を開きます。 → → 3に移動します。 「MCP Server」4を検索します。 「MCP Server」というプラグインをクリックします(プラグインID:26071) 5. プロンプトが表示されたときにAndroid Studioを再起動します 1。 Cursorを開き、設定にアクセス: - Macの場合:Cmd +を押し、または→に移動 - Windows / Linuxの場合:Ctrl +を押し、または→に移動します 2. AI設定セクションに移動し、「JetBrains Integration」を有効にします。 4.
概要(AI 翻訳)
このリポジトリは、Android StudioでAIチャット機能を設定するための手順を提供し、開発者は自然言語を使用してコードやプロジェクトとやり取りすることができます。
概要
Android StudioをMCP Serverプラグインを介してAIチャットインターフェイスに接続すると、開発者は次のようにできます。
- Androidコードに関する質問
- リクエストコードの変更と再構築
- Android固有の概念の説明を取得します
- 新しいコードコンポーネントを生成する
- Androidアプリケーションでのデバッグの問題
前提条件
- お使いのコンピュータにAndroid Studioをインストール
- Cursor IDEをインストール(クライアント通信用)
インストール
ステップ1: JetBrains 用の MCP Server プラグインをインストールする
1。 Android Studioを開く 2。 設定/環境 → プラグイン → マーケットプレイスに行く 3. 「MCPサーバー」で検索 4. 「MCP Server」というプラグインで「Install」をクリック(プラグインID:26071) 5. プロンプトが表示されたときにAndroid Studioを再起動する
ステップ2: Cursorでクライアントを構成する
1。 Cursorを開き、設定にアクセスします。
- Macの場合: [
Cmd+,を押すか、Cursor → Preferencesに行く - Windows/Linux の場合: [
Ctrl+,] を押すか、[File**] → [Preferences** に移動します。
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
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
- Open Android Studio
- Go to Settings/Preferences → Plugins → Marketplace
- Search for “MCP Server”
- Click Install on the plugin titled “MCP Server” (plugin ID: 26071)
- Restart Android Studio when prompted
Step 2: Configure the Client in Cursor
-
Open Cursor and access settings:
- For Mac: Press
Cmd+,or go to Cursor → Preferences - For Windows/Linux: Press
Ctrl+,or go to File → Preferences
- For Mac: Press
-
Navigate to the AI settings section and enable “JetBrains Integration”
-
Configure your settings:
{ "mcpServers": { "jetbrains": { "command": "npx", "args": ["-y", "@jetbrains/mcp-proxy"] } } } -
If you’re running multiple IDEs and want to connect to a specific one, add:
"env": { "IDE_PORT": "" } -
Save your settings and restart Cursor
Usage
- Open Android Studio and load your project
- Open Cursor and connect to the same project
- 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:
"env": {
"LOG_ENABLED": "true"
}
To connect to IDE on a different address/host:
"env": {
"HOST": ""
}
Resources
- MCP Server Plugin: https://plugins.jetbrains.com/plugin/26071-mcp-server
- MCP JetBrains Repository: https://github.com/JetBrains/mcp-jetbrains
License
This project is licensed under the terms specified in the repository.
インストール
npx -y @jetbrains/mcp-proxy設定
{
"mcpServers": {
"jetbrains": {
"command": "npx",
"args": ["-y", "@jetbrains/mcp-proxy"]
}
}
}