Skip to main content
Computer-Use Agents ship an official Model Context Protocol server, so hosts like Cursor, Claude Code, VS Code, Codex, and Hermes can run and manage H agents as tools, with no HTTP or SDK code. It’s a remote, stateless streamable-HTTP endpoint at /mcp on your region’s host, authenticated with the same H API key (Authorization: Bearer hk-...). It works in any client that accepts a bearer header (Cursor, VS Code, Claude Code, OpenAI Codex, Hermes, the OpenAI API); clients that require OAuth, like Claude.ai web or the ChatGPT app, aren’t supported.

Add to your editor

One click installs the hai-agents server, then paste your API key when prompted. The buttons target the EU region (the default):
https://cdn.simpleicons.org/cursor/6b6b70

Add to Cursor

Opens Cursor and prompts to install.
https://cdn.jsdelivr.net/gh/devicons/devicon/icons/vscode/vscode-original.svg

Add to VS Code

Opens VS Code and prompts to install.
On the US region, use Add to Cursor or Add to VS Code instead. Registry-aware clients can also find it in the MCP Registry as io.github.hcompai/hai-agents.

Connect manually

Point your client at the /mcp URL for your region and add the Authorization header.
// ~/.cursor/mcp.json
{
  "mcpServers": {
    "hai-agents": {
      "url": "https://agp.eu.hcompany.ai/mcp",
      "headers": { "Authorization": "Bearer hk-..." }
    }
  }
}
Your API key is a secret. Keep it in your local client config; never commit it or paste it into a shared workspace file.
In a network-restricted sandbox (for example NVIDIA NemoClaw / OpenShell), also allow your region’s /mcp host in the sandbox egress policy, scoped to the process that makes the call, or the agent can’t reach the server. The computer-use-agents-demos repo has a worked NemoClaw example.

Tools

ToolWhat it does
run_agentStart an agent on a task. Returns the answer, or a session handle to wait on if the task runs long.
wait_for_sessionLong-poll a session for its answer, or fetch its current snapshot.
list_agentsList the agents you can run: your org’s agents plus the public h/ ones. Pass an agent’s name as the agent for run_agent.
send_messageSend a follow-up message to a running session.
cancel_sessionCancel a session.
share_sessionMake a session publicly viewable and return a share link.