Skip to content
Panel

MCP Connect

Authentication

An agent authenticates to the MCP endpoint with a tunnel key in the Authorization header.

An agent authenticates to https://mcp.mot3r.com/mcp with a tunnel key, sent as a bearer token on every request:

HTTP
POST /mcp HTTP/1.1
Host: mcp.mot3r.com
Content-Type: application/json
Accept: application/json, text/event-stream
Authorization: Bearer mot_lk_live_xxxxxxxxxxxx

The key is the agent's only credential. mot resolves it to an account and a tunnel, checks its scopes, the account's trust level and its balance, and then runs the tool.

#Which key to use

KeyPrefixOn /mcp
Tunnel keymot_lk_live_Works. The agent runs as the tunnel of the key.
Test keymot_tk_test_Works with test limits: no line_* tools, 300 calls per day.
Root keymot_sk_live_Refused with 401 root_key_not_allowed.

Create tunnel keys in the panel at mot3r.com/panel. The panel shows a key once; store it in your client's secret storage or an environment variable.

#What needs a key

RequestKey required
initializeYes
tools/listYes
prompts/listYes
tools/callYes
prompts/getYes
GET /mcpYes (and then returns 405)

Every MCP request without a key returns 401 missing_credential with WWW-Authenticate: Bearer realm="mot", resource_metadata="https://mcp.mot3r.com/.well-known/oauth-protected-resource". A connector (Claude, ChatGPT, Cursor, VS Code) reads that header and starts the sign-in: you click Connect, sign in to mot3r, approve, and the connector gets a tunnel key by itself. You never paste a key. The public tool list without a key is GET https://api.mot3r.com/v1/tools.

#Verify a key

Call a read-only tool. line_wiring_list returns the channel accounts of the tunnel and changes no state:

bash
curl -sS https://mcp.mot3r.com/mcp \
  -H "content-type: application/json" \
  -H "accept: application/json, text/event-stream" \
  -H "Authorization: Bearer mot_lk_live_xxxxxxxxxxxx" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"line_wiring_list","arguments":{}}}'

A wrong or revoked key returns:

JSON
{
  "jsonrpc": "2.0",
  "error": {
    "code": -32001,
    "message": "Unauthorized — invalid or revoked key.",
    "data": { "status": 401, "reason": "invalid_credential" }
  },
  "id": 1
}

Tool calls are metered, so a call with a valid key on an empty account returns 402 insufficient_balance instead.

#Revocation and rotation

A tool call always checks the key against the database. When you revoke or rotate a key in the panel, the next tool call with the old key returns 401 invalid_credential. After a rotation, update the key in every client that used it.

#Tokens

The REST endpoint POST /v1/token exchanges a key for a short-lived signed token for the REST API. The MCP endpoint does not accept these tokens: send the tunnel key itself. See Keys and tokens.