You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(bots): show header-authenticated MCP servers in the bot's Integrations tab - #50965
If you connect a bot to a web-based tool with a secret key instead of signing in through a browser, the bot's Integrations tab acted as if the tool wasn't there. It only listed tools you had signed in to. Now it lists every web-based tool the bot uses and checks whether each one works. It also stops offering "Sign in" for tools that use a key.
What Changed
Before: a URL MCP server added to a bot with headers (for example an API key) was missing from the bot's Integrations/Connectors tab on desktop and on the phone, even when it was broken. It only showed up in Settings > Bots > Tools.
After: these servers are listed as apps, get the same health check as other URL servers, and never show "Signed in", "Sign in again" or a Sign-in detail row.
Mechanism:
When headers are saved, changeBotToolServers moves them into the host credential store. ownTool then marks the server remote: false, because it goes through Orca's relay, and leaves signIn unset, because there is no OAuth record. isBotAppTool only admitted remote || signIn, so the server was filtered out.
src/shared/bots/bot-tool-labels.ts: the http(s) check moves out of botToolSubtitle into a new isBotUrlTool (remote || /^https?:\/\//i.test(detail)). isBotAppTool (src/shared/bots/bot-connector-entries.ts) now uses it. Composio's own session server is still drawn as its apps, and command tools stay under Tools.
src/renderer/src/components/bots/bot-tool-checks.ts (checkedApp) and mobile/src/bots/tools/use-bot-tools-page.ts (runCheck): the CLI health check now covers isBotAppTool && !signIn. That is the same set the host checks in its 'remote' scope, and it skips apps Orca signs in to, because their state belongs to Orca.
New shared botToolAppSignsIn (in bot-connector-entries.ts), used by the desktop BotToolAppRow and the phone's connector row. Header servers are sent through the relay with saved headers, so nothing signs in. Every row main already showed was remote or Orca-owned, and those rows behave exactly as before.
Why
The header server is still a URL server: its detail is the http(s) address. botToolSubtitle already classified URL tools this way, so reusing that check avoids adding anything to the wire format. The original version of this PR added a remoteUrl field, which needed a phone schema change and a journal type change. This version changes no wire, schema or journal format, so a newer client reading an older host also lists these servers. Without the sign-in gate, the newly listed rows would have offered a "Sign in again" link. That link starts a CLI login, which can't work here because relay-routed servers are not in the CLI's config.
N/A. This changes which rows appear in the bot's Connectors tab, but no component fixture covers these rows, and the owner's machine can't run Electron for screenshots. The behavior is covered by the round-trip test below, from the real producer (writeBotToolServers with headers) to the real filter (botToolAppsOf).
Testing
Reproduced on main: a new test in src/main/bots/bot-tools-file.test.ts writes a header URL server, a plain URL server, a command server and the Composio session URL, then reads them back through botOwnTools and botToolAppsOf. On main it gets ['linear'], and on this branch ['notion', 'linear']. The command and Composio rows stay excluded.
A probe also covered an uppercase scheme, localhost, OAuth signed in and signed out, a command with a URL argument, and a check that the app list and the client's check trigger match the host's 'remote' scope.
vitest: bot-tools-file.test.ts (14), BotAppsChips.test.tsx (3), bot-tool-checks.performance.test.ts (4), mobile use-bot-tools-page.test.ts + connectors/ (4): all pass.
Per-project typecheck (tsconfig.tc.web.json, tsconfig.node.json, mobile tsc --noEmit) is clean. oxlint, oxfmt, anti-slop, native code-quality plugins, ast-grep and the changed-code quality gate are clean on the touched files.
Platforms: macOS, unit level only. No live bot with a header server was run.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
Performance
None that matters, because this only runs in a bot's Connectors tab on desktop and phone, not in startup, typing, terminal output or polling.
isBotAppTool adds an anchored regex per tool. Filtering N=200 tools takes about 1.6 to 3.8 µs per pass (typical), and 1.0 to 2.9 µs with 200 × 10 KB non-URL details. botToolAppSignsIn is a constant-time boolean, and the phone gate at N=200 takes 1.76 µs before vs 2.25 µs after.
Fanout at N=200 is unchanged: isBotAppTool still runs once per tool per botToolAppsOf pass. There are no new subscriptions, selectors, caches, I/O, subprocesses or polling.
The one trade-off: a bot whose only URL servers use headers now runs the same single, deduped 'apps' check on demand when its Connectors tab opens. A bot with a plain URL server already ran it.
Risk
Level: Low
Header servers now count as added in the "Add to bot" catalog, and they can show up in "Needs you" when their check fails. Both are intended, because they were silently hidden before.
Older phone with a newer host, or the reverse: lists work as well as or better than today, because nothing on the wire changed.
Back out with a plain revert. No saved data is touched.
Review
Reviewed by maintainers. Original fix by @joei4cm in #50965 (their authorship is kept through the Co-authored-by trailer). Thank you!
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
I stated the risk: what could break, for whom, and how to back it out
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
URL-based bot tools are now classified as app tools based on their URL details, including servers with headers. App scopes select tools without sign-in. The app and connector rows use a shared predicate to determine whether sign-in labels, actions, and details apply.
Header-authenticated MCP servers now show up in the Integrations tab. On desktop the row cannot edit a token directly, and a misleading Sign in button may still appear if the agent reports an authentication problem. These are minor gaps worth addressing, but they are unlikely to cause serious harm if merged.
Pre-merge checks: 4
Check name
Status
Explanation
Linked Issues check
Issue #50921 requires that remote MCP servers added with headers appear in the bot's Integrations tab. At the reviewed head, isBotAppTool in src/shared/bots/bot-connector-entries.ts admits a tool when…
Out of Scope Changes check
The changes at the reviewed head relative to the merge base are: the isBotAppTool filter and new botToolAppSignsIn gate (src/shared/bots/bot-connector-entries.ts); the isBotUrlTool helper extracted fr…
Title check
The title names the main change: header-authenticated MCP servers now appear in the bot's Integrations tab. It uses the conventional fix(bots) prefix and is specific enough for a teammate scanning his…
Description check
The description follows the repository template closely. It has ELI5, What Changed, Why, Linked Issue (Fixes #50921), Visual Proof (N/A with a reason), Testing, Performance, Risk (Level: Low), Review,…
Full details: Linked Issues check
Explanation
Issue #50921 requires that remote MCP servers added with headers appear in the bot's Integrations tab. At the reviewed head, isBotAppTool in src/shared/bots/bot-connector-entries.ts admits a tool when isBotUrlTool(tool) is true and the detail is not Composio's session URL. isBotUrlTool (src/shared/bots/bot-tool-labels.ts) is true when remote is true or detail begins with http:// or https://. A header-authenticated server has remote: false, so it matches through its URL detail. A command tool has no URL detail and stays excluded. The existing botToolSubtitle comment states that URL tools with saved values still have an address, which supports this. The author's test in src/main/bots/bot-tools-file.test.ts adds a URL tool with headers and asserts it is listed as an app. Health checks cover these entries because the scope in bot-tool-checks.ts and use-bot-tools-page.ts is now bot app tools without signIn. A header server has no signIn, so it is checked. Limits: this review did not read botToolDetail in the source, so the URL-in-detail premise rests on the existing comment and the author's test. The PR description still describes an earlier approach (a new remoteUrl field on BotOwnTool, a phone schema change, and a journal Pick narrowing). Those are absent from the reviewed head: src/main/bots/bot-tools-file.ts has no diff against the merge base. The assessment uses the head code, not the description.
Full details: Out of Scope Changes check
Explanation
The changes at the reviewed head relative to the merge base are: the isBotAppTool filter and new botToolAppSignsIn gate (src/shared/bots/bot-connector-entries.ts); the isBotUrlTool helper extracted from botToolSubtitle (src/shared/bots/bot-tool-labels.ts); the health-check scope (bot-tool-checks.ts and mobile use-bot-tools-page.ts); the sign-in row gating (BotToolAppRow.tsx and mobile connector-entry-rows.tsx); and a test (bot-tools-file.test.ts). The row gating changes make sure header-authenticated servers, now listed, do not show sign-in state they lack. This connects to the issue's display objective. No change at the head addresses unrelated behavior, such as CLI, sharing, or storage. bot-tools-file.ts has no diff at head, so the remoteUrl and journal-card changes from the PR description are not in the reviewed code and are not assessed as changes.
Full details: Title check
Explanation
The title names the main change: header-authenticated MCP servers now appear in the bot's Integrations tab. It uses the conventional fix(bots) prefix and is specific enough for a teammate scanning history. It is 78 characters, within a typical length limit.
Full details: Description check
Explanation
The description follows the repository template closely. It has ELI5, What Changed, Why, Linked Issue (Fixes #50921), Visual Proof (N/A with a reason), Testing, Performance, Risk (Level: Low), Review, Agent skill boundary, Notes, and Checklist. The before and after behavior, the mechanism, the trade-offs, and the rollback path are all explained. Minor gaps: the AI Disclosure section is absent, the Testing section does not state the platforms tested beyond macOS unit level in clear form, and the Notes section repeats template text without confirming each item. The lint/typecheck/test/build checklist item is left unchecked, which is acceptable because CI covers it.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
…tions tab
A URL MCP server added to a bot with headers is not `remote` and has no
Orca sign-in, so isBotAppTool dropped it and it never appeared under the
bot's Integrations tab on desktop or phone.
- isBotAppTool reuses isBotUrlTool (extracted from botToolSubtitle): a
tool is a URL server when it is remote or its detail is an http(s)
address. Composio's own session server is still drawn as its apps.
- The CLI health check (desktop checkedApp, phone runCheck scope) covers
isBotAppTool && !signIn, matching the host's 'remote' scope.
- A shared botToolAppSignsIn gate keeps header servers from showing
"Signed in", "Sign in again" or the Sign-in detail row, since Orca's
relay sends the saved headers and nothing signs in.
- No wire, schema or journal change.
Fixesstablyai#50921
Co-authored-by: Michael Zhou <[email protected]>
nwparker
changed the title
fix(bots): show header-authenticated MCP servers in the bot’s Integrations tab
fix(bots): show header-authenticated MCP servers in the bot's Integrations tab
Nov 27, 2026
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Gate the sign-in status and fix on signsIn as well.
signsIn hides the sign-in details and the "Sign in again" link for a tool that has no sign-in. The status line and fix still come from useBotToolSignInAction. For a tool with no signIn, that hook returns needs-sign-in when the agent reports a sign-in problem. The row then shows a sign-in status line and a Sign in button through face.fix. A header-authenticated server can receive that problem when its agent reports authentication as required. In that case the row offers a sign-in action that the signsIn rule was meant to suppress. The phone list has the same ungated selection.
Make the status line and the fix use the same signsIn decision that the other sign-in elements use. Keep the existing Check again and failure paths for problems that are not sign-in problems.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Add an Edit action to desktop header-authenticated Integrations rows.
For a header-authenticated server, the desktop row hides the sign-in link and offers only Remove. Its details are read-only. Users must open the separate Tools subpage to replace a header token. The linked issue asks for token rotation from Integrations. Add an Edit action to BotToolAppRow for these entries. It should open AddBotToolDialog with name={tool.name}, as BotToolsSection does. The phone Integrations entry already offers Edit, so this change applies to desktop only.
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
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.
ELI5
If you connect a bot to a web-based tool with a secret key instead of signing in through a browser, the bot's Integrations tab acted as if the tool wasn't there. It only listed tools you had signed in to. Now it lists every web-based tool the bot uses and checks whether each one works. It also stops offering "Sign in" for tools that use a key.
What Changed
Before: a URL MCP server added to a bot with headers (for example an API key) was missing from the bot's Integrations/Connectors tab on desktop and on the phone, even when it was broken. It only showed up in Settings > Bots > Tools.
After: these servers are listed as apps, get the same health check as other URL servers, and never show "Signed in", "Sign in again" or a Sign-in detail row.
Mechanism:
changeBotToolServersmoves them into the host credential store.ownToolthen marks the serverremote: false, because it goes through Orca's relay, and leavessignInunset, because there is no OAuth record.isBotAppToolonly admittedremote || signIn, so the server was filtered out.src/shared/bots/bot-tool-labels.ts: the http(s) check moves out ofbotToolSubtitleinto a newisBotUrlTool(remote || /^https?:\/\//i.test(detail)).isBotAppTool(src/shared/bots/bot-connector-entries.ts) now uses it. Composio's own session server is still drawn as its apps, and command tools stay under Tools.src/renderer/src/components/bots/bot-tool-checks.ts(checkedApp) andmobile/src/bots/tools/use-bot-tools-page.ts(runCheck): the CLI health check now coversisBotAppTool && !signIn. That is the same set the host checks in its 'remote' scope, and it skips apps Orca signs in to, because their state belongs to Orca.botToolAppSignsIn(inbot-connector-entries.ts), used by the desktopBotToolAppRowand the phone's connector row. Header servers are sent through the relay with saved headers, so nothing signs in. Every row main already showed was remote or Orca-owned, and those rows behave exactly as before.Why
The header server is still a URL server: its
detailis the http(s) address.botToolSubtitlealready classified URL tools this way, so reusing that check avoids adding anything to the wire format. The original version of this PR added aremoteUrlfield, which needed a phone schema change and a journal type change. This version changes no wire, schema or journal format, so a newer client reading an older host also lists these servers. Without the sign-in gate, the newly listed rows would have offered a "Sign in again" link. That link starts a CLI login, which can't work here because relay-routed servers are not in the CLI's config.Linked Issue
Fixes #50921
Visual Proof
N/A. This changes which rows appear in the bot's Connectors tab, but no component fixture covers these rows, and the owner's machine can't run Electron for screenshots. The behavior is covered by the round-trip test below, from the real producer (
writeBotToolServerswith headers) to the real filter (botToolAppsOf).Testing
Reproduced on main: a new test in
src/main/bots/bot-tools-file.test.tswrites a header URL server, a plain URL server, a command server and the Composio session URL, then reads them back throughbotOwnToolsandbotToolAppsOf. On main it gets['linear'], and on this branch['notion', 'linear']. The command and Composio rows stay excluded.A probe also covered an uppercase scheme, localhost, OAuth signed in and signed out, a command with a URL argument, and a check that the app list and the client's check trigger match the host's 'remote' scope.
vitest:
bot-tools-file.test.ts(14),BotAppsChips.test.tsx(3),bot-tool-checks.performance.test.ts(4), mobileuse-bot-tools-page.test.ts+connectors/(4): all pass.Per-project typecheck (
tsconfig.tc.web.json,tsconfig.node.json, mobiletsc --noEmit) is clean. oxlint, oxfmt, anti-slop, native code-quality plugins, ast-grep and the changed-code quality gate are clean on the touched files.Platforms: macOS, unit level only. No live bot with a header server was run.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
Performance
None that matters, because this only runs in a bot's Connectors tab on desktop and phone, not in startup, typing, terminal output or polling.
isBotAppTooladds an anchored regex per tool. Filtering N=200 tools takes about 1.6 to 3.8 µs per pass (typical), and 1.0 to 2.9 µs with 200 × 10 KB non-URL details.botToolAppSignsInis a constant-time boolean, and the phone gate at N=200 takes 1.76 µs before vs 2.25 µs after.isBotAppToolstill runs once per tool perbotToolAppsOfpass. There are no new subscriptions, selectors, caches, I/O, subprocesses or polling.Risk
Level: Low
Review
Reviewed by maintainers. Original fix by @joei4cm in #50965 (their authorship is kept through the
Co-authored-bytrailer). Thank you!Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)