مرجع API
MCP
سرور MCP برای دستیارهای هوش مصنوعی.
توضیح هر مسیر به انگلیسی است، همان متنی که مرجع از کد ساخته میشود. مسیرها، نام فیلدها و کدها هماناند که در درخواست مینویسید.
GET
/mcpNot supported: the server is stateless#
- دسترسی
- بدون اعتبارنامه
خطاها
| وضعیت | توضیح |
|---|---|
| 405 | method: POST JSON-RPC to /mcp |
| 500 | internal: an unexpected failure |
نمونه
درخواست
curl "https://api.ibel.ai/mcp" \
-H "Accept: application/json, text/event-stream"POST
/mcpMCP 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
jsonrpcstringone of
2.0idstring | integermethodstringparamsobject
پاسخ
200object
خطاها
| وضعیت | توضیح |
|---|---|
| 400 | Bad request: bad_json |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 413 | Body too large: too_large |
| 500 | internal: 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"}'