# Computer-Use Agents API

> Run and manage H Company's Computer-Use Agents from any MCP client.

- name: io.github.hcompai/hai-agents
- version: 1.0.0
- connection class: R1 (autonomous)
- trust: 90/100
- quality: 83/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/io.github.hcompai%2Fhai-agents
- tools: https://api.protogrid.dev/v1/servers/io.github.hcompai%2Fhai-agents/tools

**An agent can connect on its own if it already holds `HAI_AGENTS_TOKEN`.** Remote endpoint behind a static API key or header. The registry never sees the value; the agent fills the placeholder.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "hai-agents": {
      "type": "http",
      "url": "https://agp.hcompany.ai/mcp",
      "headers": {
        "Authorization": "Bearer ${HAI_AGENTS_TOKEN}"
      }
    }
  }
}
```

Placeholders to fill: `${HAI_AGENTS_TOKEN}`.

## Trust

- hygiene: 100
- liveness: 100
- freshness: 65
- provenance: 90
- drivers: +repository +namespace-matches-repo +website +reachable +uptime-100% ~updated-117d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 83/100 (good)

### protocol: 88 (weight 25)

- pass `protocol.modern`: supports 2026-07-28 (server/discover)
- pass `protocol.stateless`: answers without a session
- pass `protocol.transport`: streamable HTTP
- warn `protocol.list_ttl`: tools/list declares ttlMs 0, so clients re-fetch it on every use

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 71 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- fail `tools.annotations`: no tool declares readOnlyHint or destructiveHint, so clients cannot tell safe calls from risky ones
- fail `tools.directory_hints`: no tool declares all four of readOnlyHint, destructiveHint, idempotentHint and openWorldHint; missing: write_file (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); cancel_session (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); share_session (readOnlyHint, destructiveHint, idempotentHint, openWorldHint); …
- pass `tools.token_cost`: about 821 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump

### stability: 100 (weight 15)

- pass `stability.changes`: no tool changes in 30 days
- pass `stability.rug_pull`: no tool changed its meaning under the same name

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 9, about 821 tokens to load them all
- tool set hash: ba55478bf6ab1e016ea1e375331a89e2
- badge: [![protogrid quality](https://protogrid.dev/badge/io.github.hcompai/hai-agents.svg)](https://protogrid.dev/servers/io.github.hcompai/hai-agents)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Tool changes

_No tool definition changes recorded._

## Remotes

- https://agp.hcompany.ai/mcp (streamable-http, auth api_key ${HAI_AGENTS_TOKEN}, reachable true, uptime30d 1)
- https://agp.eu.hcompany.ai/mcp (streamable-http, auth api_key ${HAI_AGENTS_TOKEN}, reachable true, uptime30d 1)

## Packages

_none_

## Tools (9)

- `cancel_session`: Cancel a session; a no-op if it does not exist or already finished.
- `list_agents`: List agents the caller can run: their org's agents plus the public ``h/`` ones.
- `list_files`: List files on a browser session's machine (e.g. downloads), newest first.

``session_id`` is the browser session id issued by env-manager when the session was
created, not the id ``run_agent`` returns.

When a listing is truncated, page on the last entry's modified_at (ISO-8601)
and name, passed as modified_before and name_after. Send both: modification
times are not unique, and a timestamp alone skips the rest of a tied group.
- `read_file`: Read a file from a browser session's machine; returns base64 content and metadata.

``session_id`` is the browser session id issued by env-manager when the session was
created, not the id ``run_agent`` returns.
- `run_agent`: Start an agent on a task; return the answer or a session handle to wait on.

``agent`` is a name from list_agents, which runs its latest revision, or ``name:N`` to run revision N.
- `send_message`: Send a follow-up message to a running session.
- `share_session`: Make a session publicly readable and return its absolute share URL.
- `wait_for_session`: Poll a session: with ``wait`` long-poll for the answer, else return the current snapshot.
- `write_file`: Write base64-encoded content to a file on a browser session's machine.

``session_id`` is the browser session id issued by env-manager when the session was
created, not the id ``run_agent`` returns.
