
googlecloudplatform/cloud-run-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Cloud RunにアプリをデプロイするためのMCPサーバー
概要
MCP互換のAIエージェントでCloud Runへのアプリ展開を可能にします。 Gemini CLIやその他のAI搭載CLIエージェントからの展開: Google Gen AI SDKやAgent Development KitのようなエージェントSDKから展開してください。 ここはCloud RunにコードをデプロイするためのMCPサーバーのリポジトリです。Cloud Run上でMCPサーバーの設置方法を学びたい方は、Cloud Runのドキュメントをご覧ください。 - deploy-file-contents:ファイルをCloud Runにデプロイし、その内容を直接提供します。- list-services:特定のプロジェクトと地域におけるCloud Runサービスを一覧化します。- get-service:特定のCloud Runサービスの詳細を取得します。- get-service-log:特定のCloud Runサービスに関するログやエラーメッセージを取得します。 - deploy-local-folder\:Google Cloud Runサービスにローカルフォルダをデプロイします。- list-projects\:利用可能なGCPプロジェクトを一覧化します。- create-project*:新しいGCPプロジェクトを作成し、最初に利用可能な請求アカウントにアタッチします。プロジェクトIDは任意で指定可能です。 プロンプトは、一般的な作業を行うために使える自然言語のコマンドです。
概要(AI 翻訳)
MCP互換のAIエージェントでCloud Runへのアプリ展開を可能にします。
Gemini CLIやその他のAI搭載CLIエージェントからの展開:
AI搭載IDEからのデプロイ:
AIアシスタントアプリからのデプロイ:
Google Gen AI SDKやAgent Development KitのようなエージェントSDKから展開してください。
[!注] これはCloud RunにコードをデプロイするためのMCPサーバーのリポジトリです。Cloud Run上でMCPサーバーをホスティングする方法については、Cloud Runのドキュメントをご覧ください。
道具
-
deploy-file-contents:ファイルをCloud Runにデプロイし、その内容を直接提供します。 -
list-services:特定のプロジェクトおよび地域におけるクラウドランサービスを一覧表示します。 -
get-service:特定のCloud Runサービスの詳細を取得します。 -
get-service-log:特定のクラウドランサービスのログとエラーメッセージを取得します。 -
deploy-local-folder*:ローカルフォルダをGoogle Cloud Runサービスに展開します。 -
list-projects*: 利用可能なGCPプロジェクトの一覧。 -
create-project*:新しいGCPプロジェクトを作成し、最初に利用可能な請求アカウントに紐付けます。プロジェクトIDはオプションで指定可能です。
* locally を走っている時のみ利用可能
プロンプト
プロンプトは、一般的な作業を行うために使える自然言語のコマンドです。
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Cloud Run MCP server and Gemini CLI extension
Enable MCP-compatible AI agents to deploy apps to Cloud Run.
"mcpServers":{
"cloud-run": {
"command": "npx",
"args": ["-y", "@google-cloud/cloud-run-mcp"]
}
}
Deploy from Gemini CLI and other AI-powered CLI agents:
Deploy from AI-powered IDEs:
Deploy from AI assistant apps:
Deploy from agent SDKs, like the Google Gen AI SDK or Agent Development Kit.
[!NOTE]
This is the repository of an MCP server to deploy code to Cloud Run, to learn how to host MCP servers on Cloud Run, visit the Cloud Run documentation.
Tools
-
deploy-file-contents: Deploys files to Cloud Run by providing their contents directly. -
list-services: Lists Cloud Run services in a given project and region. -
get-service: Gets details for a specific Cloud Run service. -
get-service-log: Gets Logs and Error Messages for a specific Cloud Run service. -
deploy-local-folder*: Deploys a local folder to a Google Cloud Run service. -
list-projects*: Lists available GCP projects. -
create-project*: Creates a new GCP project and attach it to the first available billing account. A project ID can be optionally specified.
* only available when running locally
Prompts
Prompts are natural language commands that can be used to perform common tasks. They are shortcuts for executing tool calls with pre-filled arguments.
deploy: Deploys the current working directory to Cloud Run. If a service name is not provided, it will use theDEFAULT_SERVICE_NAMEenvironment variable, or the name of the current working directory.logs: Gets the logs for a Cloud Run service. If a service name is not provided, it will use theDEFAULT_SERVICE_NAMEenvironment variable, or the name of the current working directory.
Environment Variables
The Cloud Run MCP server can be configured using the following environment variables:
| Variable | Description |
|---|
インストール
npx -y @google-cloud/cloud-run-mcp設定
"mcpServers":{
"cloud-run": {
"command": "npx",
"args": ["-y", "@google-cloud/cloud-run-mcp"]
}
}