关于 Google Agent Platform Docs
Google Agent Platform Docs 为 AI Agent 和助手提供 Gemini Enterprise Agent Platform 及旧版 Vertex AI Generative AI 文档。支持全文搜索和按需获取页面。
主要功能
- 01搜索 3,400 多篇文档
- 02按需获取并缓存页面
- 03浏览 GEAP 和 Vertex AI 文档
- 04列出可用模型
适用场景
- 01查询平台 API 详情
- 02获取 Agent 工作流文档
MCP 相关
向 MCP 客户端提供文档搜索、页面获取、章节浏览和模型列表工具。
配置
本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。
工具
还没有获取到工具列表
本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。
详细介绍
mcp-google-agent-platform-docs
为 AI Agent 提供 Google AI 平台文档的 MCP 服务。
这是什么?
一个 MCP(Model Context Protocol) 服务,可让 AI Agent 直接访问 Google AI 平台文档,包括当前的 Gemini Enterprise Agent Platform (GEAP) 和旧版 Vertex AI Generative AI 文档。
AI 助手无需臆测 API 详情,即可实时查阅实际文档。
功能
- 🔍 全文搜索:搜索 3400 多个文档页面
- 📄 按需获取:根据需要下载并缓存页面
- 🗂️ 双来源:当前的 GEAP 和旧版 Vertex AI 文档
- ⚡ 智能缓存:TTL 为 72 小时,网络错误时回退到过期缓存
- 🗺️ 自动发现:通过站点地图扫描发现新页面(每周)
- 🧩 即插即用:适用于 Claude Desktop、Cursor、VS Code 及任何 MCP 客户端
快速开始
安装
# Using pip
pip install mcp-google-agent-platform-docs
# Using uv (recommended)
uv pip install mcp-google-agent-platform-docs
配置 Claude Desktop
将以下内容添加到 claude_desktop_config.json:
{
"mcpServers": {
"google-agent-platform-docs": {
"command": "mcp-google-agent-platform-docs"
}
}
}
配置 Antigravity (Google)
将以下内容添加到 ~/.gemini/antigravity/mcp_config.json:
{
"mcpServers": {
"google-agent-platform-docs": {
"command": "uv",
"args": [
"--directory",
"/path/to/mcp-google-agent-platform-docs",
"run",
"mcp-google-agent-platform-docs"
]
}
}
}
配置 Cursor / VS Code
将以下内容添加到 MCP 设置中:
{
"mcpServers": {
"google-agent-platform-docs": {
"command": "mcp-google-agent-platform-docs",
"transport": "stdio"
}
}
}
工具
search_docs
按关键词搜索文档。
search_docs("Memory Bank setup", source="geap")
search_docs("function calling", source="vertex-ai")
get_doc
获取指定页面的完整内容。
get_doc("scale/memory-bank/setup", source="geap")
get_doc("multimodal/function-calling", source="vertex-ai")
list_sections
浏览文档结构。
list_sections(source="geap")
list_models
快速查阅所有可用 AI 模型(Gemini、Imagen、Veo、Claude 等)。
list_models()
文档来源
| 来源 ID | 平台 | 页面数 | 状态 |
|---|---|---|---|
geap | Gemini Enterprise Agent Platform | 2300+ | 主要(当前) |
vertex-ai | Vertex AI Generative AI | 1100+ | 旧版(归档) |
GEAP 版块
- Agent Studio — 可视化 Agent 构建器
- Agents → Build — 运行时、ADK、Agent Garden、RAG Engine
- Agents → Scale — 会话、Memory Bank、代码执行
- Agents → Govern — 策略、Agent Gateway、Model Armor
- Agents → Optimize — 可观测性、评估、质量警报
- Models — Gemini、Imagen、Veo、Lyria、合作伙伴、开放模型
- Notebooks — Jupyter 教程
配置
用于自定义的环境变量:
| 变量 | 默认值 | 描述 |
|---|---|---|
MCP_DOCS_CACHE_DIR | ~/.cache/mcp-google-agent-platform-docs | 缓存目录 |
MCP_DOCS_CONTENT_TTL | 72 | 页面缓存 TTL(小时) |
MCP_DOCS_STRUCTURE_TTL | 7 | 结构缓存 TTL(天) |
MCP_DOCS_DEFAULT_SOURCE | geap | 默认文档来源 |
MCP_DOCS_HTTP_TIMEOUT | 30 | HTTP 超时(秒) |
开发
# Clone
git clone https://github.com/OpenGerwin/mcp-google-agent-platform-docs.git
cd mcp-google-agent-platform-docs
# Install dependencies
uv sync
# Run server locally
uv run mcp-google-agent-platform-docs
# Test with MCP Inspector
uv run mcp dev src/mcp_google_agent_platform_docs/server.py
架构
mcp-google-agent-platform-docs/
├── sources/ # YAML source configurations
│ ├── geap.yaml # GEAP (primary)
│ └── vertex-ai.yaml # Vertex AI (legacy)
├── src/mcp_google_agent_platform_docs/
│ ├── server.py # FastMCP server + 4 tools
│ ├── source.py # Source model (YAML loader)
│ ├── fetcher.py # HTML → Markdown converter
│ ├── cache.py # TTL cache manager
│ ├── discovery.py # Sitemap-based page discovery
│ ├── search.py # TF-IDF search engine
│ └── config.py # Global configuration
└── tests/
许可证
MIT — 参见 LICENSE。
评论
支持 Markdown
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。