استكشاف الأخطاء وإصلاحها
ابدأ باستخدام doctor. ينفّذ كل الفحوصات التي كنت ستجريها بالتجربة والخطأ في عميل الذكاء الاصطناعي، ويخبرك بما عليك تغييره عند إخفاق أي فحص.
bash
npx -y @octri/mcp doctor --project-id YOUR_PROJECT_IDtext
PASS Project YOUR_PROJECT_ID
PASS Octri API https://api.octri.dev/api/v1 answered
PASS Operation tools 281 offered, 161 ask the user before each call (needs a client with MCP elicitation)
PASS Base URL https://api.acme.com/v1
PASS Credentials bearer auth: OCTRI_API_TOKEN set
PASS Test call listUsers: 200
INFO Usage reporting On. Set OCTRI_TELEMETRY=0 to turn it off.
Ready. Add the server to your client and ask it about your API.أضف --no-call لتخطي اختبار الاستدعاء. يُنهي doctor التنفيذ برمز خروج غير صفري عند إخفاق أي شيء، لذا يعمل أيضًا في CI. تستخدم الحزمة ذات العلامة التجارية الأمر نفسه: acme-payments-mcp doctor.
إذا نجح doctor لكن لم يعرض عميلك أي أدوات، فالمشكلة في إعدادات العميل، لا في الخادم.