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.
npx -y github:NguyenSen/entry-mcp-server — không cần clone, không cài global.Mở Dashboard ▸ API 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.
Claude Code:
Claude Desktop — thêm vào claude_desktop_config.json:
ENTRY_API_TOKEN bằng token ở Bước 1, rồi khởi động lại Claude.Giờ chỉ cần nói chuyện bình thường, agent tự gọi tool:
entry_tunnel_open → trả https://…entry.io.vnentry_ddns_create → nas.ddns.entry.io.vn + token cập nhậtentry_vpn_devices / entry_tunnels| Nhóm | Tool |
|---|---|
| Tunnel | entry_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 động | entry_ddns_list, entry_ddns_create, entry_ddns_delete, entry_ddns_update_ip |
| SSH key | entry_ssh_keys, entry_ssh_key_add, entry_ssh_key_delete |
| Subdomain | entry_reserved, entry_reserve_subdomain, entry_reserved_delete |
| VPN | entry_vpn_devices, entry_vpn_status |
| Tài khoản | entry_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).