Skip to main content

Async MCP SSE client for Google Cloud Run with ID-token auth

Project description

cloudrun-mcp

Async MCP (Model Context Protocol) client for Google Cloud Run.

Features

  • Cloud Run / GKE Workload Identity support
  • Automatic ID-token authentication
  • Async Server-Sent Events (SSE)
  • Agentic-AI friendly streaming API

Install

pip install cloudrun-mcp

Usage

import asyncio from cloudrun_mcp import MCPClient

async def main(): client = MCPClient( base_url="https://your-mcp-server.run.app" )

async for event in client.events():
    print(event)

asyncio.run(main())

Requirements

  • Python 3.10+
  • Running on GCP (Cloud Run, GKE, GCE) with metadata server access

Publish to PyPI (exact commands)

# 1. Create virtual env
python3 -m venv .venv
source .venv/bin/activate

# 2. Install tools
pip install --upgrade build twine

# 3. Build
python -m build

# 4. Upload (TestPyPI first – recommended)
twine upload --repository testpypi dist/*

# 5. Production PyPI
twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudrun_mcp-0.1.3.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloudrun_mcp-0.1.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file cloudrun_mcp-0.1.3.tar.gz.

File metadata

  • Download URL: cloudrun_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for cloudrun_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 460a848f04bec69d08db5102d2811deebe44855970c733e6bdea3a6c6e1ff48c
MD5 eda4930f90414e601f2cbe7345d1c4ee
BLAKE2b-256 50135e544ece98873b063c804032069c42d21ddc655b1c5bf47dfc449e327b21

See more details on using hashes here.

File details

Details for the file cloudrun_mcp-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: cloudrun_mcp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for cloudrun_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 750f092de5836f56eb3b32bea4f27c42fa12becf0ddfee093cb62721ce27e81d
MD5 a288d57e705e50f35b00d9cb8c71977b
BLAKE2b-256 178568c05c3f1e8958f53c4fdbd62c120976b8d511370a09635afbd01a8b2945

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page