DP

debilla/platform-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

2 stars 6 forks 质量 78 趋势 12MIT

只读 GCP 平台- 引擎 MCP 服务器, 用于事件调试、 资源目录和成本优化

概览

mcp-名称:io.github.de Billa/平面-mcp 一个模型背景协议服务器,将一个AI代理(Claude Code,Claude Desktop,或任何MCP客户端)变成GCP平台工程师. 指向您的Google Cloud项目,要求它调查事件,清点盘点,以及表面成本优化机会——都没有任何能力改变你的基础设施. 此服务器中没有工具可变 。 与仅取景者身份(下)相结合,这给你一个坚硬的,防守深入的保证,即一个特工可以外观而永远不能触摸. - "在过去24小时内什么是最高错误组,哪个是最新错误" - "哪个GKE节点池被超额提供? 显示对机器类型的 CPU 。 - "我在哪里可以减少在这个计划中的开支?" 一个服务器可以到达几个项目. 在 PLATFORM MCP ENVIRONMES 下定义它们(参见配置),代理从您提示的措辞中选择一个: - "最后一小时有什么错误?" - *"比较云" 运行服务在 .

概述(AI 翻译)

mcp-名称:io.github.de Billa/平面-mcp

一个**只读 ** 模式上下文协议服务器,将一个AI代理(Claude Code, Claude Desktop,或任何MCP客户端)变成GCP平台工程师. 指向您的Google Cloud项目,要求它调查事件,清点盘点,以及表面成本优化机会——都没有任何能力改变你的基础设施.

** 只表示意见。 ** 此服务器中没有工具可变 。 与仅取景者身份(下)相结合,这给你一个坚硬的,防守深入的保证,即一个特工可以外观而永远不能触摸.

∮它能做什么∮

区域 工具 | – – – – – – – ** 环境**
** ** 记录和出错**

  • ** 计量和提醒**
    ** ** 费用和建议** ** [[T7]、[T8]、[T9]、list_recommendations ** 资源清单** [[T11]、[T12]、[T13]、[T14]、[T15]]

典型的提示一旦连接:

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

platform-mcp

mcp-name: io.github.deBilla/platform-mcp

A read-only Model Context Protocol server that turns an AI agent (Claude Code, Claude Desktop, or any MCP client) into a GCP platform engineer. Point it at your Google Cloud projects and ask it to investigate incidents, take inventory, and surface cost-optimization opportunities — all without any ability to change your infrastructure.

Observation only. No tool in this server mutates state. Combined with a viewer-only identity (below), that gives you a hard, defense-in-depth guarantee that an agent can look but never touch.

What it can do

Area Tools
Environments list_environments
Logs & errors query_logs, get_recent_errors, list_error_groups
Metrics & alerting query_metric, list_alert_policies, list_uptime_checks
Cost & recommendations get_cost_breakdown, get_billing_info, list_cost_recommendations, list_recommendations
Resource inventory search_assets, list_compute_instances, list_cloud_run_services, list_gke_clusters, list_sql_instances

Typical prompts once it’s connected:

  • “What are the top error groups in the last 24 hours, and which one is newest?”
  • “Which GKE node pools are over-provisioned? Show mean CPU against machine type.”
  • “Where can I reduce spend in this project?”

Multiple environments

One server can reach several projects. Define them under PLATFORM_MCP_ENVIRONMENTS (see Configuration) and the agent picks one from the wording of your prompt:

  • “Any errors in staging in the last hour?”
  • “Compare Cloud Run services between staging and prod.”

Every tool takes an optional environment argument. Omit it and the default environment is used; pass environment="production" to target another. Names, any aliases you define, common shorthands (prod, stg, qa, …) and bare project ids all resolve. An unrecognized name is an error listing the valid options — a typo can never silently retarget the wrong project.

Each environment carries its own service account, so staging and production are reached through separate identities from the same process, and every result echoes back the environment and project it came from.

Requirements

  • Python 3.11+
  • A Google Cloud project and credentials (your own login, or a service account)
  • The gcloud CLI for the one-time setup

Install

uvx platform-mcp          # no install step; uv fetches it on demand
pipx install platform-mcp # or keep it on PATH

From a checkout, for development:

git clone https://github.com/deBilla/platform-mcp.git
cd platform-mcp
python3 -m venv .venv
./.venv/bin/pip install -e ".[dev]"

Check your setup

platform-mcp doctor
在 GitHub 查看完整 README

安装

uvx platform-mcp # no install step; uv fetches it on demand
新手?先看 mcpskill.org 教程 →

配置

{ "preferences": { "...": "your existing settings, left alone" }, "mcpServers": { "platform-mcp": { "command": "/Users/YOU/.local/bin/uvx", "args": ["platform-mcp@latest"] } } }