Runnable examples live in the examples/ directory. Each script is self-contained:
python examples/<example>.pyLaunches a devbox with GitHub's MCP server attached via MCP Hub, installs Claude Code, and asks Claude to describe your latest PR — all without the devbox seeing your real GitHub credentials.
What it does:
- Creates an MCP config pointing at
https://api.githubcopilot.com/mcp/ - Stores a GitHub PAT as a Runloop secret (credential isolation)
- Launches a devbox with MCP Hub enabled — the devbox receives
$RL_MCP_URLand$RL_MCP_TOKEN - Installs Claude Code (
@anthropic-ai/claude-code) - Registers the MCP Hub endpoint with Claude Code via
claude mcp add - Runs
claude --printto ask Claude to describe your latest PR using the GitHub MCP tools - Cleans up all resources
GITHUB_TOKEN=ghp_xxx ANTHROPIC_API_KEY=sk-ant-xxx \
python examples/mcp_github_claude_code.pySee also: MCP Hub documentation · Runloop docs