Skip to content

Add project-scoped Railway MCP server config#909

Merged
BigSimmo merged 6 commits into
mainfrom
claude/install-claude-code-global-9ioe8n
Jul 19, 2026
Merged

Add project-scoped Railway MCP server config#909
BigSimmo merged 6 commits into
mainfrom
claude/install-claude-code-global-9ioe8n

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds .mcp.json registering the Railway MCP server (npx -y @railway/cli mcp) at project scope, so Claude Code sessions load Railway tooling (deployments, logs, status, variables) automatically.
  • The server requires Railway auth at runtime: either railway login on the machine or a RAILWAY_API_TOKEN account token provided as an environment secret. No credentials are included in this change.

Verification

  • Verification not run: config-only change (a single new .mcp.json); no source, test, build, or app behavior is touched, so the local verification gates do not apply.
  • Manually verified the registered command: railway mcp completes the MCP initialize handshake and, when authenticated, lists account projects.

Risk and rollout

  • Risk: Low — additive config file; Claude Code prompts before enabling project-scoped MCP servers, and the server is inert without Railway credentials.
  • Rollback: Delete .mcp.json.
  • Provider or production effects: None from the file itself. When a session enables it with credentials, the server talks to the Railway API under the account used.

Clinical Governance Preflight

Not applicable — no ingestion, answer generation, search/ranking, source rendering, document access, privacy, production env, or clinical output is touched.

Notes

  • The Railway use-railway agent skill was intentionally not vendored into .claude/skills/ in this PR; installing agent-behavior-steering files into the repo is left as an explicit follow-up decision.

🤖 Generated with Claude Code

https://claude.ai/code/session_016UrrzgrBtQRXvshDhvz3Hs


Generated by Claude Code

Summary by CodeRabbit

  • New Features
    • Added/updated MCP server configuration for Railway CLI integration (using the mcp subcommand via npx).

Registers the Railway MCP server (railway mcp via npx @railway/cli) in
.mcp.json so Claude Code sessions pick it up automatically. Requires
RAILWAY_API_TOKEN (or railway login) at runtime for the server to start.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016UrrzgrBtQRXvshDhvz3Hs
@coderabbitai

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 3759c345-c044-49ee-ab33-117a1a9f8fa5

📥 Commits

Reviewing files that changed from the base of the PR and between 26cbdb7 and f214443.

📒 Files selected for processing (1)
  • .mcp.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • .mcp.json

📝 Walkthrough

Walkthrough

Adds .mcp.json with a railway MCP server launched through npx -y @railway/cli@5.27.0 mcp.

Changes

Railway MCP server

Layer / File(s) Summary
Railway server configuration
.mcp.json
Registers the railway MCP server and configures its pinned Railway CLI package and mcp command.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: adding a project-scoped Railway MCP server config.
Description check ✅ Passed The description follows the template with Summary, Verification, Risk and rollout, Clinical Governance Preflight, and Notes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/install-claude-code-global-9ioe8n

Comment @coderabbitai help to get the list of available commands.

@supabase

supabase Bot commented Jul 19, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@BigSimmo
BigSimmo marked this pull request as ready for review July 19, 2026 05:55
@BigSimmo
BigSimmo enabled auto-merge (squash) July 19, 2026 05:55

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.mcp.json:
- Around line 4-5: Update the MCP configuration command to use the bundled
Railway CLI instead of invoking `npx -y `@railway/cli`` at runtime. Preserve the
existing MCP argument while selecting the locally available railway executable,
or pin `@railway/cli` to an approved version if the executable is not guaranteed
to be installed.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 09d9a0fd-42f1-415e-9ee2-bd3b92a48560

📥 Commits

Reviewing files that changed from the base of the PR and between db11387 and 26cbdb7.

📒 Files selected for processing (1)
  • .mcp.json

Comment thread .mcp.json Outdated
BigSimmo and others added 4 commits July 19, 2026 13:58
Addresses review: unpinned npx would fetch the latest CLI from npm at
runtime. Pin to the version verified against the MCP handshake.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016UrrzgrBtQRXvshDhvz3Hs

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 26cbdb70cc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .mcp.json Outdated
@BigSimmo
BigSimmo merged commit 7ec25d9 into main Jul 19, 2026
40 checks passed
@BigSimmo
BigSimmo deleted the claude/install-claude-code-global-9ioe8n branch July 19, 2026 06:01
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