رفتن به محتوا
cloudhostمستندات
مرجع API

MCP

سرور MCP برای دستیارهای هوش مصنوعی.

توضیح هر مسیر به انگلیسی است، همان متنی که مرجع از کد ساخته می‌شود. مسیرها، نام فیلدها و کدها همان‌اند که در درخواست می‌نویسید.
GET/mcp

Not supported: the server is stateless#

دسترسی
بدون اعتبارنامه

خطاها

وضعیتتوضیح
405method: POST JSON-RPC to /mcp
500internal: an unexpected failure

نمونه

درخواست
curl "https://api.ibel.ai/mcp" \
  -H "Accept: application/json, text/event-stream"
POST/mcp

MCP server (Streamable HTTP, stateless, JSON responses)#

Tools call the public API with the caller's credential; each call checks the role. Send Accept: application/json, text/event-stream. Body up to 64 MiB.

دسترسی
کلید API یا نشست داشبورد
نقش‌ها
همهٔ نقش‌ها

بدنهٔ درخواستapplication/json

  • jsonrpcstring

    one of 2.0

  • idstring | integer
  • methodstring
  • paramsobject

پاسخ

200object

خطاها

وضعیتتوضیح
400Bad request: bad_json
401unauthorized: missing, invalid, expired or revoked credential
413Body too large: too_large
500internal: an unexpected failure

نمونه

curl -X POST "https://api.ibel.ai/mcp" \
  -H "Authorization: Bearer $KEY" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'