Fix Google Calendar consent never starting - #8
Merged
Conversation
Google's server answers initialize and tools/list anonymously, so the connection reached "ready" without OAuth ever starting and My apps never showed a consent link. When the desk has no stored tokens, setup now fires a cheap list_calendars probe — its 401 makes the transport run the authorization leg (discovery, state, PKCE) — and surfaces the consent URL from the live connection's provider, with the addMcpServer redeem path and the persisted row as fallbacks. My apps also reconciles on mount so statuses and pending consent links are always current. Claude-Session: https://claude.ai/code/session_01MKLJUWk6biNAKXupHTTWn5
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.
Google's Calendar MCP server serves initialize/tools/list anonymously and only 401s on tools/call, so connections landed "ready" without OAuth. A tokenless desk now fires a probe call to trigger the SDK's authorization leg and surfaces the consent URL on the My apps card.
https://claude.ai/code/session_01MKLJUWk6biNAKXupHTTWn5