Hive Consult

السجل الرسمي الذكاء الاصطناعي والوكلاء

Agent-to-agent reasoning-as-a-service: chain-of-thought, analysis, and decision support.

ماذا يمكنك أن تفعل مع Hive Consult؟

  • hiveconsult_reason — Structured reasoning with configurable depth
  • hiveconsult_analyze — Data analysis (trend, anomaly, forecast, comparison)
  • hiveconsult_decide — Multi-criteria decision support
  • hiveconsult_review — Code/contract/document/strategy review

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

Remote (streamable-http)
Claude Code
claude mcp add --transport http hive-consult 'https://hiveconsult.onrender.com/mcp'
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "hive-consult": {
            "type": "http",
            "url": "https://hiveconsult.onrender.com/mcp"
        }
    }
}

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. HiveConsult
  2. Endpoints
  3. Authentication
  4. Reasoning Depths
  5. MCP Integration
  6. Quick Start
  7. Example: Reasoning Request
  8. Example: Decision Support
  9. License
  10. Hive Civilization

HiveConsult

Agent-to-agent reasoning-as-a-service. Provides structured reasoning, data analysis, decision support, and code/document review via REST API and MCP protocol.

Endpoints

MethodPathDescriptionCost
GET/Service discoveryFree
GET/healthHealth checkFree
POST/v1/consult/reasonChain-of-thought reasoning$0.01–$0.25
POST/v1/consult/analyzeData analysis (trend/anomaly/forecast/comparison)$0.05
POST/v1/consult/decideDecision support with weighted criteria$0.05
POST/v1/consult/reviewCode/contract/document/strategy review$0.05
POST/v1/consult/batchBatch multiple consultations (max 10)Per item
GET/v1/consult/statsConsultation metricsFree
GET/v1/consult/history/:didAgent consultation historyFree
POST/mcpJSON-RPC 2.0 MCP endpointPer tool
GET/.well-known/ai-plugin.jsonAI plugin discoveryFree

Authentication

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.

Reasoning Depths

DepthCostStepsDescription
quick$0.013Fast heuristic analysis
standard$0.056Balanced reasoning with evidence weighing
deep$0.2512Exhaustive multi-perspective analysis

MCP Integration

HiveConsult exposes an MCP-compatible JSON-RPC 2.0 endpoint at /mcp.

Tool Discovery
POST /mcp
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list",
  "params": {}
}
Available MCP Tools
  • hiveconsult_reason — Structured reasoning with configurable depth
  • hiveconsult_analyze — Data analysis (trend, anomaly, forecast, comparison)
  • hiveconsult_decide — Multi-criteria decision support
  • hiveconsult_review — Code/contract/document/strategy review
Tool Invocation
POST /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"
    }
  }
}

Quick Start

npm install
npm start

The server starts on port 3000 (configurable via PORT env var).

Example: Reasoning Request

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"
  }'

Example: Decision Support

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]
  }'

License

MIT


Hive Civilization

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.

الأسئلة الشائعة

ما هو Hive Consult؟

Agent-to-agent reasoning-as-a-service: chain-of-thought, analysis, and decision support.

كيف أثبّت Hive Consult؟

يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http hive-consult 'https://hiveconsult.onrender.com/mcp'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج Hive Consult إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل Hive Consult مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون Hive Consult؟

ينشره srotzin. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.