VinUni Academic Assistant MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@VinUni Academic Assistant MCP ServerTra cứu điểm môn Giải tích của tôi trong học kỳ này"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🏫 BÀI LAB 3: CHATBOT VS REACT AGENT — TỪ LÝ THUYẾT ĐẾN THỰC THI (MCP ENHANCED)
Mã bài học:
DAY03-REACT-AGENT
Hình thức thực hiện: CÁ NHÂN (Mỗi học viên tự làm và tự nộp 1 bài cá nhân)
Quy chuẩn nộp bài: Học viên Fork Repo này về GitHub cá nhân và đổi tên theo đúng cú pháp:
📌K4-DAY03-HoVaTen-MSSV(Ví dụ:K4-DAY03-NguyenVanA-SV2026001)
⚡ 1. QUICKSTART — CÀI ĐẶT MÔI TRƯỜNG & CHẠY THỬ (3 PHÚT)
🐍 Yêu cầu môi trường Python: Python 3.10 – 3.12 (Tránh Python 3.9 do thiếu type hinting hiện đại và Python 3.13 do nhiều thư viện AI chưa hỗ trợ pre-built wheel).
Thực hiện 3 bước lệnh Terminal thiết thực ngay khi clone repo về máy:
Bước 1: Clone Repo & Tạo môi trường ảo
git clone https://github.com/<tai_khoan_cua_ban>/K4-DAY03-HoVaTen-MSSV.git
cd K4-DAY03-HoVaTen-MSSV
python -m venv .venv
# Trên Windows PowerShell:
.venv\Scripts\Activate.ps1
# Trên macOS / Linux / Bash / Zsh:
source .venv/bin/activateBước 2: Cài đặt thư viện & Tạo file cấu hình môi trường
pip install -r requirements.txt
# Trên Windows CMD/PowerShell:
copy .env.example .env
copy config\test_cases.example.json config\test_cases.json
# Trên macOS / Linux:
cp .env.example .env
cp config/test_cases.example.json config/test_cases.jsonBước 3: Chạy thử Baseline kiểm tra môi trường
python src/app.py --allKỳ vọng Output màn hình:
✅ [MOCK OFFLINE MODE PASS]: Môi trường đã sẵn sàng!
📊 [KẾT QUẢ TEST SUITE]: 2 Đã chạy (TC01, TC02 mẫu) | 3 Đang chờ viết câu hỏi (TODO)🔑 QUY ĐỊNH BẮT BUỘC VỀ API KEY VÀ NỘP BÀI (SUBMISSION REQUIREMENT):
Giai đoạn gõ code & debug (Miễn phí 0đ): Hệ thống mặc định chạy
MockOfflineProvidergiúp bạn thực hành gõ code, kiểm thử logic ban đầu hoàn toàn miễn phí, không tốn token, không lo nghẽn mạng.Giai đoạn NỘP BÀI CHÍNH THỨC (Bắt buộc dùng LLM thật): Khi chạy nghiệm thu để lấy dữ liệu dán vào báo cáo
docs/trace_eval.mdnộp bài, học viên BẮT BUỘC phải mở file.envđiềnGEMINI_API_KEY(hoặcOPENAI_API_KEY) để Agent giao tiếp với mô hình LLM thật.⚠️ Lưu ý: Bài nộp chỉ chạy trên Mock Provider mà không kết nối LLM API thật sẽ bị trừ điểm phần nghiệm thu thực tế (Tiêu chí 2 & Tiêu chí 3 trong Rubric).
Related MCP server: Swagger/Postman MCP Server
🎯 2. BỨC TRANH TỔNG THỂ & MỤC TIÊU DÀI HẠN (NORTH STAR GOAL)
Mục tiêu cốt lõi của Bài Lab này là giúp học viên tự tay phát triển một Trợ lý Tác tử ReAct (ReAct Agent) hoàn chỉnh.
Thay vì chỉ sinh văn bản hội thoại đơn thuần như Chatbot cơ bản, tác tử (Agent) của bạn sẽ có khả năng:
Tự suy luận và chọn công cụ: Chủ động kích hoạt vòng lặp ReAct (
Thought -> Action -> Observation) qua giao thức Model Context Protocol (MCP) để truy vấn dữ liệu thực tế.Tổng hợp câu trả lời chính xác: Sử dụng dữ liệu thực tế từ Tool trả về để trả lời sinh viên, tránh hiện tượng ảo giác (Hallucination).
Trích xuất bằng chứng (Trace Log): Ghi lại file vết
docs/trace_waterfall.jsonchứng minh chuỗi suy luận từng bước của Agent.
🌐 GIAO THỨC MODEL CONTEXT PROTOCOL (MCP):
Mã nguồnsrc/mcp_server.pymô phỏng kiến trúc MCP Server chuẩn (giao tiếp Client-Server độc lập qua giao thức JSON-RPC 2.0). Agent Core (src/app.py) đóng vai trò MCP Client gửi yêu cầu thực thi Tool tới MCP Server.
🗺️ 3. LUỒNG THỰC HÀNH TINH GIẢN 3 BƯỚC (DOCUMENTATION FLOW)
Học viên làm bài lần lượt theo đúng luồng 3 bước tinh giản dưới đây:
Bước | Tài liệu / Hành động | Nội dung thực hiện |
Bước 1 | 📄 | Nắm quy chế, chạy Quickstart verify môi trường offline miễn phí. |
Bước 2 | 🎓 | [TRỌNG TÂM] Chọn bài toán (Tham khảo gợi ý tại docs/DANH_SACH_DE_TAI.md) ➔ Phân tích Agentic Fit ➔ Điền |
Bước 3 | 📊 | Chạy test suite với API thật, xuất trace log, hoàn thiện báo cáo thu hoạch duy nhất và push repo nộp bài. |
⏱️ 4. PHÂN BỔ THỜI GIAN (180 PHÚT LÀM BÀI)
Phần 1 (45 phút): Agentic Fit & Tool Schemas (Đánh giá 4 tiêu chí Fit & Khai báo Tool Schema chuẩn JSON Schema)
Phần 2 (60 phút): ReAct Loop & MCP Integration (Viết hàm MCP Server & Vòng lặp Thought -> Action -> Observation)
Phần 3 (45 phút): Test Execution & Waterfall Log (Cắm API Key thật, chạy 5 Test Cases & Xuất file docs/trace_waterfall.json)
Phần 4 (30 phút): Self-Audit & Push GitHub (Tự kiểm tra code, hoàn thiện báo cáo docs/trace_eval.md & push bài nộp lên GitHub cá nhân)
📂 5. CẤU TRÚC THƯ MỤC DỰ ÁN
📁 K4-Day03-Lab-Chatbot-vs-ReAct-Agent-MCP/
├── 📄 README.md <-- ⚡ [BƯỚC 1] Quickstart setup & Cảnh báo quy định API Key
├── 📄 .env.example <-- 🔑 File cấu hình API Key (Gemini, OpenAI, Anthropic, Mock)
├── 📄 requirements.txt <-- 📦 Thư viện Python tương thích đa nền tảng
│
├── 📁 config/
│ ├── 📄 test_cases.example.json <-- 🟢 Mẫu Bộ 5 Test Cases (Copy thành test_cases.json)
│ └── 📄 test_cases.json <-- 🟢 Bộ 5 Test Cases tùy biến theo đề tài của bạn
│
├── 📁 src/ <-- 💻 MÃ NGUỒN PYTHON
│ ├── 📄 mcp_server.py <-- 🌐 MCP Server quản lý Tool Registry & JSON-RPC Dispatcher
│ ├── 📄 tools.py <-- 🛠️ Backend Tool Schemas JSON & Execution Layer
│ ├── 📄 prompts.py <-- 🛡️ System Prompts cho Chatbot và ReAct Agent
│ ├── 📄 providers.py <-- 🔌 Multi-Provider LLM Adapter (Gemini/OpenAI/Mock)
│ ├── 📄 app.py <-- 🚀 MCP Client & Core Agent App ghép nối ReAct Loop & Trace Log
│ └── 📁 ai_levels/ <-- 📚 [REFERENCE ONLY] Code mẫu kiến trúc tham khảo (Không sửa/debug)
│ └── 📄 README.md <-- ⚠️ Chú thích mã nguồn tham khảo
│
└── 📁 docs/ <-- 📚 TÀI LIỆU HƯỚNG DẪN CHUẨN VLEARN CODELAB
├── 📄 DANH_SACH_DE_TAI.md <-- 💡 Gợi ý chủ đề theo Lĩnh vực & Đề tài Mở
├── 📄 CODELAB.md <-- 🎓 [BƯỚC 2 - TRỌNG TÂM] Hướng dẫn Codelab thực hành theo checklist
└── 📄 trace_eval.md <-- 📊 [BƯỚC 3] File Báo cáo Nộp bài duy nhất (Submission Report Artifact)💯 6. THANG ĐIỂM ĐÁNH GIÁ (SCORING RUBRIC 100%)
Tiêu chí | Trọng số | Mô tả chi tiết | Bằng chứng kiểm tra (Artifacts) |
1. Agentic Fit & Tool Specs | 25% | Phân tích đúng 4 tiêu chí Agentic Fit. Khai báo Tool Schema chuẩn JSON Schema. | Bảng Scoring Matrix ( |
2. ReAct Loop & MCP Integration | 35% | Vòng lặp ReAct chạy mượt mà qua Native Tool Calling & MCP Server trên LLM API thật (Gemini/OpenAI). | Code trong |
3. Waterfall Trace & Observation | 25% | File log | File log |
4. Git Repository & Submission | 15% | Cấu trúc Repo sạch sẽ, commit chuẩn chỉ và nộp đúng hạn trên LMS VLearn. | Link Repo GitHub cá nhân. |
This server cannot be deployed
Maintenance
Related MCP Connectors
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
Discover, inspect and run 63,000+ agent tools from one balance. Pay per call, no subscriptions.
36 SEC, WCAG and entity-diligence tools behind 2 low-context ones: discover_tools, call_tool.
Search, inspect, recommend, and explain rated AI tools through Agent Radar.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides a standardized protocol for tool invocation, enabling an AI system to search the web, retrieve information, and provide relevant answers through integration with LangChain, RAG, and Ollama.2MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to dynamically discover and interact with APIs through Swagger/OpenAPI specifications and Postman collections using a strategic four-tool approach. It streamlines API integration by providing universal tools for endpoint discovery, detailed request information, and authenticated execution.1-
- FlicenseNot gradedqualityCmaintenanceEnables agents to discover and execute local tools via a Streamable HTTP endpoint using the Groq OpenAI-compatible API.-
- AlicenseNot gradedqualityCmaintenanceEnables registering custom agent tools via a minimal JSON-RPC over stdio implementation, with zero external dependencies, to expose them to AI agents like Claude, Cursor, and Gemini.MIT