Skip to content

feat: add containerized MCP proxy example#159

Merged
davideast merged 1 commit intogoogle-labs-code:mainfrom
ResultantDesign:feat/container-mcp-proxy
Mar 30, 2026
Merged

feat: add containerized MCP proxy example#159
davideast merged 1 commit intogoogle-labs-code:mainfrom
ResultantDesign:feat/container-mcp-proxy

Conversation

@ResultantDesign
Copy link
Copy Markdown
Contributor

Summary

  • Adds examples/container-proxy/ — a Podman/Docker containerized deployment of the Stitch MCP proxy
  • API key injected via container secrets (/run/secrets/), not environment variables
  • Includes Containerfile, proxy script, and MCP client configuration examples (Claude Code, Cursor, VS Code)

Motivation

The existing run-proxy.ts example requires Node.js and npm on the host. This containerized alternative:

  • No host dependencies — Node.js and packages stay inside the container
  • Secret isolation — API key read from /run/secrets/, never exposed in env vars or CLI args
  • Reproducible — Same image, same behavior everywhere
  • Disposable--rm cleans up after each session

Usage

podman build -t stitch-mcp .
printf '%s' "your-key" | podman secret create stitch-api-key -
podman run --rm -i --secret stitch-api-key stitch-mcp

Test plan

  • podman build -t stitch-mcp . succeeds
  • podman run --rm -i --secret stitch-api-key stitch-mcp connects and discovers 12 tools
  • Verified as MCP server in Claude Code via settings.json configuration

@google-cla
Copy link
Copy Markdown

google-cla bot commented Mar 27, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@davideast
Copy link
Copy Markdown
Collaborator

Thank you @ResultantDesign! Can you sign the CLA? Then we'll merge!

Adds a Podman/Docker container example that runs the Stitch MCP proxy
without requiring Node.js on the host. API key is injected via container
secrets (/run/secrets/) instead of environment variables.

Includes configuration examples for Claude Code, Cursor, and VS Code.
@ResultantDesign ResultantDesign force-pushed the feat/container-mcp-proxy branch from c7b1740 to a06dfd1 Compare March 29, 2026 23:45
@davideast davideast merged commit eaaed81 into google-labs-code:main Mar 30, 2026
5 checks passed
@ResultantDesign ResultantDesign deleted the feat/container-mcp-proxy branch March 30, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants