💻 1. Cấu hình IDE (Auto-Login)
Dành cho Antigravity, Claude Code, Cursor, VS Code, v.v.
IDE sẽ tự bật trình duyệt để xác thực. Bạn KHÔNG CẦN sinh token tĩnh ở Bước 2.
- Bắt buộc: Cài đặt:
npm install -g @modelcontextprotocol/mcp-remote
- Đóng tất cả process Node đang chạy ngầm hoặc kill terminal hiện tại để tránh kẹt port.
{
"mcpServers": {
"ndsvn-jira": {
"command": "mcp-remote",
"args": ["https://ndsvn-mcp-v2.qc.bonbonshop.vn/mcp/jira"]
},
"ndsvn-confluence": {
"command": "mcp-remote",
"args": ["https://ndsvn-mcp-v2.qc.bonbonshop.vn/mcp/confluence"]
},
"ndsvn-figma": {
"command": "mcp-remote",
"args": ["https://ndsvn-mcp-v2.qc.bonbonshop.vn/mcp/figma"]
},
"ndsvn-bitbucket": {
"command": "mcp-remote",
"args": ["https://ndsvn-mcp-v2.qc.bonbonshop.vn/mcp/bitbucket"]
},
"ndsvn-neo4j": {
"command": "mcp-remote",
"args": ["https://ndsvn-mcp-v2.qc.bonbonshop.vn/mcp/neo4j"]
}
}
}
⚙️ 2. Hệ thống Headless / CI/CD (Cần sinh Token tĩnh)
Chỉ sử dụng khi chạy trên Server, CI/CD Pipeline (GitLab, GitHub), hoặc Docker nơi không có màn hình hiển thị để tự động Auto-login.
⚠️ Save this token now — it won't be shown again! Push nó vào biến môi trường của hệ thống tự động.
Cách dùng: Tiêm Token tĩnh này vào Env block trong file mcp.json của Agent tự động:
{
"mcpServers": {
"my-headless-agent": {
"command": "mcp-remote",
"args": ["https://ndsvn-mcp-v2.qc.bonbonshop.vn/mcp/jira"],
"env": {
"Authorization": "Bearer <TOKEN_VỪA_GENERATE_BÊN_TRÊN>"
}
}
}
}