Mcp Auth
mcp_authLast-resort email + OTP bind for this MCP session (headless only).
Prefer account-level Cursor Connect (Cloud / Grok Bot inherit it) or a
tsk_ header. Do not call this as the first hop. When the host has
no token:
mcp_auth(email="you@example.com")— we email a 6-digit code.Ask the human for the code, then
mcp_auth(email="you@example.com", code="123456").If
status=need_org, call again withorg_id=.
After status=authenticated, later tools on this streamable-HTTP
session run as that person. Do not store the code or any token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | One-time code from the login email. Pass together with email= after mcp_auth returned status=code_sent. | |
| No | Email to send a 6-digit login code to. Same OTP as the console and Cursor Connect. Omit (with no code) to see whether this session is already signed in. | ||
| org_id | No | Organization to attach when the email belongs to more than one org (status=need_org). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||