> ## Documentation Index
> Fetch the complete documentation index at: https://hub.hcompany.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> H Platform has three products: the Agents API (managed computer-use agents, base URL https://agp.eu.hcompany.ai/api/v2 or https://agp.hcompany.ai/api/v2 for the US), the Models API (Holo computer-use models for your own agent harness, OpenAI-compatible, at https://api.hcompany.ai/v1), and HoloTab (a free no-code Chrome extension that runs Holo in the user's browser, with recordable routines and schedules). The `holo` CLI (`pip install "hai-agents[cli]"`) runs Agents API agents from a terminal, drives the user's own desktop with `-a h/holo-desktop`, and serves coding agents through `holo mcp`.
> Authenticate with a bearer API key from the HAI_API_KEY environment variable. SDKs: `pip install hai-agents` (Python, `from hai_agents import Client`) and `npm install hai-agents` (TypeScript, `import { HaiAgentsClient } from "hai-agents"`). CLI: `holo`.
> Agents do work in a browser or on a desktop; describe the task as an imperative instruction. To run a task quickly, prefer the pre-built agent `h/web-surfer-flash`. Read results from the session's `latest_answer` after it reaches a terminal status.
> Sessions are the unit of work; wait for a terminal status (completed, failed, timed_out, interrupted), or idle for interactive sessions created with `idle_timeout_s`, before reading the answer. Use webhooks or the `changes` long-poll endpoint to follow progress.

# Your MCP tools

> Connect Linear, Notion, GitHub, and other MCP servers so a shell agent reaches them with mcporter. Keys stay on your machine.

An agent in [shell mode](https://hub.hcompany.ai/agents-api/your-desktop.md#shell-mode) can call the MCP servers you connect on this machine. It runs `mcporter` in its shell. Your keys never enter the agent's context or leave this machine.

This is separate from the [MCP servers](https://hub.hcompany.ai/agents-api/mcp.md) page, which is how Claude Code or Cursor hand tasks *to* H agents.

## Connect a server

Servers live in `~/.config/hai/mcp.json`, in the same `mcpServers` shape Cursor uses. `${VAR}` and `${env:VAR}` read from your environment, or from `~/.config/hai/.env`. An optional `description` helps the agent when the name alone is opaque.

```bash theme={"system"}
holo connections                          # name, URL or command
holo connections --check                  # connect, count tools, show failures
holo connections add linear https://mcp.linear.app/mcp \
  -H 'Authorization: Bearer ${LINEAR_KEY}' \
  -d "issue tracker"
holo connections add files -- npx -y @modelcontextprotocol/server-filesystem ~/Documents
holo connections import cursor            # or claude, claude-desktop
```

```json theme={"system"}
// ~/.config/hai/mcp.json
{
  "mcpServers": {
    "linear": {
      "url": "https://mcp.linear.app/mcp",
      "headers": { "Authorization": "Bearer ${LINEAR_KEY}" },
      "description": "issue tracker"
    },
    "files": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "~/Documents"]
    }
  }
}
```

## Run an agent that uses them

Any shell-mode agent on this machine sees the connected names (and descriptions) and the public `h/mcporter` skill:

```bash theme={"system"}
holo -a h/holo-code "List my Linear issues assigned to me this week"
```

```python theme={"system"}
from hai_agents import Client

Client().run_session(agent="h/holo-code", messages="List my open Linear issues")
# The client sends connections=[{name, description?}, ...] with the session.
```

The agent loads `mcporter`, then:

```bash theme={"system"}
mcporter list
mcporter list linear --brief
mcporter call linear.list_issues limit=10 --output json
```

## What stays private

| Path | Who reads it |
| - | - |
| `~/.config/hai/mcp.json` and `.env` | The bridge on this machine only |
| Variables named in `${VAR}` | Denied to the shell |
| Resolver on `127.0.0.1:<port>` | The only localhost port the [sandbox](https://hub.hcompany.ai/agents-api/your-desktop.md#sandbox) may reach for MCP |

The shell's `mcporter` config holds a run token and the resolver URL. It holds no user key.

## Session body

`POST /api/v2/sessions` accepts an optional `connections` array (max 100). Each entry is `{ "name": "..." }` with an optional `description` (max 200 chars). A bare name string is also accepted. The Python client fills it when it serves the shell bridge. Agents without a shell desktop ignore it.

```json theme={"system"}
{
  "agent": "h/holo-code",
  "messages": "Summarize my Linear inbox",
  "connections": [
    { "name": "linear", "description": "issue tracker" },
    { "name": "files" }
  ]
}
```

## Next

Cloud [workstations](https://hub.hcompany.ai/agents-api/environments/overview.md) will use the same field and the same `h/mcporter` skill, with keys in the platform vault instead of this machine. Until then, connect servers here for shell mode on your desktop.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.