# Other MCP clients

Connect any client that speaks the Model Context Protocol to Valakes through the MCP bridge, and check that the tools answer.

Source: https://docs.valakes.com/agents/mcp-clients/

Last updated: 2026-11-25

Any MCP client that can start a local program and talk to it over standard input and output can use Valakes. The program is the bridge, `valakes-mcp`. It is a thin relay: it forwards the client's MCP messages to the Valakes API on your computer, and the tool definitions live in Valakes, not in the bridge.

## What the client needs

The wizard's **Connect an agent** button has a choice for another MCP client. It shows the entry for your computer, and you place it where your client keeps its MCP servers. Every client needs the same three things.

- The `command`: the path of the bridge. `valakes-mcp.exe` is inside the `resources\bin` folder of the Valakes install on Windows, and `valakes-mcp` is in `Contents/Resources/bin` of the app on macOS.
- Empty `args`.
- `VALAKES_AGENT` in the environment, set to the handle of the agent you created in Valakes.

The first step is the same as for the other clients: turn on the API and create the agent, as described on the [Claude Code page](https://docs.valakes.com/agents/claude-code/#turn-on-the-api-and-create-the-agent). The entry in the `.mcp.json` form:

Windows:

```json
{
  "mcpServers": {
    "valakes": {
      "command": "C:\\Program Files\\Valakes\\resources\\bin\\valakes-mcp.exe",
      "args": [],
      "env": {
        "VALAKES_AGENT": "k3m9q2xa"
      }
    }
  }
}
```

macOS:

```json
{
  "mcpServers": {
    "valakes": {
      "command": "/Applications/Valakes.app/Contents/Resources/bin/valakes-mcp",
      "args": [],
      "env": {
        "VALAKES_AGENT": "k3m9q2xa"
      }
    }
  }
}
```

## What the bridge does for you

- It finds the port and the token by itself. No environment variable carries the token, and none sets the address of the server, so neither can be set wrongly. `VALAKES_AGENT` is the public handle only.
- It proves that the server is Valakes before it sends the token, on every new connection. [The REST page](https://docs.valakes.com/agents/rest-api/) lists the steps of that proof for a client that does not use the bridge.
- A second profile of Valakes with its own data folder adds `VALAKES_DATA_DIR` to the same `env`. It names a folder, never a URL and never a token.
- When it cannot start it prints one line and exits. The lines are listed on the [Claude Code page](https://docs.valakes.com/agents/claude-code/#check-that-it-works).

The client also receives Valakes' built-in guide when it connects: as the server's instructions and as the resource `valakes://guide`. Only a request that belongs to an authenticated agent gets it, and you do not paste instructions into a prompt.

## The tools

The client sees ten tools: `list_hosts`, `open_session`, `close_session`, `run_command`, `read_output`, `get_screen`, `send_keys`, `list_credentials`, `upload_file` and `download_file`. They are the same ten that the REST API serves. [How agents work](https://docs.valakes.com/agents/) says what each does and which access level allows it.

## Check that it works

Ask the client to call `list_hosts`. A host that is still on Off for agents is not in the answer, which is the intended result. Use the wizard's **Test connection** to see the first call from Valakes' side.

A client that talks to the `/mcp` endpoint itself, without the bridge, has to do the proof first on every connection, because the endpoint takes the same bearer token as the REST routes. Use the [REST API page](https://docs.valakes.com/agents/rest-api/) for that.
