Repository navigation
fix(mcpx): report 'waiting for OAuth sign-in' instead of a generic discover timeout - #271
Merged
Merged
Conversation
…scover timeout Port of dezren39/nix PR #383 (its #370) to this repo's pkgs/mcpx copy: mcp-remote parks an unfinished OAuth sign-in on disk (~/.mcp-auth/mcp-remote-*/<md5(url)> with client_info.json + code_verifier, no tokens.json), and while that state holds every start blocks in the browser flow, so mcpx surfaced only a discover timeout. - new internal/pool/oauthwait.go detects the pending state - Pool.startLane wraps the start failure: on a pending sign-in the error names the state, URL, state dir and the exact 'mcp-remote <url>' command that finishes it; finished/never-started/ non-mcp-remote/HTTP cases keep the original error - oauthwait_test.go ported (5 detector/wrap tests) Fixes #270
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 3
✨ Finishing Touches
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #270. Port of dezren39/nix PR #383 (dezren39/darwin-nix#370) — the same defect in this repo's
pkgs/mcpxcopy, whoseinternal/pool/pool.godiffered from nix's post-fix copy at exactly the wrapped return.internal/pool/oauthwait.go(new): detects an unfinished mcp-remote OAuth sign-in on disk (~/.mcp-auth/mcp-remote-*/<md5(url)>withclient_info.json+code_verifier, notokens.json).Pool.startLanewraps its start failure withoauthWaitError: on a pending sign-in the error names the state, the URL, the state dir, and the exactmcp-remote <url>command that finishes it. Finished / never-started / non-mcp-remote / HTTP cases keep the original error untouched.oauthwait_test.goported: 5 tests (pending detected, finished not waiting, never-started not waiting, other servers ignored, wrap message).Verified locally:
go test ./internal/pool/— full suite green; new OAuth tests 5/5.oauthwait.gomakes the new tests fail to build/pass; restored, they pass.go build ./...,go vet ./internal/pool/,gofmtclean.Summary by CodeRabbit
mcp-remotesign-in is unfinished, the error message now identifies the server and sign-in URL, shows where sign-in progress is saved, and provides a command to resume sign-in. The original startup error is also included for troubleshooting. Other startup errors continue to be reported as before.