هذا جزء 2 من "LLMs كمكونات". جزء 1: لماذا تفشل أجهزة LLM كأجهزة الاستشعار تم تغطية خطأ الفئة في استخدام LLMs للإدراك.この記事 يغطى خطأ فئة في استعمال MCP كعمارة.
"كيف أبني خادم MCP
هناك SDKs . يمكن لـ LLM أن يقوم بسقوط واحد في ثواني . السؤال الحقيقي هو
ما الدور الذي يجب أن يلعبه خادم MCP داخل نظام لا يجب أن يكون موجوداً
المهارة النادرة الآن هي تصميم نظام حول MCP: السلطة, الإذن, القابلية للتحقق, والسيطرة المعرفية. MCP يتعامل مع النقل — تلك المشاكل تعيش في مكان آخر
هذا المقال يشرح كيف أستخدم MCP بدون المفاعلين , التحكم الذاتي , أو الأشعة, ولماذا معظم أمثلة MCP تعيد نفس المشاكل التي رأيناها مع calling أداة غير محدودة
MCP (Model Context Protocol) هو بروتوكول الأسلاك. إنها تتحرك:
إنها كذلك لا:
flowchart LR
subgraph MCP["MCP: What It Does"]
Schema[Schema Discovery] --> Transport[Transport Layer]
Transport --> Invoke[Tool Invocation]
Invoke --> Response[Structured Response]
end
subgraph NotMCP["Not MCP's Job"]
When[When to run?]
Trust[Is this true?]
Should[Should we act?]
Safe[Is this safe?]
end
style MCP fill:none,stroke:#16a34a,stroke-width:2px
style NotMCP fill:none,stroke:#dc2626,stroke-width:2px
style Schema fill:none,stroke:#059669,stroke-width:2px
style Transport fill:none,stroke:#059669,stroke-width:2px
style Invoke fill:none,stroke:#059669,stroke-width:2px
style Response fill:none,stroke:#059669,stroke-width:2px
style When fill:none,stroke:#dc2626,stroke-width:2px
style Trust fill:none,stroke:#dc2626,stroke-width:2px
style Should fill:none,stroke:#dc2626,stroke-width:2px
style Safe fill:none,stroke:#dc2626,stroke-width:2px
MCP أقرب إلى OpenAPI مما هو لشبكة عمل
إذا كنت تستخدم MCP كطبقة استدلالك الجزء 1.
إذا كان MCP هو النقل, فإن الهندسة المعمارية تعيش فوقه: الأوركستراشنMSC2 السياسةM SK3 التحقق من ذلكMST4 الإستمرارMst5 بقية هذا المقال هو تلك الطبقةM stk6
هذا هو القاعدة الأساسية من تقلل من RAG و الغموض المقيد:
في أنظمةي:
"Deterministic" هنا لا يعني 't مبسط القاعدة"MSC0governed" "MSC1reproducible","and auditable.
flowchart TD
subgraph Proposers["Proposers (Probabilistic)"]
LLM[LLM Synthesis]
MCP1[MCP Tool Response]
MCP2[MCP Tool Response]
end
subgraph Constrainer["Constrainer (Deterministic)"]
Validate[Validate Proposals]
Compare[Compare Confidence]
Policy[Apply Policy Rules]
Decide[Accept / Reject / Escalate]
end
subgraph Persistence["Persistence (Facts)"]
Facts[(Verified Facts<br/>With Provenance)]
end
LLM --> Validate
MCP1 --> Validate
MCP2 --> Validate
Validate --> Compare
Compare --> Policy
Policy --> Decide
Decide --> Facts
style Proposers fill:none,stroke:#d97706,stroke-width:2px
style Constrainer fill:none,stroke:#2563eb,stroke-width:2px
style Persistence fill:none,stroke:#16a34a,stroke-width:2px
style LLM fill:none,stroke:#d97706,stroke-width:2px
style MCP1 fill:none,stroke:#d97706,stroke-width:2px
style MCP2 fill:none,stroke:#d97706,stroke-width:2px
style Validate fill:none,stroke:#2563eb,stroke-width:2px
style Compare fill:none,stroke:#2563eb,stroke-width:2px
style Policy fill:none,stroke:#2563eb,stroke-width:2px
style Decide fill:none,stroke:#2563eb,stroke-width:2px
style Facts fill:none,stroke:#16a34a,stroke-width:3px
لم يقرر сервер MCP ' . "Constrainer" .
الخيار المبكر للـ MCP هو :
هذا يفشل لأسباب متوقعة:
إعادة صياغة: نقاط نهاية MCP تنشر الإشارات, لا الحركاتM SK2
flowchart LR
subgraph Wrong["❌ Tools Mental Model"]
Desc[Tool Description<br/>'Gets weather for city'] --> LLM1[LLM Chooses]
LLM1 --> Execute[Execute Action]
Execute --> Trust1[Trust Result?]
end
subgraph Right["✓ Signals Mental Model"]
Schema2[Typed Schema<br/>city: string, units: enum] --> Invoke2[Deterministic Invoke]
Invoke2 --> Signal[Signal Response<br/>+ confidence + provenance]
Signal --> Validate2[Constrainer Validates]
end
style Wrong fill:none,stroke:#dc2626,stroke-width:2px
style Right fill:none,stroke:#16a34a,stroke-width:2px
style Desc fill:none,stroke:#dc2626,stroke-width:2px
style LLM1 fill:none,stroke:#dc2626,stroke-width:2px
style Execute fill:none,stroke:#dc2626,stroke-width:2px
style Trust1 fill:none,stroke:#dc2626,stroke-width:2px
style Schema2 fill:none,stroke:#16a34a,stroke-width:2px
style Invoke2 fill:none,stroke:#16a34a,stroke-width:2px
style Signal fill:none,stroke:#16a34a,stroke-width:2px
style Validate2 fill:none,stroke:#16a34a,stroke-width:2px
كل نقطة نهاية MCP في أنظمةي لديها
لا حرة-سلطة النص. لا "أفضل جهدMSC3 إجاباتM SK4
أمثلة من أنظمة الإنتاج:
| إشارة | مصدر الثقة | ||||||
|---|---|---|---|---|---|---|---|
| إستخراج النص بصيغة أو سي آر | فلورانس-2 درجة الثقة | إتجاهات صندوق الإرتباط | |||||
| تصنيف الصور | نقاط مشابهة لـ CLIP | الدمج | + | نقطة مشابهة ♫ + | رقم مرجع للصورة ♫ | ||
| التحويل الصوتي | كلمة صامتة- الثقة في المستوى | نطاق اللقطات الزمنية S | |||||
| تحديد مكبر الصوت | مسافة تجمّع التزفير | حدود السلسلة |
القاعدة: إذا كان بإمكان الحصول على نتيجة ' لا يمكن اعتبارها , فهي غير مقبولة
هذا هو نفس المبدأ قانون التصميم #5: الحقائق تحتاج إلى دليل
معظم دروس MCP تظهر:
المكون المفقود هو المدرّس - المنطق المعرفي الذي :
flowchart TD
subgraph Sources["Signal Sources"]
Heuristics[Heuristics<br/>Text-likeliness: 0.3]
LocalModel[Local Model<br/>Florence-2 OCR: 0.85]
LLMCall[LLM Escalation<br/>GPT-4V: 0.92]
end
subgraph Constrainer["Constrainer Logic"]
Receive[Receive All Signals]
Check{Confidence<br/>≥ 0.7?}
Cross[Cross-Validate<br/>Signals Agree?]
Accept[Accept as Fact]
Reject[Reject / Log]
Escalate[Escalate to<br/>Higher Tier]
end
Heuristics --> Receive
LocalModel --> Receive
LLMCall --> Receive
Receive --> Check
Check -->|Yes| Cross
Check -->|No| Escalate
Cross -->|Yes| Accept
Cross -->|No| Reject
style Sources fill:none,stroke:#d97706,stroke-width:2px
style Constrainer fill:none,stroke:#2563eb,stroke-width:2px
style Heuristics fill:none,stroke:#d97706,stroke-width:2px
style LocalModel fill:none,stroke:#d97706,stroke-width:2px
style LLMCall fill:none,stroke:#d97706,stroke-width:2px
style Receive fill:none,stroke:#2563eb,stroke-width:2px
style Check fill:none,stroke:#2563eb,stroke-width:2px
style Cross fill:none,stroke:#2563eb,stroke-width:2px
style Accept fill:none,stroke:#16a34a,stroke-width:2px
style Reject fill:none,stroke:#dc2626,stroke-width:2px
style Escalate fill:none,stroke:#7c3aed,stroke-width:2px
القرارات الحقيقية للمتدرب
MCP يربط المكونات. يتحكّم بها الموصل
مازلت مخدمات MCP تعمل مع إيقاف LLM.
هذا ليس "مسك0" وليس نظام مزق "مسک1" إنه "مكسك2" الطريقة الأولية.
إذا توقف نظامك عن العمل عندما لا يوجد LLM
الوظائف الأساسية:
الـ LLM يصبح :
الـ LLM لا:
flowchart TD
subgraph AlwaysOn["Always On (Deterministic)"]
Sensors[Sensors + Heuristics]
Local[Local Models<br/>Florence-2, Whisper, CLIP]
Facts[(Facts Database)]
Query[Query Engine]
end
subgraph Optional["Optional (LLM)"]
Synthesis[Natural Language Synthesis]
Explain[Explanation Generation]
end
Sensors --> Local
Local --> Facts
Facts --> Query
Query --> Synthesis
Query --> Explain
style AlwaysOn fill:none,stroke:#16a34a,stroke-width:2px
style Optional fill:none,stroke:#6b7280,stroke-width:2px,stroke-dasharray: 5 5
style Sensors fill:none,stroke:#16a34a,stroke-width:2px
style Local fill:none,stroke:#16a34a,stroke-width:2px
style Facts fill:none,stroke:#16a34a,stroke-width:3px
style Query fill:none,stroke:#16a34a,stroke-width:2px
style Synthesis fill:none,stroke:#6b7280,stroke-width:2px
style Explain fill:none,stroke:#6b7280,stroke-width:2px
لماذا يهم هذا؟
| فائدة | LLM-الأنظمة المطلوبة MSC3 LLMSC4أنظمة إختيارية MSC5 | |
|---|---|---|
| التكلفة | لكل-تكاليف API للبحث | البنية التحتية ثابتة |
| الوثوقية | إنقطاع API = نظام على وشك الانقطاع | وظائف أساسية مستمرة |
| قابلة للاختبار | ردود فعل الـ LLM المزعجة | الافتراضات الإفتراضية |
| الثقة | "أخبرنا النماذج بذلك" ♫ | سلسلة الأدلة ♫ |
أنا أعامل MCP كـ الحدود القاسية:
هذا يختلف مع:
لماذا هي الحدود مهمة:
flowchart LR
subgraph Process1["Process: Orchestrator"]
Orch[Orchestrator<br/>Constrainer Logic]
end
subgraph Process2["Process: MCP Server 1"]
MCP1[Image Analysis<br/>Signals]
end
subgraph Process3["Process: MCP Server 2"]
MCP2[Audio Analysis<br/>Signals]
end
subgraph Process4["Process: MCP Server 3"]
MCP3[Video Analysis<br/>Signals]
end
Orch <-->|MCP Protocol| MCP1
Orch <-->|MCP Protocol| MCP2
Orch <-->|MCP Protocol| MCP3
style Process1 fill:none,stroke:#2563eb,stroke-width:2px
style Process2 fill:none,stroke:#16a34a,stroke-width:2px
style Process3 fill:none,stroke:#16a34a,stroke-width:2px
style Process4 fill:none,stroke:#16a34a,stroke-width:2px
style Orch fill:none,stroke:#2563eb,stroke-width:2px
style MCP1 fill:none,stroke:#16a34a,stroke-width:2px
style MCP2 fill:none,stroke:#16a34a,stroke-width:2px
style MCP3 fill:none,stroke:#16a34a,stroke-width:2px
حالات الفشل الحقيقية من استخدام MCP غير مقيد:
| حالت الفشل | سبب | تخفيض |
|---|---|---|
| هلوس الأدوات | تخريب الوصف في استنتاج LLM | |
| أكثر من - تم تنفيذه | أدوات إتصال النماذج " فقط للتحقق من . | |
| تدفق التخطيط | تغييرات سلوك الأداة, لا يوجد schemaM SK2t | نماذج م Versioned schemas |
| فشل جزئي صامت | الأداة تعيد البيانات الجزئية, يستمر النموذج | مراحل الثقة |
| الثقة المفرطة في LLM | النموذج يتعامل مع ناتج الأداة كحقيقة أساسية | Cross-validation |
| تصاعد القدرات | النموذج " تحركات " أدوات أكثر قوة تدريجياً | مستويات القدرات + جمع السياسات + ميزانيات |
السطر المشترك: هذه الفشلات تحدث لأن LLM موثوق به كسلطة.
الحل: الـ LLMs propose, constrainers decide, facts persist.
MCP ممتاز ل:
MCP هو لا:
إستخدم MCP لما هو : بروتوكول سلكية للتواصل المعماري بين المكونات.
MCP يقوم بتحديد كيفية تبادل النماذج وأدوات السياق. لا يحدد من يسمح بالتصرفM SK1 تحت أي ظروف, أو كيف يتم فحص القراراتMSC3
هناك أساليب أخرى لتشكيل هذه القيود (حياناً تسمى بروتوكولات قدرة التنفيذ, أCPM SK2 رخصة , إثبات
هذا المقال لا يتعلق بـ"مسك0" حول أCP "مسك1 ولكن "مسک2" حول مبدأ التصميم "مكس3" النقل والحكامة هي قضايا مختلفة.
MCP يخبرك كيف لتصل بأداة. شيء آخر يجب أن يقرر هل يجب أن تكون "مسك0" في أنظمةي "مكسك1" أن "مكسيك2" هو محرك التحضير "ميسيك3" في الأنظمة التجارية "مزيك4" قد يكون محرك سياسات "ميكيك5"
| وجهة نظر | مخطط تجريبي MCP | مخطط الإنتاج MCP | ||
|---|---|---|---|---|
| وصفات الأداة | لغة طبيعيةM SK1 مفصل | الحد الأدنى, الرسم التخطيطيMSC4أول | ||
| من يقرر أن يتصل | LLM | آلة الأوركسترا | ||
| صيغة الرد | حرة- شكل النص | إشارات مكتوبة بثقة | ||
| الvalidation | لا واحدة | متقاطعة- الvalidation | ||
| إعتماد LLM | مطلوب | تضخيم إختياري | ||
| إعادة اللعب | غير - محدد | قابل للتكاثر بالكامل S | ||
| مسار الفحص | سجلات المحادثة |
تمكن MCP التركيب. التفاضل والتكامل يُمكن الثقة. تمكن الـ LLMs الشفافية.
لكن فقط إذا
الإحتمال يقترح — والإستنتاجية تستمر .
MCP بدون مtrainer هو مجرد حقنة سريعة مع خطوات إضافية.
صنع التركيب الخطوة الأخيرة. جعل LLM إختياريا. جعل كل الحقائق قابلة للتتبعM SK2
في السلسلة السابقة: جزء 1: لماذا تفشل أجهزة LLM كأجهزة الاستشعار
© 2026 Scott Galloway — Unlicense — All content and source code on this site is free to use, copy, modify, and sell.