nexus_oauth_login
Start the OAuth2 authorization-code flow to generate a browser URL for Nexus account approval, then exchange the returned code for bearer tokens that unlock user-context mutations.
Instructions
Start the OAuth2 authorization-code flow: returns the URL to open in a browser.
Uses PKCE S256 + random state (per the official Nexus OAuth guide). After approving, copy the 'code' query parameter from the final redirect URL and pass it to nexus_oauth_exchange. Bearer tokens then take precedence over NEXUS_API_KEY and unlock user-context mutations.
Returns: JSON {authorize_url, redirect_uri, state, instructions}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Space-separated OAuth scope. 'public' (or '') suffices for API access; 'public openid' adds identity. | public |
| redirect_uri | No | Override the callback URI. Must match the one registered with Nexus; override with env NEXUS_OAUTH_REDIRECT_URI. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |