Skip to content
Valakes docs
Menu

Other MCP clients

What this is for: MCP clients with Valakes

Last updated

On this page

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.

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. The entry in the .mcp.json form:

Windows:

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

macOS:

{
  "mcpServers": {
    "valakes": {
      "command": "/Applications/Valakes.app/Contents/Resources/bin/valakes-mcp",
      "args": [],
      "env": {
        "VALAKES_AGENT": "k3m9q2xa"
      }
    }
  }
}
  • 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 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.

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 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 says what each does and which access level allows it.

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 for that.