railway-sandbox-mcp
railway-sandbox-mcp
ChatGPT가 Railway Sandboxes를 격리된 개발/실행 환경으로 구동할 수 있게 해주는 작은 MCP 브리지입니다.
아키텍처
두 장기 실행 Railway 서비스는 모두 Railway의 GitHub 통합을 통해 이 GitHub 리포지토리에서 배포됩니다:
Railway 서비스 | GitHub 브랜치 | Railway 루트 디렉터리 | 코드형 구성 파일 | 용도 |
|
|
|
| Railway Sandbox SDK 기반 Node MCP 서버 |
|
|
|
| OpenAI Secure MCP Tunnel 클라이언트 |
tunnel-client Dockerfile은 공식 ghcr.io/openai/tunnel-client:latest 이미지를 상속하며, 업스트림 health/readiness 서버가 Railway가 주입하는 PORT에 바인딩되도록 entrypoint만 래핑합니다. 배포 수명 주기는 Railway가 소유하고 OpenAI는 업스트림 이미지 제공자로 남습니다.
ChatGPT
|
v
OpenAI Secure MCP Tunnel
^
| outbound HTTPS
|
tunnel-client (Railway)
|
| Railway private network
v
sandbox-mcp:8080/mcp (Railway)
|
v
Railway Sandbox SDK
|
v
Ephemeral isolated Linux sandboxes with outbound Internet어느 Railway 서비스도 공용 도메인이 필요하지 않습니다.
Related MCP server: Railway MCP Server
코드형 구성
배포 동작은 이 리포지토리에 커밋됩니다:
/railway.json은 MCP 서비스 빌더, watch 경로, 시작 명령, health check, 재시작 정책을 정의합니다./tunnel-client/railway.json은 tunnel-client Docker 빌드, watch 경로, readiness check, 재시작 정책을 정의합니다./tunnel-client/Dockerfile은 공식 OpenAI tunnel-client 이미지를 선택하고 health 리스너를 Railway가 주입하는PORT에 맞게 조정합니다./.github/workflows/ci.yml은 push와 pull request 시 Node 서비스와 Railway 구성 파일을 검증하고 tunnel-client 이미지를 빌드합니다.
코드에 커밋된 Railway 구성은 각 배포에 대해 대시보드의 동일한 빌드/배포 값을 재정의합니다.
Railway 서비스 1회성 연결 설정
소스 연결, 트리거 브랜치, 사용자 지정 구성 파일 경로는 railway.json 내부의 필드가 아닌 Railway 서비스 메타데이터이므로 Railway에서 한 번만 구성하면 됩니다:
sandbox-mcp
소스 리포지토리:
erwinkn/railway-sandbox-mcp브랜치:
main루트 디렉터리:
/구성 파일 경로:
/railway.jsonGitHub 자동 배포: 활성화
CI 대기: 활성화
tunnel-client
소스 리포지토리:
erwinkn/railway-sandbox-mcp브랜치:
main루트 디렉터리:
/tunnel-client구성 파일 경로:
/tunnel-client/railway.jsonGitHub 자동 배포: 활성화
CI 대기: 활성화
사용자 지정 시작 명령 없음; 리포지토리 Dockerfile entrypoint 상속
서비스별 watch 경로 덕분에 MCP 전용 변경은 tunnel client를 다시 빌드하지 않고, tunnel 전용 변경은 MCP 서버를 다시 빌드하지 않습니다.
필수 환경 변수
sandbox-mcp
RAILWAY_API_TOKEN: Sandboxes가 활성화된 환경에 액세스할 수 있는 Railway API 토큰.RAILWAY_ENVIRONMENT_ID: Railway가 자동으로 주입합니다.
tunnel-client
MCP_SERVER_URL=http://sandbox-mcp.railway.internal:8080/mcpCONTROL_PLANE_TUNNEL_ID=tunnel_...CONTROL_PLANE_API_KEY=...: Tunnel Read + Use 권한이 있는 제한된 OpenAI 런타임 키.LOG_LEVEL=infoLOG_FORMAT=json
tunnel-client는 Railway가 주입하는 포트에서 /healthz, /readyz, /metrics를 노출합니다. Railway는 /readyz를 배포 health check로 사용하므로, tunnel-client 배포가 성공하면 터널 시작과 다운스트림 MCP 준비 상태가 모두 검증됩니다.
배포 흐름
main으로의 push는 GitHub Actions를 실행합니다. Railway의 Wait for CI가 활성화된 상태에서는 Railway가 CI 통과를 기다린 후, 변경된 파일과 watch 패턴이 일치하는 서비스만 자동 배포합니다.
MCP 도구
sandbox_createsandbox_listsandbox_getsandbox_execsandbox_read_filesandbox_list_filessandbox_write_filesandbox_write_filessandbox_checkpointsandbox_destroy
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceEnables spawning ephemeral Linux sandbox containers using Docker and executing commands through an interactive TTY interface. Supports collaborative terminal sessions where both AI clients and humans can simultaneously interact with the same container.27MIT- AlicenseAqualityDmaintenanceEnables management of Railway.app infrastructure through natural language, including deploying services from GitHub repos or Docker images, managing environment variables, monitoring deployments, and configuring networking and volumes.3649MIT
- AlicenseAqualityDmaintenanceEnables management of Railway.app infrastructure through natural language, including deploying services, managing environment variables, monitoring deployments, and handling databases and volumes.3649MIT
- AlicenseAqualityDmaintenanceEnables AI systems like Claude and Cursor to directly manage Railway projects, deployments, services, environment variables, and monitor logs through natural language commands.97MIT
Related MCP Connectors
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to i…
Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/erwinkn/railway-sandbox-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server