이 파일에 나열해야 하는 정확한 command 및 args은 통합하려는 MCP 서버의 문서를 참고하세요. MCP 서버의 소프트웨어 요구사항에 따라 Node.js 또는 Docker와 같은 도구를 설치해야 할 수도 있습니다.
제한사항
Android 스튜디오의 MCP 통합에는 몇 가지 중요한 제한사항이 있습니다.
MCP 서버는 stdio 전송을 구현해야 합니다.
다음 기능은 아직 지원되지 않습니다.
스트리밍 HTTP 전송
MCP 리소스
프롬프트 템플릿
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-08-21(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-08-21(UTC)"],[],[],null,["# Add an MCP server\n\nGemini in Android Studio's agent can interact with external tools using the\n[Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction).\nThis feature provides a standardized way for Agent mode to use tools and extend\nknowledge and capabilities with the external environment.\n\nThere are many tools you can connect to the MCP Host in Android Studio. For\nexample, you can integrate with the\n[GitHub MCP Server](https://github.com/github/github-mcp-server) to\ncreate pull requests directly from Android Studio. For more ideas, see the\n[MCP example servers](https://modelcontextprotocol.io/examples).\n\nTo add an MCP server, create a `mcp.json` file and place it in the\n[configuration directory](/studio/troubleshoot#directories) of Studio. The\n`mcp.json` file should follow this format: \n\n {\n \"mcpServers\": {\n \"memory\": {\n \"command\": \"npx\",\n \"args\": [\n \"-y\",\n \"@modelcontextprotocol/server-memory\"\n ]\n },\n \"sequential-thinking\": {\n \"command\": \"npx\",\n \"args\": [\n \"-y\",\n \"@modelcontextprotocol/server-sequential-thinking\"\n ]\n },\n \"github\": {\n \"command\": \"docker\",\n \"args\": [\n \"run\",\n \"-i\",\n \"--rm\",\n \"-e\",\n \"GITHUB_PERSONAL_ACCESS_TOKEN\",\n \"ghcr.io/github/github-mcp-server\"\n ],\n \"env\": {\n \"GITHUB_PERSONAL_ACCESS_TOKEN\": \"\u003cYOUR_TOKEN\u003e\"\n }\n }\n }\n }\n\n| **Note:** Make sure that MCP servers are enabled in settings: **Tools \\\u003e Gemini \\\u003e MCP Servers**\n\nRefer to the documentation for the MCP server you're integrating with for the\nprecise `command` and `args` that you should list in this file. You might also\nneed to install tools such as Node.js or Docker, depending on the MCP server's\nsoftware requirements.\n\nLimitations\n-----------\n\nThere are a few important limitations to Android Studio's MCP integration:\n\n- MCP servers must implement the *stdio* transport.\n- The following functionalities aren't yet supported:\n - Streaming HTTP transport\n - MCP resources\n - Prompt templates"]]