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)
```bash
# 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
Release history Release notifications | RSS feed
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.1.tar.gz
(2.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloudrun_mcp-0.1.1.tar.gz.
File metadata
- Download URL: cloudrun_mcp-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3337f8cb578136993cc8d963a7f403563c7ce292a1514d1fb90e867d488b7b53
|
|
| MD5 |
6d83862f1068f9a3af9998a9ae64b070
|
|
| BLAKE2b-256 |
7425269b82a63b5f53c7d20cf5c56666587dba96ce3f3851ff99ebf81eaedeba
|
File details
Details for the file cloudrun_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cloudrun_mcp-0.1.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
456750f508ab1fe7d5f20699fa1c13999538892490a6693df381c18080321417
|
|
| MD5 |
05e49932ba93c451926da3dfb1db1f40
|
|
| BLAKE2b-256 |
f197d7072c249a29b113d07f5f1c7122a62fba390a7a1cbb16b9dd52acbd5b58
|