Vấn đề
Bạn đã bao giờ:
- Muốn Claude Code đọc data từ database của bạn?
- Muốn AI agent truy cập internal APIs?
- Cần AI generate tests mà không phải copy-paste context?
Vấn đề: Mỗi AI tool đã implement kết nối theo cách riêng. Không có standard.
Kết quả:
- Lock-in vào một AI provider
- Khó share tools giữa các agents
-重复 work mỗi khi switch tools
MCP giải quyết điều này.
MCP là gì?
Model Context Protocol là một open protocol cho phép AI models giao tiếp với external resources theo standardized way.
Think của nó như:
- REST API cho microservices communication
- MCP cho AI agent-to-tool communication
Kiến trúc cơ bản
┌─────────────┐ MCP ┌─────────────┐
│ AI Model │◄──────────────►│ MCP Server │
└─────────────┘ └──────┬──────┘
│
┌──────────────────┼──────────────────┐
│ │ │
┌────▼────┐ ┌──────▼──────┐ ┌────▼────┐
│Database │ │ File │ │ API │
│ │ │ System │ │ │
└─────────┘ └─────────────┘ └─────────┘
MCP Server là intermediary — implement protocol và expose resources cho AI model.
MCP Tools đã có sẵn
| Tool | Use Case | Provider |
|---|---|---|
| TestSprite | AI-powered testing agent | MCP native |
| Filesystem | Read/write local files | Native MCP |
| Git | Repository operations | Native MCP |
| Database | Query databases directly | Community |
| Slack/Discord | Send messages | Community |
| Web fetch | Browse URLs | Community |
Implement MCP trong Claude Code
# Cài đặt MCP servers cho Claude Code
claude-code mcp add-filesystem -- npm install -g @anthropic/mcp-filesystem
claude-code mcp add-test -- npx @testsprite/testsprite-mcp@latest
Example: Filesystem MCP
# Sau khi configure filesystem MCP
claude-code "Đọc tất cả các files trong ./src/services/ và tạo documentation"
# Claude Code có thể access filesystem trực tiếp
# Không cần copy-paste code
Example: TestSprite MCP
// .cursor/mcp.json
{
"mcpServers": {
"TestSprite": {
"command": "npx",
"args": ["@testsprite/testsprite-mcp@latest"],
"env": { "API_KEY": "your-api-key" }
}
}
}
3 giai đoạn của AI-Augmented Development
| Phase | Time | Role | What It Means |
|---|---|---|---|
| Autocomplete | 2024 | Coder | AI suggests code; you write everything |
| Partial Autonomy | 2025 | Conductor | AI handles multi-step tasks; you review |
| Background Agents | 2026+ | Orchestrator | AI agents run workflows autonomously |
MCP accelerates Phase 3 — standardized tool access cho agents.
Khi nào dùng MCP
Phù hợp:
- Enterprise integration — cần AI access internal systems
- Testing automation — TestSprite MCP cho autonomous testing
- Multi-agent workflows — standardized tool sharing
- Custom tool development — build once, use across models
Không cần MCP khi:
- Simple autocomplete tasks
- Single file edits
- Basic q&a không cần external data
MCP vs Alternatives
| Approach | Pros | Cons |
|---|---|---|
| MCP | Standardized, portable | Still emerging |
| Custom API wrappers | Flexible | Lock-in, not portable |
| In-context learning | No setup | Expensive, slow |
| Fine-tuning | Optimized | Expensive, static |
Getting Started
# 1. Check MCP support
claude-code --version # >= v2.3 required
# 2. Discover MCP servers
npm search @anthropic/mcp-* # official
npm search mcp-* # community
# 3. Add a server
claude-code mcp add <server-name> <command>
# 4. Verify
claude-code mcp list
Góc nhìn từ team BKGlobal
Tại BKGlobal, chúng tôi đang evaluate MCP cho:
- CI/CD integration — AI agents access build systems via MCP
- Database queries — Developers ask questions about data via AI
- Test automation — TestSprite MCP cho comprehensive testing
Điều này ảnh hưởng thế nào đến project đang chạy? MCP có potential giảm 40-60% effort cho integration tasks — AI access systems tự động thay vì manually configure.
Takeaway
MCP is the API layer for AI agents — standardized, open, và đang grow nhanh. Nếu bạn đang build multi-tool AI workflows hoặc enterprise integration, MCP là worth evaluating now.
Start với:
- TestSprite MCP cho testing
- Filesystem MCP cho file operations
- Custom MCP cho internal tools
Son Do — BKGlobal Tech Team