Skip to content

使用 AI 辅助编程

你可以使用 AI 编程助手通过 Agent Development Kit (ADK) 构建智能体。通过在项目中安装开发技能(Skills),或通过 MCP 服务器将编程工具连接到 ADK 文档,为你的编程智能体赋予 ADK 专业知识。

ADK 开发技能 (Skills)

ADK 提供了一套涵盖 API、编程模式、部署和评估的开发 skills。这些技能可以与任何兼容的工具协作,包括 Gemini CLI、Antigravity、Claude Code 和 Cursor。

要在你的项目目录中安装 ADK 开发技能,请运行以下命令:

npx skills add google/adk-docs/skills -y -g

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:

gemini extensions install https://github.com/derailed-dash/adk-docs-ext

Antigravity

To add the ADK docs MCP server to Antigravity (requires uv):

  1. Open the MCP store via the ... (more) menu at the top of the editor's agent panel.
  2. Click on Manage MCP Servers then View raw config.
  3. Add the following to mcp_config.json:

    {
      "mcpServers": {
        "adk-docs-mcp": {
          "command": "uvx",
          "args": [
            "--from",
            "mcpdoc",
            "mcpdoc",
            "--urls",
            "AgentDevelopmentKit:https://adk.wiki/llms.txt",
            "--transport",
            "stdio"
          ]
        }
      }
    }
    

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):

  1. Open Cursor Settings and navigate to the Tools & MCP tab.
  2. Click on New MCP Server, which will open mcp.json for editing.
  3. Add the following to mcp.json:

    {
      "mcpServers": {
        "adk-docs-mcp": {
          "command": "uvx",
          "args": [
            "--from",
            "mcpdoc",
            "mcpdoc",
            "--urls",
            "AgentDevelopmentKit:https://adk.wiki/llms.txt",
            "--transport",
            "stdio"
          ]
        }
      }
    }
    

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