railyard/packages/mcp/package.json
caelum0x f32e27244f feat(mcp): Railyard MCP server and agent skill (RYP-D5, Y-5)
railyard-mcp (stdio, MCP TypeScript SDK) with seven tools, all marked
read-only for the agent:
- deploy.run returns the exact npx railyard deploy command (login first
  when signed out); the deploy itself runs on the user's machine.
- deploy.list and usage.current read the console API with the org
  token saved by railyard login; a token only ever sees its own org.
- insights.summary and insights.funnel say no_data_yet until an
  Insights query store is configured (RYP-D2), then pass its numbers.
- flags.list reports arriving and lists nothing.
- gateway.traces reads /relay/traces (RY-RL3) with the gateway key in the
  environment; Relay limits it to that key's own calls.
Arguments are schema-checked; errors are explicit, never an empty
success; no token appears in any output.

packages/skills: a Claude Code plugin (manifest starting railyard-mcp)
with a railyard skill (deploy, Cloudflare login in the browser, rollback,
no invented numbers) and a README.

Tests: annotation linter over tools/list, org A/B isolation against the
real console token and deploy code, signed-out and expired paths,
insights and gateway paths, a stdio round trip, and the copy lint over
both READMEs, the skill and every tool string.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 16:35:39 +03:00

25 lines
498 B
JSON

{
"name": "railyard-mcp",
"version": "0.1.0",
"description": "Railyard MCP server: deploy commands, deploy history, usage and Insights for your coding agent.",
"type": "module",
"bin": {
"railyard-mcp": "bin/railyard-mcp.mjs"
},
"files": [
"bin",
"src",
"README.md"
],
"engines": {
"node": ">=20"
},
"scripts": {
"test": "node --test test/*.test.mjs"
},
"license": "UNLICENSED",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.30.1"
}
}