mcp-for-beginners / vi
AGENTS.md17k starsChanged 3 months agoMITView on GitHub
MCP dành cho người mới bắt đầu là một chương trình học mở nguồn về giao thức Model Context Protocol (MCP) - một khuôn khổ tiêu chuẩn hóa cho sự tương tác giữa các mô hình AI và các ứng dụng khách. Kho lưu trữ này cung cấp tài liệu học tập toàn diện với các ví dụ mã thực hành trên nhiều ngôn ngữ lập trình. Đây là kho tài liệu tập trung. Hầu hết việc thiết lập diễn…
- Installs packages
Trending
More talk lately.about the whole repository
Who's talking about microsoft/mcp-for-beginners
- @sungkim.bsky.social“Do you want to Level Up Your AI Skills with Model Context Protocol (MCP)? Microsoft has provided "Model …”Bluesky · May 21, 2025 · 43 likes
- @ponceto91.bsky.social“Si vous cherchez quelques ressources sur le MCP (Model Context Protocol) et que vous débutez sur le sujet, …”Bluesky · Aug 14, 2025 · 29 likes
- @luke.geek.nz“[Share] mcp-for-beginners This open-source curriculum is designed to teach the concepts and fundamentals of …”Bluesky · May 21, 2025 · 12 likes
- @harjit.bsky.social“MCP For Beginners github.com/microsoft/mc...”Bluesky · May 20, 2025 · 8 likes
- @pythonhub.dev“microsoft / mcp-for-beginners This open-source curriculum is designed to teach the concepts and …”Bluesky · Jul 16, 2025 · 7 likes
The biggest 5 of 69 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 69
Talked about on GitHub and Bluesky (69 times).
On GitHub · 46
- May 9, 2026Translation is stuck midway (en→jp) — Azure/co-op-translator1 reaction · 2 comments
- Apr 28, 2026Update link text from 'Solution' to '解答例' (en→jp) — Azure/co-op-translator1 reaction · 1 comment
- Apr 26, 2026Overtranslation within a code block (en→jp) — Azure/co-op-translator1 reaction · 2 comments
- Dec 20, 2025docs(guides): add Microsoft MCP for Beginners highlights — TomasHer/prompting-blueprints1 reaction
- Sep 16, 2025"[Solution]" in the link is not translated (en→ja) — Azure/co-op-translator1 reaction · 1 comment
41 more on GitHub
- Sep 11, 2025MCP and A2A — pacoxu/AI-Infra1 reaction · 2 comments
- Sep 5, 2025When translating from English to Japanese, it gets skipped. (en→ja) — Azure/co-op-translator1 reaction · 4 comments
- May 19, 2025Arabic ligatures bug in images — Azure/co-op-translator1 reaction · 4 comments
- Nov 1, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Oct 26, 2026fix(content): point MCP-for-beginners chapter links at the upstream course — jeremylongshore/startaitools.com0 reactions
- Oct 25, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Oct 18, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Oct 11, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions
- Sep 4, 2026Curso MCP for beginners — MarioCodes/dotnet-ai-experiments0 reactions
- Jul 18, 2026[번역] microsoft / mcp-for-beginners — roomedia/ax-trend0 reactions
- May 7, 2026AI Discovery: 2026-05-07 — liyunhui0707/Markdown-Editor0 reactions
- May 5, 2026AI Discovery: 2026-05-05 — liyunhui0707/Markdown-Editor0 reactions · 1 comment
- Apr 20, 2026Mermaid diagram translation (en→jp) — Azure/co-op-translator0 reactions · 2 comments
- Mar 11, 2026Investigar MCP — MarioCodes/dotnet-ai-experiments0 reactions
- Mar 6, 2026Check trending repo: microsoft/mcp-for-beginners — uibm/trending-watcher0 reactions · 2 comments
- Feb 22, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions · 1 comment
- Feb 15, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions · 1 comment
- Feb 15, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions · 1 comment
- Feb 8, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions · 1 comment
- Feb 1, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions · 1 comment
- Jan 27, 2026Papasito — davidarmandosanchezcruz54-source/vigilant-fiesta0 reactions
- Jan 27, 2026Papasito — davidarmandosanchezcruz54-source/vigilant-fiesta0 reactions
- Jan 27, 2026Papasito — davidarmandosanchezcruz54-source/vigilant-fiesta0 reactions
- Jan 27, 2026David Armando — davidarmandosanchezcruz54-source/vigilancia0 reactions
- Jan 25, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions · 1 comment
- Jan 18, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions · 1 comment
- Jan 11, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions · 1 comment
- Jan 4, 2026Link Checker Report — microsoft/generative-ai-with-javascript0 reactions · 1 comment
- Dec 28, 2025Link Checker Report — microsoft/generative-ai-with-javascript0 reactions · 1 comment
- Dec 21, 2025Link Checker Report — microsoft/generative-ai-with-javascript0 reactions · 1 comment
- Dec 14, 2025Link Checker Report — microsoft/generative-ai-with-javascript0 reactions · 1 comment
- Dec 7, 2025Link Checker Report — microsoft/generative-ai-with-javascript0 reactions · 1 comment
- Nov 30, 2025Link Checker Report — microsoft/generative-ai-with-javascript0 reactions · 1 comment
- Nov 23, 2025Link Checker Report — microsoft/generative-ai-with-javascript0 reactions · 1 comment
- Nov 16, 2025Link Checker Report — microsoft/generative-ai-with-javascript0 reactions · 1 comment
- Nov 9, 2025Link Checker Report — microsoft/generative-ai-with-javascript0 reactions · 1 comment
- Nov 2, 2025Link Checker Report — microsoft/generative-ai-with-javascript0 reactions · 1 comment
- Sep 16, 2025Update README.md (Untranslated "Solution") — microsoft/generative-ai-for-beginners0 reactions · 1 comment
- Sep 4, 2025mcp-for-beginners: https://github.com/microsoft/mcp-for-beginners — Keekuun/tool-soft0 reactions
- Aug 6, 2025Check trending repo: microsoft/mcp-for-beginners — uibm/trending-watcher0 reactions · 1 comment
- May 22, 2025MCP 新的学习课程(微软) — YoubetDao/proposals0 reactions
On Bluesky · 23
- May 21, 2025Do you want to Level Up Your AI Skills with Model Context Protocol (MCP)? Microsoft has provided "Model Context Protocol (MCP) Curriculum… — @sungkim.bsky.social43 likes and reposts · 2 replies
- Aug 14, 2025Si vous cherchez quelques ressources sur le MCP (Model Context Protocol) et que vous débutez sur le sujet, ce dépôt peut vous être utile,… — @ponceto91.bsky.social29 likes and reposts · 2 replies
- May 21, 2025[Share] mcp-for-beginners This open-source curriculum is designed to teach the concepts and fundamentals of the Model Context Protocol… — @luke.geek.nz12 likes and reposts · 1 reply
- May 20, 2025MCP For Beginners github.com/microsoft/mc... — @harjit.bsky.social8 likes and reposts
- Jul 16, 2025microsoft / mcp-for-beginners This open-source curriculum is designed to teach the concepts and fundamentals of the Model Context Protocol… — @pythonhub.dev7 likes and reposts
18 more on Bluesky
- Jul 18, 2025MCP for beginners: github.com/microsoft/mc... — @lea-linux.org6 likes and reposts · 2 replies
- May 20, 2025GitHub - microsoft/mcp-for-beginners: This open-source curriculum is designed to teach the concepts and fundamentals of the Model Context… — @tech-trending.bsky.social5 likes and reposts
- Aug 8, 2025お、MCPを触りたくなったらこれをガッツリやればいい感じなのかな GitHub - microsoft/mcp-for-beginners: This open-source curriculum introduces the fundamentals of Model… — @koshian.bsky.social4 likes and reposts
- May 21, 2025This open-source curriculum is designed to teach the concepts and fundamentals of the Model Context Protocol (#MCP), with practical… — @sstranger.bsky.social4 likes and reposts
- Jul 31, 2025📦 microsoft / mcp-for-beginners ⭐ 5,920 (+83) 🗒 Python This open-source curriculum introduces the fundamentals of Model Context Protocol… — @github-trending.bsky.social3 likes and reposts
- Mar 5, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / mcp-for-beginners ⭐ 14,693 (+122) 🗒 Jupyter Notebook This open-source curriculum… — @github-trending.bsky.social2 likes and reposts
- Aug 5, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 microsoft / mcp-for-beginners ⭐ 6,704 (+133) 🗒 Python This open-source curriculum introduces the… — @github-trending.bsky.social2 likes and reposts
- Jun 3, 2025github.com/microsoft/mc... - an #MCP self-directed workshop for #dotNET, #Java, #TypeScript, and #Python. — @robrich.bsky.social2 likes and reposts
- May 30, 2025🚀 Check out the AI Repo of the Week: MCP for Beginners. A must learn topic for AI developers! 🌟 👉 github.com/microsoft/mc... #GitHub #AI… — @danwahlin.bsky.social2 likes and reposts
- May 28, 2025github.com/microsoft/mc... — @akanoa.bsky.social2 likes and reposts
- Mar 9, 2026Microsoft lanzó curso de 'MCP para Principiantes' como un repositorio en Github. El curso cubre la creación de MCP en C#, Java, Typescript,… — @grovertec.bsky.social1 likes and repost
- Jun 29, 2025GitHub repo → github.com/microsoft/m... — @arindam-1729.bsky.social1 likes and repost · 1 reply
- Jun 27, 202540개 이상의 언어로 제공되는 10개의 실습 랩으로 구성된 초보자용 MCP 과정! VS Code를 사용하여 .NET, Java, TypeScript, JavaScript, Python의 실제 예제를 통해 MCP 기본 사항을 학습하세요.… — @kimkaran1004.bsky.social1 likes and repost
- Jun 12, 2025"Whether you're an AI developer, system architect, or software engineer, this guide is your comprehensive resource for mastering MCP… — @rickvandenbosch.net1 likes and repost
- May 25, 2025🚀 Model Context Protocol (MCP) Curriculum for Beginners Learn MCP with Hands-on Code Examples in C#, Java, JavaScript, Python, and… — @kuanhoong.bsky.social1 likes and repost
- May 20, 2025MicrosoftによるMCP初心者向けカリキュラム 機械翻訳だが日本語含む多言語対応 github.com/microsoft/mc... — @bsky.n-s.tokyo1 likes and repost
- Nov 4, 20256️⃣ Cómo empezar Fork + clone → módulos 00–03 → ejecuta ejemplos → integra en tu agente. Repo: — @juanyobluesky.bsky.social0 likes and reposts · 1 reply
- Nov 4, 20251️⃣ MCP es el “USB” de la IA: conecta modelos con herramientas/servicios sin integraciones raras. Si construyes agentes o chatbots, te… — @juanyobluesky.bsky.social0 likes and reposts · 1 reply
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- translations/ar/AGENTS.mdAGENTS.md
- translations/bg/AGENTS.mdAGENTS.md
- translations/bn/AGENTS.mdAGENTS.md
- translations/cs/AGENTS.mdAGENTS.md
- translations/da/AGENTS.mdAGENTS.md
- translations/de/AGENTS.mdAGENTS.md
- translations/el/AGENTS.mdAGENTS.md
- translations/en/AGENTS.mdAGENTS.md
- translations/es/AGENTS.mdAGENTS.md
- translations/et/AGENTS.mdAGENTS.md
- translations/fa/AGENTS.mdAGENTS.md
- translations/fi/AGENTS.mdAGENTS.md
- translations/fr/AGENTS.mdAGENTS.md
- translations/he/AGENTS.mdAGENTS.md
- translations/hi/AGENTS.mdAGENTS.md
- translations/hr/AGENTS.mdAGENTS.md
- translations/hu/AGENTS.mdAGENTS.md
- translations/id/AGENTS.mdAGENTS.md
- translations/it/AGENTS.mdAGENTS.md
- translations/ja/AGENTS.mdAGENTS.md
- translations/km/AGENTS.mdAGENTS.md
- translations/kn/AGENTS.mdAGENTS.md
- translations/ko/AGENTS.mdAGENTS.md
- translations/lt/AGENTS.mdAGENTS.md
- translations/ml/AGENTS.mdAGENTS.md
- translations/mr/AGENTS.mdAGENTS.md
- translations/ms/AGENTS.mdAGENTS.md
- translations/my/AGENTS.mdAGENTS.md
- translations/ne/AGENTS.mdAGENTS.md
- translations/nl/AGENTS.mdAGENTS.md
- translations/no/AGENTS.mdAGENTS.md
- translations/pa/AGENTS.mdAGENTS.md
- translations/pcm/AGENTS.mdAGENTS.md
- translations/pl/AGENTS.mdAGENTS.md
- translations/pt-BR/AGENTS.mdAGENTS.md
- translations/pt-PT/AGENTS.mdAGENTS.md
- translations/ro/AGENTS.mdAGENTS.md
- translations/ru/AGENTS.mdAGENTS.md
- translations/sk/AGENTS.mdAGENTS.md
- translations/sl/AGENTS.mdAGENTS.md
- translations/sr/AGENTS.mdAGENTS.md
- translations/sv/AGENTS.mdAGENTS.md
- translations/sw/AGENTS.mdAGENTS.md
- translations/ta/AGENTS.mdAGENTS.md
- translations/te/AGENTS.mdAGENTS.md
- translations/th/AGENTS.mdAGENTS.md
- translations/tl/AGENTS.mdAGENTS.md
- translations/tr/AGENTS.mdAGENTS.md
- translations/uk/AGENTS.mdAGENTS.md
- translations/ur/AGENTS.mdAGENTS.md
- translations/zh-CN/AGENTS.mdAGENTS.md
- translations/zh-HK/AGENTS.mdAGENTS.md
- translations/zh-MO/AGENTS.mdAGENTS.md
- translations/zh-TW/AGENTS.mdAGENTS.md
The file
Files
AGENTS.md
Tổng quan về dự án
MCP dành cho người mới bắt đầu là một chương trình học mở nguồn về giao thức Model Context Protocol (MCP) - một khuôn khổ tiêu chuẩn hóa cho sự tương tác giữa các mô hình AI và các ứng dụng khách. Kho lưu trữ này cung cấp tài liệu học tập toàn diện với các ví dụ mã thực hành trên nhiều ngôn ngữ lập trình.
Công nghệ chính
- Ngôn ngữ lập trình: C#, Java, JavaScript, TypeScript, Python, Rust
- Framework & SDK:
- MCP SDK (
@modelcontextprotocol/sdk) - Spring Boot (Java)
- FastMCP (Python)
- LangChain4j (Java)
- MCP SDK (
- Cơ sở dữ liệu: PostgreSQL với phần mở rộng pgvector
- Nền tảng đám mây: Azure (Container Apps, OpenAI, Content Safety, Application Insights)
- Công cụ xây dựng: npm, Maven, pip, Cargo
- Tài liệu: Markdown với dịch tự động đa ngôn ngữ (hơn 48 ngôn ngữ)
Kiến trúc
- 11 mô-đun lõi (00-11): Lộ trình học tuần tự từ cơ bản đến nâng cao
- Phòng thí nghiệm thực hành: Bài tập thực tế với mã giải pháp hoàn chỉnh trên nhiều ngôn ngữ
- Dự án mẫu: Các triển khai máy chủ và ứng dụng khách MCP hoạt động được
- Hệ thống dịch thuật: Quy trình làm việc Github Actions tự động hỗ trợ đa ngôn ngữ
- Tài sản hình ảnh: Thư mục tập trung hình ảnh với các phiên bản đã dịch
Lệnh thiết lập
Đây là kho tài liệu tập trung. Hầu hết việc thiết lập diễn ra trong các dự án mẫu và phòng thí nghiệm riêng biệt.
Thiết lập kho lưu trữ
# Sao chép kho lưu trữ
git clone https://github.com/microsoft/mcp-for-beginners.git
cd mcp-for-beginnersLàm việc với dự án mẫu
Các dự án mẫu nằm ở:
03-GettingStarted/samples/- Ví dụ theo từng ngôn ngữ03-GettingStarted/01-first-server/solution/- Các triển khai máy chủ đầu tiên03-GettingStarted/02-client/solution/- Các triển khai ứng dụng khách11-MCPServerHandsOnLabs/- Phòng thí nghiệm tích hợp cơ sở dữ liệu toàn diện
Mỗi dự án mẫu có hướng dẫn thiết lập riêng:
Dự án TypeScript/JavaScript
cd <project-directory>
npm install
npm startDự án Python
cd <project-directory>
pip install -r requirements.txt
# hoặc
pip install -e .
python main.pyDự án Java
cd <project-directory>
mvn clean install
mvn spring-boot:runQuy trình phát triển
Sẵn sàng MCP 7-28
Danh sách kiểm tra sẵn sàng repo
- Rõ ràng cho người đóng góp mới: Tệp này định nghĩa mục đích kho, cấu trúc, quy tắc đóng góp và đường dẫn thiết lập mẫu.
- Lệnh xây dựng/kiểm tra/lint với cờ chính xác:
- Kiểm tra lint tài liệu kho lưu trữ:
npx --yes markdownlint-cli2 "**/*.md" "#node_modules" "#translations" "#translated_images" - Kiểm tra mẫu đường dẫn liên kết tài liệu kho:
find . -name "*.md" -not -path "*/node_modules/*" -not -path "./translations/*" -not -path "./translated_images/*" -print0 | xargs -0 grep -En "\[.*\]\(.*\)" - Xác thực mẫu TypeScript:
cd 03-GettingStarted/samples/typescript && npm ci && npm test && npm run build - Xác thực mẫu Python:
cd 10-StreamliningAIWorkflowsBuildingAnMCPServerWithAIToolkit/lab3/code/weather_mcp && python -m pip install -e . && pytest -q - Xác thực mẫu Java:
cd 03-GettingStarted/samples/java/calculator && mvn -B -ntp test verify
- Kiểm tra lint tài liệu kho lưu trữ:
- Một quy trình công việc thực tế có thể trở thành công cụ MCP:
validate_curriculum_change - Đầu vào/đầu ra rõ ràng (xem đặc tả bên dưới).
- Quyền và các chế độ lỗi được ghi chép (xem đặc tả bên dưới).
- Khả năng kiểm thử CI rõ ràng (lệnh xác định, mã thoát rõ ràng, và đầu ra có thể đọc bằng máy).
Quy trình công cụ MCP ứng viên: validate_curriculum_change
Mục tiêu
Xác thực các thay đổi tài liệu chương trình và mã mẫu đại diện trước khi hợp nhất.
Đầu vào
changed_paths: string[](bắt buộc) - đường dẫn tương đối thay đổi trong PR.run_docs_lint: boolean(mặc địnhtrue)run_links_audit: boolean(mặc địnhtrue)run_samples: { typescript?: boolean, python?: boolean, java?: boolean }(mặc định tất cảfalse)
Đầu ra
status: "ok" | "failed"checks: Array<{ name: string, command: string, exit_code: number, summary: string }>artifacts: Array<{ type: "log" | "report", path: string }>failed_checks: string[]
Quyền hạn
- Chỉ đọc file không gian làm việc và ghi tác phẩm do công cụ tạo ra (ví dụ, báo cáo lint,
nhật ký kiểm thử); không ghi
translations/hoặctranslated_images/. - Thực thi các lệnh shell cục bộ.
- Truy cập mạng tùy chọn chỉ được dùng để phục hồi gói (
npm ci,python -m pip install,mvnphân giải phụ thuộc). - Không có quyền đẩy, gộp hoặc sửa đổi
translations/hoặctranslated_images/.
Chế độ lỗi
E_NO_INPUT_PATHS:changed_pathstrống.E_INVALID_PATH: đường dẫn đầu vào thoát khỏi gốc kho lưu trữ.E_LINT_FAILED: lint markdown thoát không bằng 0.E_LINK_AUDIT_FAILED: lệnh kiểm tra liên kết thoát không bằng 0.E_SAMPLE_TEST_FAILED: kiểm thử/máy xây mẫu thoát không bằng 0.E_TIMEOUT: lệnh vượt quá thời gian cấu hình.
Hợp đồng CI được đề xuất
Để tự động xác thực, cấu hình một công việc CI mà:
- Kích hoạt khi có yêu cầu kéo ảnh hưởng
*.md, mã mẫu hoặc tệp này. - Chạy các lệnh chính xác đã liệt kê ở trên.
- Lưu trữ nhật ký dưới dạng tác phẩm.
- Công việc thất bại khi có mã thoát khác 0.
Nếu bạn phát hành một máy chủ MCP từ kho này
- Đọc nhật ký thay đổi MCP cuối cùng
2026-07-28: https://modelcontextprotocol.io/specification/2026-07-28/changelog - Xác minh bản phát hành SDK được chọn hỗ trợ MCP
2026-07-28: https://modelcontextprotocol.io/docs/sdk - Loại bỏ giả định phiên và bắt tay; xem mỗi yêu cầu như một thực thể độc lập: https://modelcontextprotocol.io/specification/2026-07-28/basic/lifecycle
- Gửi tiêu đề
Mcp-MethodvàMcp-Namecho các yêu cầu HTTP thô: https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http - Kiểm toán mã lỗi cứng (
missing resourcechuyển từ-32002sang-32602). - Di cư các Roots, Sampling, Logging và Dynamic Client đã lỗi thời Đăng ký: https://modelcontextprotocol.io/specification/2026-07-28/deprecated
- Di cư khỏi API Nhiệm vụ thử nghiệm
2025-11-25: https://modelcontextprotocol.io/extensions/tasks - Rà soát ủy quyền để củng cố OAuth và OpenID Connect: https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization
Cấu trúc Tài liệu
- Modules 00-11: Nội dung chương trình cốt lõi theo thứ tự tuần tự
- translations/: Phiên bản ngôn ngữ cụ thể (tự động tạo, không chỉnh sửa trực tiếp)
- translated_images/: Phiên bản hình ảnh địa phương hóa (tự động tạo)
- images/: Hình ảnh và sơ đồ nguồn
Thực hiện Thay đổi Tài liệu
- Chỉ chỉnh sửa các tệp markdown tiếng Anh trong các thư mục module gốc (00-11)
- Cập nhật hình ảnh trong thư mục
images/nếu cần - Hành động GitHub co-op-translator sẽ tự động tạo bản dịch
- Bản dịch được tạo lại khi đẩy lên nhánh chính
Làm việc với Các Bản dịch
- Dịch tự động: Quy trình làm việc GitHub Actions xử lý tất cả các bản dịch
- KHÔNG chỉnh sửa thủ công các tệp trong thư mục
translations/ - Metadữ liệu bản dịch được nhúng trong mỗi tệp dịch
- Các ngôn ngữ được hỗ trợ: hơn 48 ngôn ngữ bao gồm Ả Rập, Trung Quốc, Pháp, Đức, Hindi, Nhật, Hàn, Bồ Đào Nha, Nga, Tây Ban Nha và nhiều hơn nữa
Hướng dẫn Kiểm thử
Xác thực Tài liệu
Vì đây chủ yếu là kho tài liệu, kiểm thử tập trung vào:
Kiểm tra Mẫu Liên kết: Liệt kê các liên kết Markdown để rà soát
# Liệt kê các liên kết Markdown (kiểm tra mẫu) find . -name "*.md" -not -path "*/node_modules/*" -not -path "./translations/*" -not -path "./translated_images/*" -print0 | xargs -0 grep -En "\[.*\]\(.*\)"Xác thực Ví dụ Mã: Kiểm tra ví dụ mã có thể biên dịch/chạy được
# Điều hướng đến mẫu cụ thể và chạy các bài kiểm tra của nó cd 03-GettingStarted/samples/typescript npm install && npm testKiểm tra Lint Markdown: Kiểm tra độ nhất quán định dạng
# Sử dụng markdownlint nếu cần thiết npx --yes markdownlint-cli2 "**/*.md" "#node_modules" "#translations" "#translated_images"
Kiểm thử Dự án Mẫu
Mỗi mẫu ngôn ngữ có phương pháp kiểm thử riêng:
TypeScript/JavaScript
npm test
npm run buildPython
pytest
python -m pytest tests/Java
mvn test
mvn verifyHướng dẫn Phong cách Mã
Phong cách Tài liệu
- Sử dụng ngôn ngữ rõ ràng, thân thiện với người mới bắt đầu
- Bao gồm ví dụ mã trong nhiều ngôn ngữ khi có thể
- Tuân theo các thực tiễn tốt nhất về markdown:
- Sử dụng tiêu đề kiểu ATX (cú pháp
#) - Sử dụng các khối mã có hàng rào với định danh ngôn ngữ
- Bao gồm văn bản alt mô tả cho hình ảnh
- Giữ độ dài dòng hợp lý (không giới hạn cứng, nhưng cần hợp lý)
- Sử dụng tiêu đề kiểu ATX (cú pháp
Phong cách Ví dụ Mã
TypeScript/JavaScript
- Sử dụng các module ES (
import/export) - Tuân theo quy ước chế độ nghiêm ngặt TypeScript
- Bao gồm chú thích kiểu
- Mục tiêu ES2022
Python
- Tuân theo hướng dẫn phong cách PEP 8
- Sử dụng gợi ý kiểu khi phù hợp
- Bao gồm docstring cho hàm và lớp
- Sử dụng các tính năng Python hiện đại (3.8+)
Java
- Tuân theo quy ước Spring Boot
- Sử dụng các tính năng Java 21
- Tuân theo cấu trúc dự án Maven chuẩn
- Bao gồm chú thích Javadoc
Tổ chức Tệp
<module-number>-<ModuleName>/
├── README.md # Main module content
├── samples/ # Code examples (if applicable)
│ ├── typescript/
│ ├── python/
│ ├── java/
│ └── ...
└── solution/ # Complete working solutions
└── <language>/Xây dựng và Triển khai
Triển khai Tài liệu
Kho lưu trữ sử dụng GitHub Pages hoặc tương tự để lưu trữ tài liệu (nếu có). Thay đổi lên nhánh chính sẽ kích hoạt:
- Quy trình làm việc bản dịch (
.github/workflows/co-op-translator.yml) - Dịch tự động tất cả các tệp markdown tiếng Anh
- Định vị hình ảnh khi cần thiết
Không cần quy trình xây dựng
Kho lưu trữ này chủ yếu chứa tài liệu markdown. Không cần biên dịch hoặc bước xây dựng cho nội dung chương trình học cốt lõi.
Triển khai dự án mẫu
Các dự án mẫu riêng lẻ có thể có hướng dẫn triển khai:
- Xem
03-GettingStarted/09-deployment/để hướng dẫn triển khai máy chủ MCP - Ví dụ triển khai Azure Container Apps trong
11-MCPServerHandsOnLabs/
Hướng dẫn đóng góp
Quy trình Pull Request
- Fork và Clone: Fork kho lưu trữ và clone bản fork của bạn về máy
- Tạo nhánh: Sử dụng tên nhánh mô tả (ví dụ:
fix/typo-module-3,add/python-example) - Thực hiện thay đổi: Chỉ chỉnh sửa các tệp markdown tiếng Anh (không chỉnh sửa bản dịch)
- Kiểm tra cục bộ: Xác nhận markdown hiển thị đúng
- Gửi PR: Sử dụng tiêu đề và mô tả PR rõ ràng
- CLA: Ký Thỏa thuận Giấy phép Đóng góp của Microsoft khi được yêu cầu
Định dạng tiêu đề PR
Sử dụng tiêu đề rõ ràng, mô tả:
[Module XX] Mô tả ngắncho thay đổi riêng từng module[Samples] Mô tảcho thay đổi mẫu mã nguồn[Docs] Mô tảcho cập nhật tài liệu chung
Những gì cần đóng góp
- Sửa lỗi trong tài liệu hoặc mẫu mã
- Ví dụ mã nguồn mới bằng các ngôn ngữ bổ sung
- Làm rõ và cải thiện nội dung hiện có
- Nghiên cứu trường hợp hoặc ví dụ thực tiễn mới
- Báo cáo lỗi cho nội dung không rõ hoặc sai
Những gì KHÔNG nên làm
- Không chỉnh sửa trực tiếp các tệp trong thư mục
translations/ - Không chỉnh sửa thư mục
translated_images/ - Không thêm tệp nhị phân lớn nếu chưa thảo luận
- Không thay đổi các tệp quy trình dịch thuật nếu chưa phối hợp
Ghi chú bổ sung
Bảo trì kho lưu trữ
- Changelog: Tất cả thay đổi quan trọng được ghi lại trong
changelog.md - Hướng dẫn học tập: Sử dụng
study_guide.mdđể tổng quan định hướng chương trình học - Mẫu báo cáo lỗi: Sử dụng mẫu báo cáo lỗi trên GitHub để báo lỗi và đề xuất tính năng
- Quy tắc ứng xử: Tất cả người đóng góp phải tuân thủ Quy tắc Ứng xử mã nguồn mở của Microsoft
Lộ trình học
Theo các module theo thứ tự tuần tự (00-11) để học hiệu quả:
- 00-02: Những kiến thức nền tảng (Giới thiệu, Khái niệm cốt lõi, An ninh)
- 03: Bắt đầu với thực hành làm việc trực tiếp
- 04-05: Thực hành và các chủ đề nâng cao
- 06-10: Cộng đồng, thực hành tốt nhất, và ứng dụng thực tế
- 11: Các bài lab tích hợp cơ sở dữ liệu toàn diện (13 bài liên tiếp)
Tài nguyên hỗ trợ
- Tài liệu: https://modelcontextprotocol.io/
- Đặc tả: https://modelcontextprotocol.io/specification/2026-07-28/
- Cộng đồng: https://github.com/orgs/modelcontextprotocol/discussions
- Discord: Máy chủ Discord Microsoft Foundry
- Khóa học liên quan: Xem README.md để biết các lộ trình học khác của Microsoft
Xử lý sự cố phổ biến
Q: PR của tôi bị lỗi kiểm tra bản dịch A: Đảm bảo bạn chỉ chỉnh sửa các tệp markdown tiếng Anh trong thư mục module gốc, không chỉnh sửa các bản dịch.
Q: Làm thế nào để tôi thêm ngôn ngữ mới? A: Hỗ trợ ngôn ngữ được quản lý thông qua quy trình làm việc co-op-translator. Mở một issue để thảo luận về việc thêm ngôn ngữ mới.
Q: Mẫu mã không hoạt động
A: Đảm bảo bạn đã làm theo hướng dẫn cài đặt trong README của mẫu cụ thể đó. Kiểm tra xem bạn đã cài đặt đúng phiên bản các phụ thuộc chưa.
Hỏi: Hình ảnh không hiển thị
A: Xác minh rằng các đường dẫn hình ảnh là đường dẫn tương đối và sử dụng dấu gạch chéo xuôi. Hình ảnh nên nằm trong thư mục images/ hoặc translated_images/ cho các phiên bản đã được dịch thuật.
Các cân nhắc về hiệu suất
- Quy trình dịch có thể mất vài phút để hoàn thành
- Hình ảnh lớn nên được tối ưu hóa trước khi cam kết
- Giữ các file markdown riêng lẻ tập trung và có kích thước hợp lý
- Sử dụng liên kết tương đối để tăng khả năng di động
Quản trị dự án
Dự án này tuân theo các thực hành mã nguồn mở của Microsoft:
- Giấy phép MIT cho mã và tài liệu
- Bộ Quy tắc ứng xử Mã nguồn mở của Microsoft
- Yêu cầu CLA cho các đóng góp
- Vấn đề bảo mật: Tuân theo hướng dẫn trong SECURITY.md
- Hỗ trợ: Xem SUPPORT.md để biết tài nguyên trợ giúp
<!-- CO-OP TRANSLATOR DISCLAIMER START -->Tuyên bố miễn trừ trách nhiệm: Tài liệu này đã được dịch bằng dịch vụ dịch thuật AI Co-op Translator. Mặc dù chúng tôi cố gắng đảm bảo độ chính xác, xin lưu ý rằng bản dịch tự động có thể chứa lỗi hoặc sai sót. Tài liệu gốc bằng ngôn ngữ gốc nên được coi là nguồn tin chính thức. Đối với thông tin quan trọng, nên sử dụng dịch vụ dịch thuật chuyên nghiệp bởi con người. Chúng tôi không chịu trách nhiệm về bất kỳ hiểu lầm hoặc giải thích sai nào phát sinh từ việc sử dụng bản dịch này.
<!-- CO-OP TRANSLATOR DISCLAIMER END -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

