Skip to main content

MCP API Reference

The Groover registry exposes MCP tools via an HTTP JSON-RPC endpoint at POST /mcp. Health check at GET / or GET /health.

Live host (register and mint on this same URL): POST https://registry-production-e2c4.up.railway.app/mcp. Register issues { did, apiKey } — do not invent apiKey. After a Railway register, mint_suit on https://groover.rippel.ai/mcp is -32603.

Transport​

POST https://<host>/mcp
Content-Type: application/json

JSON-RPC 2.0 subset:
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "<tool>", "arguments": {...} } }

Errors follow JSON-RPC 2.0 spec:

CodeMeaning
-32700Parse error (malformed JSON)
-32601Method not found
-32602Invalid params (e.g., missing pubkey)
-32603Internal error

Error messages are sanitized — only whitelisted tokens (pubkey is required, Challenge session not found, etc.) are returned verbatim; all others return Internal server error.

Tools​

get_registration_challenge​

Start the adaptive multi-turn challenge. Returns a nonce for proof-of-possession and a challenge session.

Arguments:

FieldTypeRequired
pubkeystringyes

Response:

{
"success": true,
"nonce": "<hex>",
"ttl": 300000,
"session": {
"sessionId": "<hex>",
"task": { "prompt": "...", "requiredTools": ["search_plugins", "list_mcp_servers"], "minTurns": 3, "minDurationMs": 3000 },
"status": "pending",
"followUpPrompt": null,
"followUpCompleted": false
}
}

submit_challenge_turn​

Submit a single turn of the adaptive challenge. After 3 turns, the server may return a followUpPrompt requiring a 4th turn.

Arguments:

FieldTypeRequired
sessionIdstringyes
toolCallstringyes
inputstringyes
outputstringyes
reasoningstringyes (≥ 30 chars for follow-up response)
hashstringyes

Response:

{ "success": true, "sessionId": "...", "turnCount": 3, "followUpPrompt": "..." | null }

register_plugin​

Register an agent after completing the challenge. Requires proof-of-possession (ed25519 signature) + challenge trace.

Arguments:

FieldTypeRequired
pubkeystringyes
payloadstringyes
metadataobjectno
signaturestringyes — ed25519 signature of nonce|payload
challengeNoncestringyes — from get_registration_challenge
challengeTraceobjectyes — sessionId, turns[], merkleRoot, attestation
uiManifestobjectno — UI manifest for agent display

Response:

{
"success": true,
"did": "did:groover:<base58>",
"record": { "did": "...", "pubkey": "...", "apiKey": "groover_...", "reputation": 1.0, ... }
}

Or on failure:

{ "success": true, "did": "gray", "record": { "status": "gray", "cooldown": 300000 } }

apiKey is minted by this call. Do not invent one. Do not use Railway GRVR_PRIVATE_KEY.

mint_suit​

Mint a GRVR 1/1 for a registered DID on the same MCP host as register. Requires the issued apiKey plus Ed25519 signature over:

groover-mint:v1|{did}|{pack}|{to.toLowerCase()}|{issuedAtMs}

to must be lowercased in the signed string. issuedAtMs within ~5 minutes. Same Ed25519 secret as register (persist it — the register script does not).

Arguments:

FieldTypeRequired
didstringyes — full registry DID (did:groover: + 64 hex) on GRVR v5 0x045B…; do not truncate
apiKeystringyes — issued by register_plugin (groover_…)
packstringyes — dryRun groover-identity first (≠ live); 0xray-suit needs inventory + inspect.ok; no parity until live mint green
tostringyes — holder 0x… (lowercase in bind string and preferably here)
issuedAtMsnumberyes — unix ms, within 5 minutes
mintSignaturestringyes — Ed25519 hex of the mint message
dynamoCitationstringyes for live mint + ERC-8004 mirror — 32-byte hex from hammer PASS + persistToChain. Optional on dryRun: true (result is labeled). PoA register does not require it. Emergency only: DYNAMO_MINT_REQUIRED=false

Live mint uses the server minter (GRVR_PRIVATE_KEY) on configured GRVR_CONTRACT. That key is not the agent's apiKey. dryRun ≠ live: dryRun: true can succeed (auth + DNA) without a citation (labeled). Live without dynamoCitation is a clear reject, not opaque -32603. After citation is present, remaining -32603 is ops/minter env, not a bad DID. 0xray-suit needs inventory + inspect.ok === true; inspect.dna must match keccak of inventory without mintedAt/dna.

search_plugins​

Search the registry for plugins using cross-correlation signals.

Arguments:

FieldTypeRequired
querystringno (default: "cross-correlation")

get_plugin_ui_manifest​

Retrieve a registered agent's UI manifest.

Arguments:

FieldTypeRequired
didstringyes

list_mcp_servers​

List all integrated MCP servers with their roles and key tools.

Arguments: none

MCP Governance Protocol​

xrayBridge.govern() sends proposals as an array ({ proposals: [proposal] }) per 0xRay governance protocol. Each proposal includes a source field (required) — automated calls use source: 'system'.

Standard MCP Methods​

initialize​

{ "jsonrpc": "2.0", "id": 1, "method": "initialize" }

tools/list​

{ "jsonrpc": "2.0", "id": 1, "method": "tools/list" }

Agent docs (HTTP GET)​

General core set first, then Groover-specific pages. Markdown / plain. Not the MCP catch-all banner.

PathTypeRole
/README.mdtext/markdownCore
/CHANGELOG.mdtext/markdownCore
/package.jsonapplication/jsonCore (name/version/files)
/AGENTS.mdtext/markdownCore + factory E2E
/SKILLS.mdtext/markdownCore + factory + shops
/llms.txttext/plainCore + factory + shops

Docusaurus is /docs (this site). Website static serves the same files at the site root after deploy.

Task C2 ship-ready (acceptance): live curl 200 for /AGENTS.md /SKILLS.md /llms.txt on registry and website after deploy (npx tsx deploy/check-agent-docs.ts). CI curls a local Railway-shaped registry; that is not live evidence. README, CHANGELOG, and package.json must also be 200, not the banner.

Health Check​

GET /
GET /health
{ "status": "healthy", "server": "groover-registry", "version": "0.2-mvp", "uptime": 123.45 }