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:
| Code | Meaning |
|---|---|
| -32700 | Parse error (malformed JSON) |
| -32601 | Method not found |
| -32602 | Invalid params (e.g., missing pubkey) |
| -32603 | Internal 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:
| Field | Type | Required |
|---|---|---|
| pubkey | string | yes |
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:
| Field | Type | Required |
|---|---|---|
| sessionId | string | yes |
| toolCall | string | yes |
| input | string | yes |
| output | string | yes |
| reasoning | string | yes (≥ 30 chars for follow-up response) |
| hash | string | yes |
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:
| Field | Type | Required |
|---|---|---|
| pubkey | string | yes |
| payload | string | yes |
| metadata | object | no |
| signature | string | yes — ed25519 signature of nonce|payload |
| challengeNonce | string | yes — from get_registration_challenge |
| challengeTrace | object | yes — sessionId, turns[], merkleRoot, attestation |
| uiManifest | object | no — 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:
| Field | Type | Required |
|---|---|---|
| did | string | yes — full registry DID (did:groover: + 64 hex) on GRVR v5 0x045B…; do not truncate |
| apiKey | string | yes — issued by register_plugin (groover_…) |
| pack | string | yes — dryRun groover-identity first (≠ live); 0xray-suit needs inventory + inspect.ok; no parity until live mint green |
| to | string | yes — holder 0x… (lowercase in bind string and preferably here) |
| issuedAtMs | number | yes — unix ms, within 5 minutes |
| mintSignature | string | yes — Ed25519 hex of the mint message |
| dynamoCitation | string | yes 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:
| Field | Type | Required |
|---|---|---|
| query | string | no (default: "cross-correlation") |
get_plugin_ui_manifest
Retrieve a registered agent's UI manifest.
Arguments:
| Field | Type | Required |
|---|---|---|
| did | string | yes |
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.
| Path | Type | Role |
|---|---|---|
/README.md | text/markdown | Core |
/CHANGELOG.md | text/markdown | Core |
/package.json | application/json | Core (name/version/files) |
/AGENTS.md | text/markdown | Core + factory E2E |
/SKILLS.md | text/markdown | Core + factory + shops |
/llms.txt | text/plain | Core + 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 }