Add standalone device-flow OAuth command
The current OAuth flow starts with the MCP server, opens the default browser, and requires a localhost callback. This is awkward with corporate SSO, remote shells, background MCP clients, or authentication in another browser profile.
Could Zereight support a standalone device-flow command?
Suggested flow:
- Print a GitLab authorization URL and user code.
- Let the user authenticate in any authenticated browser.
- Poll until authorization completes.
- Store the token using the existing OAuth token path.
- Reuse and refresh it when the MCP server starts.
For self-managed GitLab, the command could accept --api-url and --client-id.
[fforster/gitlab-mcp](https://gitlab.com/fforster/gitlab-mcp) provides a similar workflow through gitlab-mcp auth.
This could complement the existing GITLAB_USE_OAUTH callback flow and simplify OAuth for SSO, headless, and background-client environments.
Add standalone device-flow OAuth command
The current OAuth flow starts with the MCP server, opens the default browser, and requires a localhost callback. This is awkward with corporate SSO, remote shells, background MCP clients, or authentication in another browser profile.
Could Zereight support a standalone device-flow command?
Suggested flow:
For self-managed GitLab, the command could accept
--api-urland--client-id.[fforster/gitlab-mcp](https://gitlab.com/fforster/gitlab-mcp)provides a similar workflow throughgitlab-mcp auth.This could complement the existing
GITLAB_USE_OAUTHcallback flow and simplify OAuth for SSO, headless, and background-client environments.