تحديد نطاق المشروع والأدوات
قرّروا القدرات التي سيتيحها خادمكم.
تحديد نطاق المشروع والأدوات درس مجاني في MCP Academy على CoddyKit. هذا هو الدرس 1 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في MCP Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة MCP Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Time to Ship Something Real
You have learned the pieces; now you build a complete server. This capstone wraps one real service into a tidy, installable MCP server. 🚀
Start with the User Goal
Before any code, name the job your server helps with. A clear goal like search my notes keeps every later decision focused and small.
Pick One Real Service
Choose a single concrete backend: a notes folder, a SQLite database, or one public API. One source keeps the capstone shippable, not sprawling.
List the Capabilities
Write down what the AI should be able to do, like search, read, and add. This short capability list becomes your map of tools and resources.
Sort Actions from Reads
Split your list: things that change state are tools, things that only fetch context are resources. This sorting decides each primitive up front.
Sketch the Tool Signatures
For each tool, jot a name, its arguments, and what it returns. A quick signature sketch catches missing inputs long before you write logic.
# add_note(title: str, body: str) -> str
# search_notes(query: str) -> list[str]
# A two-line sketch is enough to start.Plan One Resource
Pick one piece of read-only context to expose as a resource, such as a single note by its id. Resources feed the model without taking action.
Plan One Prompt
Add one reusable prompt the user can trigger, like summarize this note. Prompts package your best instructions so callers do not retype them.
Define Done Early
Decide what finished looks like now: the server loads, lists three tools, and answers one real query. A clear scope stops endless feature creep.
Name the Server
Give your project a short, descriptive name like notes-mcp. Clients show this name to users, so make it instantly tell people what it does.
from mcp.server.fastmcp import FastMCP
mcp = FastMCP("notes-mcp")Write a Tiny Spec
Capture the plan in one short spec file: goal, backend, tools, resource, and prompt. This page becomes your checklist as you build the rest.
Quick Check
Let us confirm how you sort capabilities.
Recap
You scoped a real project: one goal, one backend, and a tight list of tools, a resource, and a prompt. A clear plan makes the build easy. 🎯
الأسئلة الشائعة
هل درس «تحديد نطاق المشروع والأدوات» مجاني؟
نعم — نص درس «تحديد نطاق المشروع والأدوات» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة MCP Academy، انتقل إلى CoddyKit PRO. تتضمن دورة MCP Academy 4 دروس في المجموع.
ماذا ستتعلم في «تحديد نطاق المشروع والأدوات»؟
قرّروا القدرات التي سيتيحها خادمكم. تتمرن على MCP Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ MCP Academy؟
لا تُشترط خبرة سابقة. MCP Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 1 من أصل 4.
كم من الوقت يستغرق درس «تحديد نطاق المشروع والأدوات»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس MCP Academy هذا؟
نعم. كل درس في MCP Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- تحديد نطاق المشروع والأدوات
- تنفيذ الأدوات والموارد والتعليمات
- الاختبار والفحص وتعزيز الأمان
- توثيق الخادم ونشره