Add a read-only Hive MCP server from the OpenRPC export

Summary

Work item #87 (closed). Reference MCP server for Hive docs and JSON-RPC, now that OpenRPC/OpenAPI (!182 (merged)) is on develop and staging.

  • Tools are generated from the OpenRPC document (list_methods, get_method_schema, hive_rpc_call, fetch_doc_page). Methods are not registered one-tool-per-RPC-call.
  • Read-only by default. network_broadcast_api, debug_node_api, and broadcast_* are denied unless HIVE_MCP_ALLOW_BROADCAST=1. The process never accepts private keys.
  • Stdio only (npm and Docker). No public hosted endpoint. Node and doc hosts are allowlisted; redirects are refused.
  • Install, Cursor config, and the safety rules are on Building agents in every portal locale, and linked from llms.txt.

Startup tries https://developers.hive.io/openrpc.json and falls back to http://developers-staging.hive.io/openrpc.json. Production does not serve /openrpc.json until this line is released to master.

Design note: mcp/README.md.

Closes #87 (closed)

Test plan

  • cd mcp && npm test (catalog, denylist, positional vs named JSON-RPC, doc host allowlist, broadcast opt-in does not add a key field)
  • GitLab mcp_test job (Node 20)
  • After merge to develop, confirm staging still serves /openrpc.json and a local npm start loads it

Merge request reports

Loading
Loading