Better Rails for Agents: A New Remote MCP and Railway Agent in the CLI
Railway shipped a remote MCP server at mcp.railway.com, which connects to MCP clients over OAuth with no local install, and a new `railway agent` CLI command for interactive, scripted or CI use with JSON output. The MCP surface is kept deliberately small at 7 tools, because every tool definition costs client context and multi-step operations cost a round-trip each. Questions such as "why is my deploy crashing" go to a `railway-agent` tool that runs the multi-step investigation server-side and returns one answer. Instead of a separate service, the MCP server is a stateless Koa route inside the main backend. It reuses the existing OIDC provider and permission controllers, passes per-request context through AsyncLocalStorage, and wraps tools in a factory that handles auth and errors.
Related posts
- Railway MCP - Stateful, Serverful, Pay-per-use Infrastructure
Railway easyNoviceRailway's MCP server lets coding agents deploy services and templates, create isolated environments, manage variables and pull logs, pitched alongside Railway's usage-based pricing and vertical autoscaling as a good fit for agent-driven infrastructure. The design deliberately omits destructive tools like delete actions. It runs as a local stdio server rather than a remote Streamable HTTP one, because Railway lacks OAuth and its users work in local editors. The server wraps the Railway CLI under the hood, which reuses the CLI's login flow and lets agents fall back to CLI commands when they hit edge cases.
- Less Dashboards. More Robots. Railway, for Agents
Railway easyNoviceRailway is repositioning its platform around coding agents, bundling the CLI, MCP configuration and agent skills behind a single installer (`install.sh --agents -y`) so harnesses like Claude or Codex can deploy, configure and debug services without the dashboard. The CLI gains `--json` output, non-interactive flags and explicit project/service/environment scoping. A CLI-based MCP and an OAuth Remote MCP replace the deprecated NPM server, and a route-first `use-railway` skill loads only the references a task needs. Safety layers include staged changesets reviewed as diffs, MCP `destructiveHint` flags, 48-hour soft deletes and workspace guardrails such as GitHub org allowlists.
- Agentic Coding on Railway: A Practical Guide for 2026
Railway mediumAdeptRailway's official MCP server, per-PR preview environments with isolated databases, one-call rollback, environment promotion and per-environment secrets let agents like Claude Code, Cursor and Codex deploy, debug and validate their own PRs without leaving the loop. Five workflows are walked through: scaffolding and deploying a service, adding Postgres with migrations, creating preview environments, debugging failed deploys from structured logs, and agents testing their own PRs against preview URLs. Long-running migrations, multi-service ordering and cost reasoning still stall. The advice is to scope agent tokens to non-production environments, require human approval for production promotions, set spend alerts, watch for revert loops, add observability via MCP, and write business constraints where the agent can read them.
- MCP or CLI? Yes.
Sentry mediumAdeptSentry now ships its MCP server launchable from the CLI (`sentry mcp`), running stdio mode with a shim that reuses CLI credentials via a separate `Sentry-Bearer` token header that bypasses the OAuth proxy's CIMD/DCR flow. This sidesteps MCP's authentication bugs but gives up the consolidated, client-native auth that MCP offers. The two interfaces are complementary: the CLI has filesystem access for token-efficient grepping and pagination over raw data like session replay event logs, while MCP provides native tool discovery and steering. Sentry plans transport-aware steering where MCP tool responses point agents at CLI commands, and notes that uneven harness support for tool search, `instructions` metadata and MCP Events still limits relying on MCP alone.
- Dynamic MCPs with Docker: Stop Hardcoding Your Agents’ World
Docker mediumAdeptDocker MCP Gateway now exposes primordial tools (mcp-find, mcp-add) that let agents search a curated catalog of 270+ MCP servers, add them to the live session, and trigger OAuth or elicitation flows, instead of hand-editing JSON config and restarting. The gateway can also hide added servers' tool definitions from tools/list so they stay discoverable without bloating the context window. A code-mode tool lets agents write JavaScript that composes tools from several MCP servers inside a Docker sandbox, keeping intermediate results out of the model and cutting per-turn token usage. The features ship in Docker Desktop 4.50 and are on by default, and cagent can expose such agents to ACP-enabled editors like Zed and Neovim.