使用 AI 辅助编程¶
你可以使用 AI 编程助手通过 Agent Development Kit (ADK) 构建智能体。通过在项目中安装开发技能(Skills),或通过 MCP 服务器将编程工具连接到 ADK 文档,为你的编程智能体赋予 ADK 专业知识。
- ADK 开发技能 (Skills):直接在你的项目中安装 ADK 开发技能。
- ADK 文档 MCP 服务器:通过 MCP 服务器将你的编程工具连接到 ADK 文档。
- ADK 文档索引:遵循
llms.txt标准的机器可读文档文件。
ADK 开发技能 (Skills)¶
ADK 提供了一套涵盖 API、编程模式、部署和评估的开发 skills。这些技能可以与任何兼容的工具协作,包括 Gemini CLI、Antigravity、Claude Code 和 Cursor。
要在你的项目目录中安装 ADK 开发技能,请运行以下命令:
Browse the ADK Dev Skills on GitHub, which include:
| Skill | Description |
|---|---|
adk-cheatsheet |
Python API quick reference and docs index |
adk-deploy-guide |
Agent Engine and Cloud Run deployment |
adk-dev-guide |
Development lifecycle and coding guidelines |
adk-eval-guide |
Evaluation methodology and scoring |
adk-observability-guide |
Tracing, logging, and integrations |
adk-scaffold |
Project scaffolding |
ADK Docs MCP Server¶
You can configure your coding tool to search and read ADK documentation using an MCP server. Below are setup instructions for popular tools.
Gemini CLI¶
To add the ADK docs MCP server to Gemini CLI, install the ADK Docs Extension:
Antigravity¶
To add the ADK docs MCP server to Antigravity
(requires uv):
- Open the MCP store via the ... (more) menu at the top of the editor's agent panel.
- Click on Manage MCP Servers then View raw config.
-
Add the following to
mcp_config.json:
Claude Code¶
To add the ADK docs MCP server to Claude Code:
claude mcp add adk-docs --transport stdio -- uvx --from mcpdoc mcpdoc --urls AgentDevelopmentKit:https://adk.wiki/llms.txt --transport stdio
Cursor¶
To add the ADK docs MCP server to Cursor (requires
uv):
- Open Cursor Settings and navigate to the Tools & MCP tab.
- Click on New MCP Server, which will open
mcp.jsonfor editing. -
Add the following to
mcp.json:
Other Tools¶
Any coding tool that supports MCP servers can use the same server configuration shown above. Adapt the JSON example from the Antigravity or Cursor sections for your tool's MCP settings.
ADK Docs Index¶
The ADK documentation is available as machine-readable files following the
llms.txt standard. These files are generated with
every documentation update and are always up to date.
| File | Description | URL |
|---|---|---|
llms.txt |
Documentation index with links | google.github.io/adk-docs/llms.txt |
llms-full.txt |
Full documentation in a single file | google.github.io/adk-docs/llms-full.txt |