Connect your AI to your machines
infersurge speaks MCP (Model Context Protocol), the same open standard used by ChatGPT, Claude, VS Code, Cursor and JetBrains. One endpoint, one token, every device you own.
Add a device
Sign in at app.infersurge.com, click Add Device, and run the one-line command on the machine you want to control. It connects out to the gateway over an encrypted WebSocket, so no inbound ports or VPN are needed.
Copy your MCP token
In the console's MCP card, copy the endpoint URL and generate your personal MCP token. The token authenticates your AI client to the gateway; revoke or rotate it anytime.
Point your AI at it
Add the remote MCP server to your client of choice below. Your AI instantly sees every online device as a set of tools: terminal, files, search, transfers, desktop control.
Per-client setup guides
All guides use the same two values from your console: the endpoint https://api-staging.infersurge.com/mcp and your MCP token. Pick your harness.
ChatGPT Connectors · remote MCP
Works with ChatGPT Plus / Pro / Business via custom connectors (developer mode).
- Open Settings → Connectors and enable Developer mode (available on paid plans).
- Click Create / Add custom connector.
- Set the MCP Server URL to
https://api-staging.infersurge.com/mcp. - Authentication: API key / Bearer token, paste your infersurge MCP token.
- Create, then start a new chat and pick your connector under the Developer mode tools menu.
web1__list_directory) so one connector covers all your devices.Claude Web & Desktop · custom connector
Works on claude.ai and Claude Desktop via remote MCP connectors.
- Open Settings → Connectors → Add custom connector (claude.ai, or Claude Desktop → Settings → Connectors).
- Remote MCP server URL:
https://api-staging.infersurge.com/mcp. - Authentication: choose Custom headers and add
Authorization: Bearer <your-mcp-token>. - Save and enable the connector in your conversation (plug icon).
VS Code Copilot agent mode · mcp.json
GitHub Copilot agent mode speaks MCP natively, with no extension needed.
- Command palette → MCP: Add Server → HTTP (HTTP or Server-Sent Events), or edit
.vscode/mcp.jsondirectly with the config below. - Reload and start Copilot agent mode; the infersurge tools appear in the tools picker.
// .vscode/mcp.json (user scope works too)
{
"servers": {
"infersurge": {
"type": "http",
"url": "https://api-staging.infersurge.com/mcp",
"headers": { "Authorization": "Bearer <your-mcp-token>" }
}
}
}Cursor MCP · mcp.json
Same remote-MCP shape as VS Code.
- Open Cursor Settings → MCP & Integrations → Add Custom MCP (or edit
~/.cursor/mcp.json). - Use the config below, then toggle the server on.
{
"mcpServers": {
"infersurge": {
"url": "https://api-staging.infersurge.com/mcp",
"headers": { "Authorization": "Bearer <your-mcp-token>" }
}
}
}JetBrains IDEs AI Assistant · MCP
IntelliJ, PyCharm, GoLand, and WebStorm all work: AI Assistant has built-in MCP client support.
- Settings → Tools → AI Assistant → MCP (or MCP Servers), click Add.
- Type: URL; URL:
https://api-staging.infersurge.com/mcp. - Add request header
Authorization: Bearer <your-mcp-token>. - Enable the server and ask the assistant to use your devices.
.jetbrains/mcp.json in the project root with the same shape as the Cursor example above.Any other MCP client Streamable HTTP
infersurge is a standard MCP Streamable-HTTP server: anything that can open a URL can connect.
- Endpoint
https://api-staging.infersurge.com/mcp- Transport
- Streamable HTTP (JSON-RPC over POST)
- Auth
Authorization: Bearer <mcp-token>- Tools
- Aggregated per device:
<device>__<tool>
tools/call counts as one command against your plan; failed, offline and timed-out calls are automatically refunded. Screenshots and image reads are metered by payload size.The device agent: one binary
The isg CLI is a single static Go binary with no runtime, no Node, and no dependencies. It enrolls your machine, holds a persistent encrypted WebSocket to the gateway, and executes tool calls locally under your path whitelist.
# Linux (amd64); other platforms: linux-arm64, darwin-amd64/arm64, windows-amd64/arm64 curl -fsSL https://www.infersurge.com/isg/install.sh | bash irm https://www.infersurge.com/isg/install.ps1 | iex # Windows (PowerShell) isg connect --token <enroll-token>
Generate the exact command (token included, expires in 10 minutes) from the console's Add Device dialog. Upgrade anytime with isg upgrade; updates are SHA-256 verified and swap atomically.
Or: let your AI do this
Copy the sentence below into the AI assistant running on THIS machine (Claude Code, etc.). It reads the official InferSurge skill, installs the isg agent, and walks the one-time enrollment — you only generate the command in your console. Cross-device note: this machine is usually not where you are chatting; run the AI there.
安装 https://www.infersurge.com/isg/SKILL.md 里的 InferSurge skill,然后按它的指引把这台电脑接入我的 InferSurge。注意:这台机器通常不是我们正在对话的设备——就在当前这台目标机器上执行全部步骤;我只需要去 app.infersurge.com 的「添加设备」生成一次性命令发给你。
The prompt carries no credentials — the one-time token comes only from your console, and every command the AI runs still goes through your assistant’s permission prompts.
Publish your own app
Software you already trust can become an InferSurge app on two delivery faces — one registry, one tool name, one audit trail.
- Web mode
- Runs in your container behind the gateway. Your agent calls the app__<name> tool, or the app's gateway URL (public, or owner-only), and the container wakes on the first call.
- MCP mode
- For software that depends on a local process or CLI: pick a HOST device from your own fleet and the app runs there. There is no HTTP URL — every call rides that device, and an offline device fails the call explicitly instead of silently running somewhere else.
- A skill per app
- Every published app ships a generated usage skill: the exact tool name, the JSON Schema of its arguments and, in MCP mode, the HOST device it runs on. Hand it to your agent and it can call the app in one sentence.
One script can be published once per mode — the two apps are independent rows with their own quota and audit trail.
Troubleshooting
The most common first-connection issues, and what to do about each.
- Symptom
- Fix
- 401 on connect
- Token missing or revoked. Regenerate it in the console MCP card and update the
Authorizationheader. - Tools list empty
- No device online. Re-run
isg connecton the target machine and check it shows online in the console. - 429 on tool call
- Monthly command quota reached. Check usage in the console or upgrade the plan.
- Device shows offline
- The CLI process stopped, or the network blocks outbound WSS (tcp/443). Restart it; it reconnects with exponential backoff.
Two minutes from signup to a controlled machine.
Free plan: 1 device, 10,000 commands / month. No credit card.