Nexara Connect docs0.1.0

Cursor (and Windsurf)

Before you start

Configure Cursor

Save as ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

{
  "mcpServers": {
    "nexara": {
      "url": "https://dev.nexara.ac/mcp",
      "headers": { "Authorization": "Bearer ${env:NEXARA_KEY}" }
    }
  }
}

Remote servers in Cursor do not read an envFile, so the key must be in the environment Cursor was started from.

Windsurf

Same shape in ~/.codeium/windsurf/mcp_config.json, with serverUrl instead of url:

{
  "mcpServers": {
    "nexara": {
      "serverUrl": "https://dev.nexara.ac/mcp",
      "headers": { "Authorization": "Bearer ${env:NEXARA_KEY}" }
    }
  }
}

Verify

Ask the agent to call context_whoami. It returns the agent name, workspace and grants. Or run:

curl -s https://dev.nexara.ac/mcp \
  -H "Authorization: Bearer $NEXARA_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"context_whoami","arguments":{}}}'

Troubleshooting

SymptomCause
401 invalid, expired or revoked tokenWrong key, key revoked, or a workspace lockdown bumped the token epoch. Mint a new key
401 git tokens (nxg_) are not accepted on /mcpYou pasted a git token. Use an nxc_ agent key
403 forbidden host or originThe server has ALLOWED_HOSTS set and your Host header is not in it
Tool result forbidden: ...The agent's grant does not cover that Space, action or sensitivity. Widen it on the agent page
Tool result step_up_requiredThe change needs a human with step-up; it was turned into a proposal
Generated from connect/cursor.md by docs/site/build.mjs. Edit the Markdown, then rebuild.