relivio-mcp
v0.2.0
Published
Minimal MCP server for consuming Relivio post-deploy verdicts.
Maintainers
Readme
relivio-mcp
Minimal MCP server for consuming Relivio post-deploy verdicts from Claude Code, Codex, and other MCP clients.
relivio-mcp is a thin wrapper over relivio-server:
GET /api/v1/summaries/latestGET /api/v1/summaries/latest?deployment_id=...GET /api/v1/deployments/recent?limit=...
It does not:
- create deployments
- ingest runtime signals
- add new business logic
- replace Relivio's decision engine
It only exposes the verdict surface that agents need:
verdictdecision_tierrecommended_action- supporting context for the next move
Status
Current status: v0
- two tools:
get_verdictlist_recent_deployments
- read-only only
- thin wrapper over the existing Relivio API
- no write tools yet
v0 assumptions:
- one API key maps to one project
- tools stay project-scoped and read-only
retry_after_hint_minutesis a server-configured observation window hint, currently surfaced as15
Who this is for
Use this if:
- you already have a Relivio project API key
- you want an agent to check post-deploy status before or after code changes
- you want a read-only verdict surface first, without write tools
Do not use this as:
- a deployment trigger
- an ingest client
- an observability adapter
- an incident automation tool
Environment
RELIVIO_API_URL- Example:
https://api.relivio.dev
- Example:
RELIVIO_API_KEY- Project-scoped runtime API key
Quick start
npm install
npm run buildInstall as a package
Global install:
npm install -g relivio-mcpAfter that, the executable is:
relivio-mcpIf you do not want a global install, keep using the built file directly from the repo checkout.
Test
npm testClaude Code MCP registration
Use the built entrypoint:
{
"mcpServers": {
"relivio": {
"command": "node",
"args": ["/absolute/path/to/relivio-mcp/dist/index.js"],
"env": {
"RELIVIO_API_URL": "https://api.relivio.dev",
"RELIVIO_API_KEY": "your-project-api-key"
}
}
}
}The same command / args / env shape can be adapted for other MCP-capable clients.
If installed globally from npm, you can use:
{
"mcpServers": {
"relivio": {
"command": "relivio-mcp",
"env": {
"RELIVIO_API_URL": "https://api.relivio.dev",
"RELIVIO_API_KEY": "your-project-api-key"
}
}
}
}Development
npm install
npm run build
npm test
npm run pack:checkRuntime entrypoint:
npm run startIf RELIVIO_API_URL or RELIVIO_API_KEY is missing, startup fails immediately with a clear error.
Tool
get_verdict
Returns the latest verdict for the project, or the verdict for a specific deployment.
Input:
{
"deployment_id": "optional-deployment-id"
}list_recent_deployments
Returns the recent deployments for the current project API key scope.
Input:
{
"limit": 10
}Ready response:
{
"status": "ready",
"deployments": [
{
"deployment_id": "dep_123",
"version": "v1.2.3",
"deployed_at": "2026-04-22T03:20:00Z",
"window_status": "ACTIVE"
}
]
}Ready response:
{
"status": "ready",
"verdict": {
"verdict": "WATCH",
"decision_tier": "guard_ready",
"recommended_action": "Keep guard ready and continue observation",
"action_detail": "Inspect /api/orders/finalize before wider rollout",
"affected_apis": ["/api/orders/finalize"],
"top_signals": ["route concentration around /api/orders/finalize"],
"deployment_id": "dep_123",
"created_at": "2026-04-20T03:20:00Z"
}
}Pending response:
{
"status": "pending",
"reason": "observation_window_active",
"message": "No verdict yet. The observation window is still active.",
"retry_after_hint_minutes": 15
}Error response:
{
"status": "error",
"reason": "authentication_failed",
"message": "Check RELIVIO_API_KEY configuration."
}Current scope
v0 intentionally stays narrow:
- two read-only tools:
get_verdictlist_recent_deployments
- structured
ready / pending / error
Not included in v0:
summary_line- deployment registration
- ingest submission
- feedback submission
- multi-project routing beyond API-key scope
Related repos
relivio-server— verdict producer and summary APIrelivio-console— human-facing console surfacerelivio-sim-lab— scenario and smoke validation
Optional integration tip
If you want Claude Code to check verdicts more proactively, add an optional hook to the consuming project's CLAUDE.md:
Before making code changes, call get_verdict to check production status.This is not required for v0 correctness.
Security
- Do not commit
RELIVIO_API_KEY - Keep API keys in your MCP client environment config only
- This repo is read-only by design in v0
See SECURITY.md for reporting guidance.
Contributing
Small, behavior-preserving pull requests are preferred.
See CONTRIBUTING.md.
License
MIT
