# Cursor

Connect Cursor to Valakes through the MCP bridge, so the editor's agent can work on your SSH servers under your host policies.

Source: https://docs.valakes.com/agents/cursor/

Last updated: 2026-11-25

Valakes was designed to work with Cursor as one of the MCP clients, next to Claude Code and Codex. It has not been tested with Cursor yet, so check each step on your own computer. The setup guide in the app has sections for Claude Code and Codex, and its wizard offers another MCP client and REST. It has no Cursor section, so this page gives what the guide says for an MCP client and does not describe Cursor's own settings. Where Cursor keeps its MCP configuration is in Cursor's documentation.

## Connect it as another MCP client

1. Turn on the agent API and start the wizard: Settings, **Agent API**, then **Connect an agent** in the Agents panel. The steps are on the [Claude Code page](https://docs.valakes.com/agents/claude-code/#turn-on-the-api-and-create-the-agent).
2. Choose another MCP client in the wizard and give the agent a name you will know in the approval queue.
3. Add the entry below to Cursor's list of MCP servers. The wizard shows it with the right path for your computer.
4. Press **Test connection** in the wizard and start the client.

The entry has three parts: the `command`, which is the path of the bridge `valakes-mcp`, empty `args`, and `VALAKES_AGENT` in `env`, which is the handle of the agent. The handle is not a secret. The token never goes into the entry.

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"
      }
    }
  }
}
```

## Check that it works

Ask the agent to call `list_hosts`. It should return the hosts you opened to agents and no others, because a host stays invisible to an agent until you raise its agent access above Off. The wizard's **Test connection** shows the first call and its time from Valakes' side.

If the bridge cannot start, it prints one line that says why. The common lines and the fix for each are on the [Claude Code page](https://docs.valakes.com/agents/claude-code/#check-that-it-works).

## What to expect

Valakes serves the same ten tools to every MCP client, and each call passes the same gate in Valakes. Commands that the host's level does not allow on their own wait in the approval queue, shown as Valakes recorded them and not as the agent described them. Read [how agents work](https://docs.valakes.com/agents/) before you open a host to any agent, and see [other MCP clients](https://docs.valakes.com/agents/mcp-clients/) for the parts that apply to every client.
