
shariqriazz/vertex-ai-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
shariqriazz/vertex-ai-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/shariqriazz/vertex-ai-mcp-server.
Обзор
shariqriazz/vertex-ai-mcp-server - кандидат на сервер MCP, импортированный из https://github.com/shariqriazz/vertex-ai-mcp-server.
Обзор (машинный перевод)
Этот проект реализует сервер Model Context Protocol (MCP), который предоставляет полный набор инструментов для взаимодействия с моделями Google Cloud Vertex AI Gemini, уделяя особое внимание помощи в кодировании и общему ответу на запросы.
##Безопасность
Этот сервер включает в себя инструменты записи файловой системы и выполнения терминала в дополнение к инструментам моделирования и исследования. Запустите его с выделенным идентификатором с низким уровнем привилегий, ограничьте его файловую систему и доступ к сети и сохраните соответствующие инструменты за явным одобрением. Не рассматривайте запрос подтверждения клиента MCP как авторизацию на стороне сервера.
Чтобы найти компромиссы между реализацией этого проекта и шестью другими общедоступными кодовыми базами MCP, см. Что привело меня к созданию семи MCP-серверов. В статье это хранилище используется в качестве общедоступного инженерного доказательства, но не утверждается, что здесь уже реализован каждый обсуждаемый там производственный контроль.
Особенности
Предоставляет доступ к моделям Vertex AI Gemini с помощью многочисленных инструментов MCP. Поддерживает заземление веб-поиска ([T0]) и прямой ответ на знания ([T1]).
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Vertex AI MCP Server
This project implements a Model Context Protocol (MCP) server that provides a comprehensive suite of tools for interacting with Google Cloud’s Vertex AI Gemini models, focusing on coding assistance and general query answering.
Security boundary
This server includes filesystem write and terminal-execution tools in addition to model and research tools. Run it with a dedicated low-privilege identity, limit its filesystem and network access, and keep consequential tools behind explicit approval. Do not treat an MCP client confirmation prompt as server-side authorization.
For the implementation tradeoffs this project exposed alongside six other public MCP codebases, see What building seven MCP servers taught me about production MCP. The article uses this repository as public engineering evidence; it does not claim that every production control discussed there is already implemented here.
Features
- Provides access to Vertex AI Gemini models via numerous MCP tools.
- Supports web search grounding (
answer_query_websearch) and direct knowledge answering (answer_query_direct). - Configurable model ID, temperature, streaming behavior, max output tokens, and retry settings via environment variables.
- Uses streaming API by default for potentially better responsiveness.
- Includes basic retry logic for transient API errors.
- Minimal safety filters applied (
BLOCK_NONE) to reduce potential blocking (use with caution).
Tools Provided
Query & Generation (AI Focused)
answer_query_websearch: Answers a natural language query using the configured Vertex AI model enhanced with Google Search results.answer_query_direct: Answers a natural language query using only the internal knowledge of the configured Vertex AI model.explain_topic_with_docs: Provides a detailed explanation for a query about a specific software topic by synthesizing information primarily from official documentation found via web search.get_doc_snippets: Provides precise, authoritative code snippets or concise answers for technical queries by searching official documentation.generate_project_guidelines: Generates a structured project guidelines document (Markdown) based on a specified list of technologies (optionally with versions), using web search for best practices.
Research & Analysis Tools
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"vertex-ai-mcp-server": {
"command": "node",
"args": [
"/full/path/to/your/vertex-ai-mcp-server/build/index.js" // Use absolute path or ensure it's relative to where Cline runs node
],
"env": {
// --- General AI Configuration ---
"AI_PROVIDER": "vertex", // "vertex" or "gemini"
// --- Required (Conditional) ---
"GOOGLE_CLOUD_PROJECT": "YOUR_GCP_PROJECT_ID", // Required if AI_PROVIDER="vertex"
// "GEMINI_API_KEY": "YOUR_GEMINI_API_KEY", // Required if AI_PROVIDER="gemini"
// --- Optional Model Selection ---
"VERTEX_MODEL_ID": "gemini-2.5-pro-exp-03-25", // If AI_PROVIDER="vertex" (Example override)
"GEMINI_MODEL_ID": "gemini-2.5-pro-exp-03-25", // If AI_PROVIDER="gemini"
// --- Optional AI Parameters ---
"GOOGLE_CLOUD_LOCATION": "us-central1", // Specific to Vertex AI
"AI_TEMPERATURE": "0.0",
"AI_USE_STREAMING": "true",
"AI_MAX_OUTPUT_TOKENS": "65536", // Default from .env.example
"AI_MAX_RETRIES": "3",
"AI_RETRY_DELAY_MS": "1000",
// --- Optional Vertex Authentication ---
// "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/your/service-account-key.json" // If using Service Account Key for Vertex
},
"disabled": false,
"alwaysAllow": [
// Add tool names here
…