Request all advertised OAuth scopes; keep sync verdicts visible - #2056
Merged
Merged
Conversation
Scope discovery capped the request at 100 scopes. A resource that advertises more (PostHog lists 150) got a token missing the scopes its MCP server needs, so every new connection synced zero tools. Bound the request by scope-string length (8 KiB) instead. A credential-only health check then reported healthy over the sync-stamped rejection, hiding the failure. Sync-supplied verdicts now carry the tool_sync_failed reason and are served until a sync succeeds. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Contributor
Cloudflare previewTorn down — the PR is closed. |
@executor-js/cli
@executor-js/config
@executor-js/execution
@executor-js/sdk
@executor-js/codemode-core
@executor-js/runtime-quickjs
@executor-js/plugin-file-secrets
@executor-js/plugin-graphql
@executor-js/plugin-keychain
@executor-js/plugin-mcp
@executor-js/plugin-onepassword
@executor-js/plugin-openapi
executor
commit: |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
executor-marketing | 9dea326 | Commit Preview URL Branch Preview URL |
Sep 18 2026, 06:42 PM |
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.
Why
Scope discovery capped the authorize request at 100 scopes. PostHog's MCP resource now advertises 150, so the last 50 were dropped, including the ones its server needs to start a session. Every PostHog MCP connection created through the CIMD client since late August minted a token the server rejects with 401, and synced zero tools.
The credential-only health check then overwrote the sync-stamped rejection with "healthy", so the UI showed a green badge and no tools.
What
reason: tool_sync_failed;isToolSyncHealthrecognises the reason as well as the detail prefix.Tests
expiredverdict survives a credential-only health check. Fails without the fix.After deploy, affected users need to reconnect PostHog once to mint a full-scope token.
🤖 Generated with Claude Code