What this means in practice
This repo contains more than one deployable surface, so Railway setup matters.Web app deployment
The Next.js web dashboard lives under:apps/web
railway.toml aimed at the web app.
MCP server deployment
The current Streamable HTTP MCP server lives under:packages/mcp-server
Important monorepo note
If Railway uses the repo-root config by default, it may boot the web app instead of the MCP server. For the MCP service, use the package-local settings described inpackages/mcp-server/README.md.
MCP server service settings
For Railway MCP deployment, use:- Root Directory:
/packages/mcp-server - Railway Config File:
/packages/mcp-server/railway.toml - Port:
3100
How it actually works
This matters because Railway can accidentally use the wrong config in a monorepo if you point it at the wrong root. The public docs should emphasize the MCP server package-local deployment path instead of implying the root web app config is correct for every service.Commands / examples
Typical start command for the package-local MCP service:Build / start model
The package-local setup handles:- install
- build
- start
- healthcheck routing
What to verify after deploy
- the service health endpoint responds
- the MCP endpoint is reachable
- your client can authenticate with
Authorization: Bearer <api-key>
Related docs
Source of truth
packages/mcp-server/README.mdpackages/mcp-server/railway.tomlapps/docs/self-hosting/environment-variables.mdx