Skip to content

feat: standalone device-flow OAuth command #591

Description

@eyablonowitz

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?

zereight-mcp-gitlab auth

Suggested flow:

  1. Print a GitLab authorization URL and user code.
  2. Let the user authenticate in any authenticated browser.
  3. Poll until authorization completes.
  4. Store the token using the existing OAuth token path.
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions