<- All posts
-
[2/9]
MCP từ zero, bài 2: build MCP server đầu tiên với TypeScript và Python Hands-on bài 2 series MCP từ zero. Build MCP server hello-world bằng TS SDK + Python SDK, expose 1 tool 1 resource 1 prompt, transport stdio, test với Claude Desktop. Đầy đủ code, gotchas, debug. · ~15 min read
-
[3/9]
MCP từ zero, bài 3: transport sâu, stdio, SSE, Streamable HTTP Bài 3 series MCP từ zero. So sánh 3 transport của MCP: stdio (local), SSE (deprecated), Streamable HTTP (chuẩn mới 2025). Khi nào dùng cái nào, migration path, code example. · ~14 min read
-
[4/9]
MCP từ zero, bài 4: Auth và Authorization, OAuth 2.0 Resource Server Bài 4 series MCP từ zero. Authorization Server, Resource Server, DCR, token boundaries. Cấm token passthrough, scope, security checklist từ spec 2025-06-18. · ~16 min read
-
[5/9]
MCP từ zero, bài 5: resource design, pagination, cursor, MIME Bài 5. Cách thiết kế Resource cho MCP server: URI scheme, pagination với cursor, large payload, MIME types, streaming. · ~13 min read
-
[6/9]
MCP từ zero, bài 6: tool design, schema, error handling, idempotency Bài 6. Best practices thiết kế Tool MCP: naming, Zod/JSON Schema, error code, idempotency, side effects, dry-run. · ~12 min read
-
[7/9]
MCP từ zero, bài 7: prompt resources và sampling Bài 7. Prompt resources reusable, parameter binding, sampling (server hỏi client gọi LLM), use cases thực tế. · ~10 min read
-
[8/9]
MCP từ zero, bài 8: deploy MCP server, Cloudflare Workers, Railway, self-host Bài 8. Deploy MCP server lên production: Cloudflare Workers (cf-mcp-server), Railway, self-host Docker, secret management, HTTPS, observability. · ~9 min read
-
[11/9]
MCP từ zero, bài 11: test và evaluate MCP server, MCP Inspector và security checklist Bài 11. MCP Inspector dev tool (anthropic), integration test với client mocking, security checklist trước khi publish, contract test cho schema. · ~11 min read
-
[12/9]
MCP từ zero, bài 12: MCP cho Cursor, Windsurf, gptme, Codex, không chỉ Claude Bài 12. MCP server của bạn chạy được với client nào ngoài Claude Desktop? Cursor, Windsurf, gptme, OpenAI Codex, Continue. Setup mỗi client + khác biệt. · ~11 min read