Skip to content

Decide login strategy by options or runtime #9

@erwinkramer

Description

@erwinkramer

When attempting to use the logintool somewhere hosted remote, I get:

2026-01-06T21:00:48.0082663Z warn: MCPify.Tools.LoginTool[0]
2026-01-06T21:00:48.0082895Z       Failed to open browser automatically.
2026-01-06T21:00:48.0082935Z       System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'xdg-open' with working directory '/home/site/wwwroot'. No such file or directory

It then takes about 2 minutes until i get a timeout:

2026-01-06T21:02:48.8722965Z info: MCPify.Tools.LoginTool[0]
2026-01-06T21:02:48.8723278Z       Login timed out or was cancelled for session 195e01704e564fc6a0b370337fd41186

...which makes sense, since it's hosted somewhere it cannot possibly open a browser for the client. But for the end user, this also means waiting 2 minutes. After that, the LLM does understand that it just has to give the client the URL so he/she can copy that into the browser to finalize the auth flow.

This library should either:

  1. have a configurable option to specify to not attempt this browser opening proces, or,
  2. recognize it cannot attempt it in the first place, by checking the capabilities of the runtime.

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