スキル一覧に戻る
oimiragieo

cloud-run

by oimiragieo

1🍴 0📅 2026年1月21日
GitHubで見るManusで実行

SKILL.md


name: cloud-run description: Google Cloud Run deployment and management. Deploy applications, list services, get logs, and manage GCP projects. Use for Cloud Run deployments, service monitoring, and GCP project management. version: 1.0.0 context:fork: true allowed-tools: read, write, bash

Cloud Run Skill

Overview

This skill provides access to the Google Cloud Platform Cloud Run MCP server with progressive disclosure for optimal context usage.

Context Savings: ~90% reduction

  • MCP Mode: ~15,000 tokens always loaded (7 tools + prompts)
  • Skill Mode: ~300 tokens metadata + on-demand loading

Requirements

  • Node.js 18+ OR Docker installed and running
  • Google Cloud credentials configured via gcloud auth application-default login
  • Optional: GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_REGION environment variables

Tools

The server provides 8 tools across deployment and management categories:

Deployment Tools

ToolDescriptionMode
deploy-file-contentsDeploy files to Cloud Run by providing contents directlyLocal + Remote
deploy-local-folderDeploy a local folder to Cloud RunLocal only
deploy-container-imageDeploy a container image URL to Cloud RunLocal + Remote

Service Management Tools

ToolDescriptionMode
list-servicesList Cloud Run services in a project/regionLocal + Remote
get-serviceGet details for a specific Cloud Run serviceLocal + Remote
get-service-logGet logs and errors for a specific serviceLocal + Remote

Project Management Tools (Local Only)

ToolDescription
list-projectsList available GCP projects
create-projectCreate a new GCP project and attach to billing

Quick Reference

# List available tools
python executor.py --list

# List Cloud Run services
python executor.py --tool list-services --args '{"projectId": "my-project", "region": "us-central1"}'

# Get service details
python executor.py --tool get-service --args '{"projectId": "my-project", "region": "us-central1", "serviceName": "my-service"}'

# Get service logs
python executor.py --tool get-service-log --args '{"projectId": "my-project", "region": "us-central1", "serviceName": "my-service"}'

# Deploy file contents
python executor.py --tool deploy-file-contents --args '{"projectId": "my-project", "region": "us-central1", "serviceName": "my-service", "files": [{"path": "main.py", "contents": "..."}]}'

# List GCP projects
python executor.py --tool list-projects

Configuration

Environment Variables

VariableDescriptionDefault
GOOGLE_CLOUD_PROJECTDefault GCP project IDNone
GOOGLE_CLOUD_REGIONDefault Cloud Run regionus-central1
DEFAULT_SERVICE_NAMEDefault service name for deploymentsNone
SKIP_IAM_CHECKSkip IAM permission validationfalse
ENABLE_HOST_VALIDATIONEnable Host header validationfalse

Setup

  1. Authenticate with GCP:

    gcloud auth application-default login
    
  2. Set default project (optional):

    export GOOGLE_CLOUD_PROJECT=my-project-id
    export GOOGLE_CLOUD_REGION=us-central1
    
  3. Use the skill:

    python .claude/skills/cloud-run/executor.py --list
    

Prompts

The MCP server also provides natural language prompts:

PromptDescription
deployDeploy current working directory to Cloud Run
logsGet logs for a Cloud Run service

Tool Details

deploy-file-contents

Deploy files to Cloud Run by providing their contents directly.

Parameters:

  • projectId (string, required): GCP project ID
  • region (string, required): Cloud Run region
  • serviceName (string, required): Name for the Cloud Run service
  • files (array, required): Array of file objects with path and contents

Example:

{
  "projectId": "my-project",
  "region": "us-central1",
  "serviceName": "my-api",
  "files": [
    { "path": "main.py", "contents": "from flask import Flask\napp = Flask(__name__)\n..." },
    { "path": "requirements.txt", "contents": "flask==2.0.0\ngunicorn==20.1.0" }
  ]
}

list-services

List Cloud Run services in a given project and region.

Parameters:

  • projectId (string, required): GCP project ID
  • region (string, optional): Cloud Run region (defaults to configured region)

get-service

Get detailed information about a specific Cloud Run service.

Parameters:

  • projectId (string, required): GCP project ID
  • region (string, required): Cloud Run region
  • serviceName (string, required): Cloud Run service name

get-service-log

Get logs and error messages for a specific Cloud Run service.

Parameters:

  • projectId (string, required): GCP project ID
  • region (string, required): Cloud Run region
  • serviceName (string, required): Cloud Run service name
  • limit (number, optional): Maximum number of log entries

deploy-local-folder

Deploy a local folder to a Cloud Run service (local mode only).

Parameters:

  • projectId (string, required): GCP project ID
  • region (string, required): Cloud Run region
  • serviceName (string, required): Cloud Run service name
  • folderPath (string, required): Path to local folder to deploy

list-projects

List available GCP projects (local mode only).

Parameters: None

create-project

Create a new GCP project and attach it to billing (local mode only).

Parameters:

  • projectId (string, required): Desired project ID
  • projectName (string, optional): Human-readable project name

Integration with Agents

This skill integrates with the following agents:

  • devops: For Cloud Run deployments and infrastructure management
  • developer: For deploying applications during development
  • architect: For service architecture decisions

Troubleshooting

ErrorCauseFix
"Permission denied"Missing GCP credentialsRun gcloud auth application-default login
"Project not found"Invalid project IDVerify project ID with gcloud projects list
"Region not found"Invalid regionUse valid Cloud Run regions (e.g., us-central1)
"Service not found"Service doesn't existCheck service name with list-services

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です