Repository navigation
fix(desktop): connect Vercel and show why a connection failed - #4359
Merged
Merged
Conversation
Vercel MCP accepts only reviewed clients or ones identified by a Client ID Metadata Document, so the engine's dynamically registered client could never finish signing in. The engine now uses RustCode's metadata document as its client_id for Vercel and for any server advertising client_id_metadata_document_supported. Settings > Connections > Apps now shows a failed app's reason with Retry and Remove instead of a dead 'Not connected' chip, lists set-up apps first, tints connected and failed cards, and counts the connected apps.
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.
What
Vercel's MCP server only accepts clients it has reviewed, or clients identified by a Client ID Metadata Document (CIMD, an HTTPS URL as
client_id). RustCode registered an unreviewed client called "rustcode". Vercel also dropped the device grant from that registration (checked live:unauthorized_client), so connecting Vercel could never finish.rustcode/engine/src/mcp/client_metadata.rs): when noclient_idis configured and the authorization server advertisesclient_id_metadata_document_supported, or is Vercel (which accepts CIMD without advertising it), the engine useshttps://rustcode.lhagfoss.com/oauth/client-metadata.jsonas theclient_id. It skips dynamic registration and uses the loopback code redirect. The document is published by feat(site): publish RustCode's OAuth client metadata document rustcode_website#17.MCP OAuth for '<name>':prefix removed and the full text on hover, plus Retry and Remove. Before, it showed a dead "Not connected" chip.vercelrow so this state can be checked.Changelog
Vercel connects from Settings › Connections, and a failed connection shows why, with Retry and Remove.
Testing
bun run checkpasses (3318 tests), including newConnectors.test.ts.cargo fmt --check,check-comments.pyandcheck-rust-size.pypass. Rust compile and tests run in CI (VPS rule): new unit tests cover the CIMD choice and the Vercel fixture's resulting flow.device_codefrom the granted grants. Its docs require CIMD or a reviewed client.