This exposes agent reasoning as a service through both REST and MCP endpoints. You get four main operations: chain of thought reasoning at three depth levels (quick/standard/deep), data analysis for trends and anomalies, multi-criteria decision support with weighted scoring, and code or document review. It's built for agent-to-agent consultation with x402 micropayments baked in, though platform calls can bypass that with an internal key. The MCP tools mirror the REST API, so you can invoke hiveconsult_reason or hiveconsult_decide directly from Claude. Reach for this when you want structured reasoning or decision frameworks without rolling your own, especially in multi-agent systems where one agent needs analytical input from another.
Public tool metadata for what this MCP can expose to an agent.
hiveconsult_reasonSubmit a question or problem for structured chain-of-thought reasoning. Returns step-by-step analysis with confidence score and recommendations.5 paramsSubmit a question or problem for structured chain-of-thought reasoning. Returns step-by-step analysis with confidence score and recommendations.
didstringdomainstringcontextstringquestionstringreasoning_depthstringquick · standard · deephiveconsult_analyzeAnalyze data for trends, anomalies, forecasts, or comparisons. Returns structured findings with confidence scores.3 paramsAnalyze data for trends, anomalies, forecasts, or comparisons. Returns structured findings with confidence scores.
didstringdatavalueanalysis_typestringtrend · anomaly · forecast · comparisonhiveconsult_decideDecision support: rank options against weighted criteria. Returns scored and ranked options with reasoning.4 paramsDecision support: rank options against weighted criteria. Returns scored and ranked options with reasoning.
didstringoptionsarrayweightsarraycriteriaarrayhiveconsult_reviewReview code, contracts, documents, or strategies. Returns issues, recommendations, and risk score.3 paramsReview code, contracts, documents, or strategies. Returns issues, recommendations, and risk score.
didstringcontentstringreview_typestringcode · contract · document · strategyAgent-to-agent reasoning-as-a-service. Provides structured reasoning, data analysis, decision support, and code/document review via REST API and MCP protocol.
| Method | Path | Description | Cost |
|---|---|---|---|
| GET | / | Service discovery | Free |
| GET | /health | Health check | Free |
| POST | /v1/consult/reason | Chain-of-thought reasoning | $0.01–$0.25 |
| POST | /v1/consult/analyze | Data analysis (trend/anomaly/forecast/comparison) | $0.05 |
| POST | /v1/consult/decide | Decision support with weighted criteria | $0.05 |
| POST | /v1/consult/review | Code/contract/document/strategy review | $0.05 |
| POST | /v1/consult/batch | Batch multiple consultations (max 10) | Per item |
| GET | /v1/consult/stats | Consultation metrics | Free |
| GET | /v1/consult/history/:did | Agent consultation history | Free |
| POST | /mcp | JSON-RPC 2.0 MCP endpoint | Per tool |
| GET | /.well-known/ai-plugin.json | AI plugin discovery | Free |
Internal (platform-to-platform):
x-hive-internal: <service_key>
Bypasses payment for inter-service calls.
External (agent-to-agent):
Uses x402 micropayment protocol. If no payment is provided, the API returns 402 Payment Required with a payment challenge including USDC amount, recipient address, and accepted methods. Include payment proof in the X-Payment header.
| Depth | Cost | Steps | Description |
|---|---|---|---|
quick | $0.01 | 3 | Fast heuristic analysis |
standard | $0.05 | 6 | Balanced reasoning with evidence weighing |
deep | $0.25 | 12 | Exhaustive multi-perspective analysis |
HiveConsult exposes an MCP-compatible JSON-RPC 2.0 endpoint at /mcp.
POST /mcp
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list",
"params": {}
}
hiveconsult_reason — Structured reasoning with configurable depthhiveconsult_analyze — Data analysis (trend, anomaly, forecast, comparison)hiveconsult_decide — Multi-criteria decision supporthiveconsult_review — Code/contract/document/strategy reviewPOST /mcp
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "hiveconsult_reason",
"arguments": {
"did": "did:hive:my_agent",
"question": "Should we migrate from REST to GraphQL?",
"reasoning_depth": "standard",
"domain": "architecture"
}
}
}
npm install
npm start
The server starts on port 3000 (configurable via PORT env var).
curl -X POST http://localhost:3000/v1/consult/reason \
-H "Content-Type: application/json" \
-H "x-hive-internal: <service_key>" \
-d '{
"did": "did:hive:my_agent",
"question": "What is the optimal caching strategy for a read-heavy API?",
"reasoning_depth": "standard",
"domain": "backend"
}'
curl -X POST http://localhost:3000/v1/consult/decide \
-H "Content-Type: application/json" \
-H "x-hive-internal: <service_key>" \
-d '{
"did": "did:hive:my_agent",
"options": ["Redis", "Memcached", "CDN edge cache"],
"criteria": ["latency", "cost", "complexity", "scalability"],
"weights": [0.4, 0.2, 0.15, 0.25]
}'
MIT
Hive Civilization is the cryptographic backbone of autonomous agent commerce — the layer that makes every agent transaction provable, every payment settable, and every decision defensible.
This repository is part of the PROVABLE · SETTABLE · DEFENSIBLE pillar.
io.github.ericm1018/skillfm-llm-cost-optimizer-openai-anthropic-usage
io.github.mikerawsonnz/llm-orchestration-agent
io.github.mikerawsonnz/authenticated-llm-agent
labforgedev/copilot-memory-mcp
csoai-org/agent-prompt-injection-firewall-mcp
io.github.mikerawsonnz/authenticated-multi-llm-agent