0Pricing
MCP Academy · درس

إصدار الأدوات والمخططات

طوّروا خادمكم دون كسر العملاء.

إصدار الأدوات والمخططات درس مجاني في MCP Academy على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في MCP Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة MCP Academy 4 دروس في المجموع.

بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.

Clients Depend on Your Shapes

Once others connect, they rely on your tool names and argument shapes. Changing them carelessly breaks every client at once.

Additive Changes Are Safe

Adding an optional parameter with a default keeps old callers working. They simply ignore the new field they do not send.

def search(q: str, limit: int = 10) -> list:
    ...

Breaking Changes Hurt

Renaming a tool, removing an argument, or making one required is breaking. Existing clients suddenly send calls that no longer fit.

Add, Then Deprecate

To evolve a field, add the new one and keep the old. Mark the old as deprecated in its description so callers know to migrate.

Version in the Tool Name

For a real break, ship a v2 tool beside v1. Both run for a while, letting clients move over at their own pace.

@mcp.tool(name="search_v2")
def search_v2(query: str) -> list:
    ...

The Server Reports Its Version

Your server announces a name and version during the handshake. Bump it so clients can see which release they connected to.

mcp = FastMCP("my-server")
# version surfaces in server info

Follow Semantic Versioning

Use semver: bump patch for fixes, minor for additive features, and major when you make a breaking change. The number tells a story.

Widen, Don't Narrow, Outputs

Adding a field to a result is usually safe; removing one is breaking. Treat your output schema as a promise clients parse.

Keep a Changelog

Record every tool and schema change in a changelog. Users upgrading need to see what moved, what is new, and what is gone.

Give Deprecations a Sunset

Announce when an old tool will be removed. A clear sunset date pushes migration without yanking the rug from anyone abruptly.

Test Against Old Clients

Before release, run your tests as an older client would call you. That catches accidental breaks the type checker cannot see.

Quick Check

Which change to an existing tool is safe for current clients?

Recap: Evolving Safely

Prefer additive changes, deprecate before removing, ship v2 for real breaks, follow semver, and keep a changelog. You can ship with confidence! 🚀

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

هل درس «إصدار الأدوات والمخططات» مجاني؟

نعم — نص درس «إصدار الأدوات والمخططات» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة MCP Academy، انتقل إلى CoddyKit PRO. تتضمن دورة MCP Academy 4 دروس في المجموع.

ماذا ستتعلم في «إصدار الأدوات والمخططات»؟

طوّروا خادمكم دون كسر العملاء. تتمرن على MCP Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.

هل أحتاج إلى خبرة سابقة لأبدأ MCP Academy؟

لا تُشترط خبرة سابقة. MCP Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 4 من أصل 4.

كم من الوقت يستغرق درس «إصدار الأدوات والمخططات»؟

معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.

هل يمكنني كتابة وتشغيل أكواد في درس MCP Academy هذا؟

نعم. كل درس في MCP Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.

جميع الدروس في هذه الدورة

  1. بنية الخادم متعددة الطبقات
  2. الإعدادات والأسرار عبر البيئة
  3. أدوات متكررة وآمنة ومدركة للآثار الجانبية
  4. إصدار الأدوات والمخططات
← العودة إلى MCP Academy