Trang chủHướng dẫn › MCP cho AI agent
Hướng dẫn · AI agent

MCP server — cho AI agent tự dùng entry.io.vn

MCP (Model Context Protocol) là chuẩn để AI agent gọi “tool”. Với MCP server này, Claude (Desktop/Code) hay bất kỳ agent nào có thể tự mở tunnel đưa localhost ra internet, quản DDNS, SSH key, subdomain, xem VPN — không cần bạn thao tác tay.

Bạn nói: "expose cổng 3000"Claude gọi entry_tunnel_openhttps://abc.entry.io.vn 🌍
📦 Cài 1 lệnh qua npx -y github:NguyenSen/entry-mcp-server — không cần clone, không cài global.
Bước 1

Lấy API token

Mở DashboardAPI tokens ▸ tạo → copy chuỗi entry_… (chỉ hiện 1 lần). Token = toàn quyền tài khoản, giữ kín.

Bước 2

Gắn vào agent — 1 lệnh

Claude Code:

claude mcp add entry-io-vn -e ENTRY_API_TOKEN=entry_xxxxxxxx -- npx -y github:NguyenSen/entry-mcp-server

Claude Desktop — thêm vào claude_desktop_config.json:

{ "mcpServers": { "entry-io-vn": { "command": "npx", "args": ["-y", "github:NguyenSen/entry-mcp-server"], "env": { "ENTRY_API_TOKEN": "entry_xxxxxxxx" } } } }
💡 Cần Node ≥ 18. Đổi ENTRY_API_TOKEN bằng token ở Bước 1, rồi khởi động lại Claude.
Bước 3

Bảo agent làm việc

Giờ chỉ cần nói chuyện bình thường, agent tự gọi tool:

Tools

23 tool agent gọi được

NhómTool
Tunnelentry_tunnel_open, entry_tunnel_close, entry_tunnels, entry_tunnels_local, entry_tunnel_acl_get, entry_tunnel_acl_set, entry_tunnel_acl_clear, entry_tcp_pool
DNS độngentry_ddns_list, entry_ddns_create, entry_ddns_delete, entry_ddns_update_ip
SSH keyentry_ssh_keys, entry_ssh_key_add, entry_ssh_key_delete
Subdomainentry_reserved, entry_reserve_subdomain, entry_reserved_delete
VPNentry_vpn_devices, entry_vpn_status
Tài khoảnentry_whoami, entry_stats, entry_usage
🔒 entry_tunnel_open chạy ssh -R nền trên máy bạn → cần ssh + SSH key đã thêm vào tài khoản (agent có thể tự thêm bằng entry_ssh_key_add).