Cursor’s agent can already push to main. Decide what it can reach beyond the repo.

Agent mode can already edit every file in your repo. Add AgentValet as its MCP server and you decide the rest: which Slack channels it posts in, which HubSpot records it updates, and which calls wait for you. Read-only stays read-only, even when the agent tries to write.

Livelast reviewed 24 September 2026

One command writes the Cursor config

You need Node.js 18 or later. The same config file serves the Cursor editor and the cursor-agent CLI.

  1. In your project directory, run the register command.

    Terminal
    npx @agentvalet/register
  2. Your browser opens. Sign in, or create a free account, and the CLI finishes registering when you authorise it. You don’t copy any ids on this path.

  3. Restart Cursor and open Cursor settings, MCP section. agentvalet should be listed and connected. For the CLI, check with cursor-agent mcp list.

  4. In the dashboard, approve the new agent and grant the platforms it needs. It starts with nothing: every call is refused until you grant it.

Connect over OAuth instead, with no key file

This path needs your owner id. It’s in the dashboard under Settings, Account, Owner ID. The Connect Claude, ChatGPT, Copilot… button on the Agents page builds the whole URL for you.

  1. Add the server URL to ~/.cursor/mcp.json, or add it in Cursor settings, MCP section.

    ~/.cursor/mcp.json
    {
      "mcpServers": {
        "agentvalet": {
          "url": "https://api.agentvalet.ai/mcp/v1/<owner-id>"
        }
      }
    }
  2. Cursor shows Needs login next to AgentValet. Click it, sign in and approve. AgentValet creates a new agent for this connection with nothing granted.

  3. Grant that agent its platforms in the dashboard.

Write the MCP config by hand

Run npx @agentvalet/register once first. It creates the key on this machine and prints the four values below when it finishes. The MCP server needs all four; an entry without them won’t start.

  1. Add this to .cursor/mcp.json in your project, or ~/.cursor/mcp.json for every project.

    .cursor/mcp.json
    {
      "mcpServers": {
        "agentvalet": {
          "command": "npx",
          "args": ["-y", "@agentvalet/register@latest", "mcp-server"],
          "env": {
            "AGENT_ID": "<agent-id>",
            "OWNER_ID": "<owner-id>",
            "PROXY_URL": "https://api.agentvalet.ai",
            "AGENT_PRIVATE_KEY_PATH": "/absolute/path/to/.agentvalet/agent.key"
          }
        }
      }
    }

What’s governed here

Nothing is allowed until you grant it. This is a typical first grant for Cursor; you decide every row, and you can change it without touching the agent.

Example grant for Cursor. Platforms and actions are illustrative.
What the agent triesPlatformDecision
Read a design docGoogle DriveAllowed within grant
Post in #supportSlackAllowed within grant
Update a contact recordHubSpotAsks you
Push codeGitHubNot granted

Cursor guide in the docsThe longer walkthrough, kept with the product docs.

All integrations or the platforms your agents can reach

Put Cursor behind AgentValet.

Register the agent, grant only what it needs, and approve the risky calls from your phone. Free to start, no credit card.