🙌 OpenHands: AI-Driven Development
F17 — Customize hub and MCP servers
Customize groups MCP Servers, Skills, Plugins and Apps behind one sidebar
entry. From 1024 px up /customize goes straight to /mcp; below that (phones
and tablets) it is a list hub. At tablet widths (768–1023 px), each Customize subpage also has a compact selector for switching directly between siblings. The MCP page lets a user browse a library of catalog
integrations, install one through a modal (credentials masked, optionally also
saved as secrets), hand-author custom SSE, Streamable HTTP or STDIO servers,
test connections, check each installed server's health, enable or disable,
edit and delete servers. Enabled servers are offered to every new
conversation's agent.
Source: src/routes/extensions-hub.tsx, src/routes/mcp.tsx, src/components/features/skills/extensions-navigation.tsx, src/components/shared/compact-section-navigation.tsx, src/components/features/skills/extensions-mobile-hub.tsx, src/components/features/mcp-page/, src/components/features/settings/mcp-settings/mcp-server-form.tsx, src/utils/mcp-marketplace-utils.ts, src/api/mcp-health/, src/hooks/mutation/use-add-mcp-server.ts, src/utils/mobile-section-nav.ts.
Sub-features
F17.customize-redirect: on desktop, the sidebar Customize link, the URL/customizeand the command-menu items Customize and MCP servers all land on/mcp.F17.desktop-subnav: from 1024 px up, Customize pages show a left aside headed Customize with MCP Servers, Skills, Plugins and Apps, the active row marked, and the "synced from" backend badge.F17.mobile-hub: below 1024 px (phones and tablets),/customizeis a hub with the same four rows and badge; at phone width detail pages show a Back chevron to the hub; widening the window to 1024 px or more on/customizeredirects to/mcp.F17.breakpoint-sweep: at 767, 768, 820, 1023, 1024 and 1440 px,/customizeis the hub below 1024 px and the desktop aside from 1024 px up, and the MCP page keeps Add custom server, a search box wider than 150 px and no horizontal overflow.F17.tablet-selector: at 768–1023 px, the compact Customize selector exposes the same MCP, Skills, Plugins and Apps links as the desktop nav; it follows Cloud visibility/external-link rules, dismisses on selection/outside click/Escape, and supports Tab navigation. It is absent on phones, desktops and the hub.F17.cloud-nav: with a Cloud backend active, Plugins and Apps are hidden and Skills becomes an external link to<cloud host>/settings/skills(blocked here).F17.page-states:/mcpshows the Model Context Protocol (MCP) header, Add custom server, the toolbar, an Installed section (empty-state copy when nothing is installed) and the Library grid, without page errors.F17.search: one search box filters the library and the installed list (catalog name, description and args count); no match showsNo matches for your search.in each section; the X clears it.F17.section-filter: the All / Installed / Library dropdown shows only the chosen sections.F17.library-catalog: library cards (logo, name, transport, description, + toggle) open the install modal by click, + toggle or Enter; the modal closes with Cancel, X or Escape.F17.install-remote: a remote (HTTP) entry shows its fixed URL read-only and atype="password"credential field that is required.F17.install-oauth: an entry whose server runs OAuth itself shows the OAuth info panel instead of a key field.F17.install-unsupported: entries the local backend cannot install (provider-OAuth only, 12 today such as Sentry) should be hidden or explain themselves; today their modal is empty and Install does nothing (fail).F17.install-args: an entry with argument fields (Filesystem's Paths (space separated)) requires them and appends each whitespace-separated token to the stored command's args.F17.install-stdio: a STDIO entry shows its read-only command; Install showsVerifying…,Saving..., toastsMCP server saved.and adds a card with the catalog name and description.F17.install-error: a failed install test keeps the modal open with a red error and saves nothing.F17.save-as-secret: password credential fields carry Also save as secret (checked by default, with a tooltip); label clicks and Space change the native checkbox, while its help button leaves the choice unchanged. The selection follows the colour theme and long secret names fit on phones. After install the value is listed in Settings → Secrets.F17.custom-validation: the custom editor refuses bad input with an inline message (URL required/invalid/wrong protocol, name invalid or duplicate, command required or with spaces, env/header notKEY=value, header required, OAuth secret without client ID, timeout out of range). Malformed header lines use a header-specific message, distinct from environment-variable errors.F17.test-connection: Test connection in the editor showsVerifying…, then a greenConnected — N tool(s) availableor a red categorized error; Add/Save tests first and stays open on failure.F17.custom-add: Add Server saves and closes; the card is listed after a reload.F17.custom-add-remote: a custom Streamable HTTP (SHTTP) server with a Bearer token connects, saves as anHTTPcard showing its URL, reopens with the token masked, and its tools reach the agent as<server>_<tool>.F17.server-health: each card's health row runs Test connection (Checking connection…), then shows a verdict with a coloured dot; a failure's dot uses the theme's status-error colour (bg-status-error) and its text is red, worded for the transport (a STDIO command that cannot start, a remote server that cannot be reached) with the Agent Server's detail, and offers Retry.F17.enable-disable: the card toggle disables a server without removing its configuration; the state persists and a disabled server is withheld from new conversations.F17.custom-edit: clicking a card opens Edit MCP server prefilled (secrets shown as**********); Save tests and persists the change.F17.stored-secret-reuse: a saved server's env values and tokens come back from the settings API and in the editor as**********; the editor's Test connection swaps each placeholder for the stored encrypted value (never the placeholder text, never the plaintext) and Save leaves untouched secrets out of its sparse patch, so a Save from the edit form that keeps them changes only the edited fields.F17.single-request-mutations: adding, editing without renaming, or deleting one server sends exactly onePOST,PATCHorDELETEto/api/settings/mcp/<name>; renaming uses one atomicPATCH /api/settingsand leaves sibling servers and their stored credentials untouched.F17.credential-probe: a catalog entry whose server lists its tools with any credentials (Slack) also gets a read-only credential probe during Install and Test connection: a failed probe readsCredential check failed: <provider error>and saves nothing (Known failure, reproduced 2026-10-08: any errored probe call, a networkfetch failedincluded, is worded as a credential failure; #18161). A hosted server that rejects the token at connect (GitHub) never reaches a probe and readsConnection failed: … 401 Unauthorized …, also saving nothing (Known failure, reproduced 2026-10-08: the Agent Server'sPOST /api/mcp/testreturns the 401 aserror_kindunknown, so the modal cannot call it a credential failure; OpenHands/software-agent-sdk#5607); a server the catalog does not know gets no probe.F17.delete-server: Delete in the editor asks for confirmation; Cancel keeps the server, Confirm removes it withMCP server removed.F17.native-git-tabs: on a Cloud backend, GitHub/GitLab/Bitbucket offer a recommended native-integration tab next to the MCP tab (blocked here).F17.agent-uses-server: a conversation started after the save can call the server's tools.F17.phone: the MCP page, the install modal and the custom editor fit a 390 px viewport.
How to get to it (user POV)
- Sidebar Customize (
sidebar-skills-link); on desktop it lands on/mcp. On a phone, open the drawer (sidebar-mobile-menu-toggle) first; it lands on the hub. - Direct URLs
/customizeand/mcp. - Command menu (
Control+k/Meta+k): Customize (to/customize, then/mcp) and MCP servers (to/mcp). The menu itself is F02. - Customize sub-navigation row MCP Servers (
sidebar-extensions-/mcp), desktop aside or phone hub. Pinning Customize as home is F02. - The onboarding checklist item Connect an MCP integration links to
/mcpand is ticked once a server is configured, before any conversation uses it (F02). - On
/mcp: a library card or its + toggle (install modal), Add custom server (mcp-add-custom-server), an installed card (editor) and its health-row buttons.
Driving it with control-openhands
Preconditions:
Baseline state (launched, doctored,
onboard --skipdone) on a fresh run, so nothing is installed yet (control-openhands api GET /api/settings --pick agent_settings.mcp_configis{}).uvxandnpxon the machine.F17.agent-uses-server,F17.custom-add-remote's agent check and the disabled-server check need an active LLM profile (control-openhands llm preset deepseek).TLS-intercepting proxy (this sandbox): MCP stdio servers start with a minimal environment (
HOME,PATH, no proxy or CA variables), so without trust settingsuvx/npxcannot download packages and catalog STDIO installs fail.launchnow seeds the run's privateHOMEwhenSSL_CERT_FILEorNODE_EXTRA_CA_CERTSpoints at a CA bundle: check withcat "$OH_VERIFY_RUN/private/home/.config/uv/uv.toml"(native-tls = true) andcat "$OH_VERIFY_RUN/private/home/.npmrc"(cafile=<bundle>). Only if they are missing, write them once:mkdir -p "$OH_VERIFY_RUN/private/home/.config/uv",printf 'native-tls = true\n' > "$OH_VERIFY_RUN/private/home/.config/uv/uv.toml"andprintf 'cafile=/root/.ccr/ca-bundle.crt\n' > "$OH_VERIFY_RUN/private/home/.npmrc"(use your proxy's CA bundle path).F17.install-errormoves them aside for one step. Custom servers can also passUV_NATIVE_TLS=truein their env. Skip all of this on a machine with direct internet.F17.custom-add-remoteneeds a local Streamable HTTP MCP server (arrange, not proof; nofixtureverb exists for it yet): from a shell,cd "$OH_VERIFY_RUN/workspace" && (PORT=38417 nohup npx -y @modelcontextprotocol/server-everything streamableHttp > "$OH_VERIFY_RUN/private/qa-shttp.log" 2>&1 &), pick any free port, and wait until the log saysMCP Streamable HTTP Server listening on port 38417. Stop it in Cleanup by its own PID (pgrep -f 'server-everything streamableHttp'lists it; neverpkill -f).F17.cloud-navandF17.native-git-tabsneed an OpenHands Cloud backend (with git providers configured); not available here.F17.stored-secret-reuseandF17.single-request-mutationsusecontrol-openhands fixture mcp-server --name qa-vault; it prints the<node>binary and<server.mjs>path the recipes substitute.F17.credential-probesends a dummy token to GitHub's hosted MCP endpoint and, through the catalog's npx stdio server, to Slack; both need the network. Behind the TLS-intercepting proxy the stdio server's own HTTPS call fails unless it gets the proxy CA (NODE_EXTRA_CA_CERTS), which only the custom editor can pass.Never type real credentials: every key below is a dummy.
Desktop entry points (
F17.customize-redirect). Runcontrol-openhands browser goto /conversations,control-openhands browser click 'testid=sidebar-skills-link' --expect-url '/mcp(\?|$)'andcontrol-openhands browser count 'testid=mcp-page'(1). Runcontrol-openhands browser goto /customizeandcontrol-openhands browser wait-url '/mcp(\?|$)'. Command menu: runcontrol-openhands browser goto /conversations(the browser is on/mcp, where the URL wait would pass at once),control-openhands browser press Control+k,control-openhands browser type 'testid=command-menu >> role=combobox' MCP,control-openhands browser press Enterandcontrol-openhands browser wait-url '/mcp(\?|$)'; repeat with the termCustomize(its only option readsCustomize Browse skills, plugins, and integrations.). Every path ends on/mcp.Desktop sub-navigation (
F17.desktop-subnav). On/mcpruncontrol-openhands browser text 'testid=extensions-navbar-desktop':Customize,MCP Servers,Skills,Plugins,Apps, thenThese settings are synced from Local backend (<base url>).control-openhands browser attr 'testid=sidebar-extensions-/mcp' aria-currentispage. Runcontrol-openhands browser click 'testid=sidebar-extensions-/skills' --expect-url '/skills(\?|$)'; that row'saria-currentbecomespage. Do the same for/pluginsand/apps, then return withcontrol-openhands browser click 'testid=sidebar-extensions-/mcp' --expect-url '/mcp(\?|$)'.control-openhands browser screenshot 'testid=extensions-navbar-desktop' --feature F17.desktop-subnav --name subnavshows the MCP Servers row highlighted.Tablet selector (
F17.tablet-selector). Runcontrol-openhands browser viewport tablet,control-openhands browser goto /mcp, andcontrol-openhands browser click 'testid=extensions-compact-navigation >> role=button'.control-openhands browser snapshot 'testid=extensions-compact-navigation >> role=navigation'lists MCP Servers (current), Skills, Plugins and Apps.control-openhands browser click 'testid=extensions-compact-navigation >> testid=sidebar-extensions-/skills' --expect-url '/skills$'navigates directly and closes the list. Repeat from Skills to Plugins, Apps and MCP; the selector's current label follows each route. Capturebrowser screenshot --feature F17.tablet-selector --name customize. Check 768 and 1023 px, then 767 and 1024 px wherebrowser count 'testid=extensions-compact-navigation'is0. Escape after keyboard opening returns focus to the trigger. The same links havesidebar-extensions-*IDs in the hidden desktop nav, so scope every tablet action toextensions-compact-navigation.Phone hub (
F17.mobile-hub,F17.phone). Runcontrol-openhands browser viewport phone,control-openhands browser goto /customizeandcontrol-openhands browser text 'testid=extensions-mobile-hub'(the same five lines as the desktop aside);control-openhands browser screenshot --feature F17.mobile-hub --name hub. Runcontrol-openhands browser click 'testid=extensions-mobile-hub >> testid=sidebar-extensions-/mcp' --expect-url '/mcp(\?|$)';control-openhands browser attr 'testid=sidebar-mobile-back-button' aria-labelisCustomize, andcontrol-openhands browser count 'testid=extensions-navbar-desktop >> visible'is0.control-openhands browser bbox 'testid=mcp-page'hasinsideViewporttrueandpageHorizontalOverflowfalse;control-openhands browser screenshot --feature F17.phone --name mcp-pageshows the header, toolbar and one column of cards. Runcontrol-openhands browser click 'testid=sidebar-mobile-back-button' --expect-url '/customize(\?|$)';control-openhands browser count 'testid=extensions-mobile-hub'is1. Drawer entry:control-openhands browser goto /conversations,control-openhands browser click 'testid=sidebar-mobile-menu-toggle'andcontrol-openhands browser click 'testid=sidebar-mobile-drawer >> testid=sidebar-skills-link' --expect-url '/customize(\?|$)'; the hub is shown. Tablets get the hub too:control-openhands browser viewport tablet(820 px) keeps it on/customize; runcontrol-openhands browser click 'testid=extensions-mobile-hub >> testid=sidebar-extensions-/mcp' --expect-url '/mcp(\?|$)', thencontrol-openhands browser visible 'testid=extensions-navbar-desktop'andcontrol-openhands browser visible 'testid=sidebar-mobile-back-button'(bothfalse),control-openhands browser bbox 'role=main'(520 px wide,pageHorizontalOverflowfalse) andcontrol-openhands browser screenshot --feature F17.mobile-hub --name tablet-mcp; the rail'scontrol-openhands browser click 'testid=sidebar-skills-link' --expect-url '/customize(\?|$)'brings the hub back. Thencontrol-openhands browser viewport desktopandcontrol-openhands browser wait-url '/mcp(\?|$)': widening on/customizeredirects to/mcp.Widths around the breakpoint (
F17.breakpoint-sweep). For each widthWin767,768,820,1023,1024,1440runcontrol-openhands browser viewport Wx1024andcontrol-openhands browser goto /customize. Below 1024 pxcontrol-openhands browser visible 'testid=extensions-mobile-hub'istrueandcontrol-openhands browser click 'testid=extensions-mobile-hub >> testid=sidebar-extensions-/mcp' --expect-url '/mcp(\?|$)'opens the MCP page; from 1024 px upcontrol-openhands browser wait-url '/mcp(\?|$)'passes at once andcontrol-openhands browser count 'testid=extensions-mobile-hub'is0. On/mcp,control-openhands browser visible 'testid=extensions-navbar-desktop'isfalsebelow 1024 px andtruefrom 1024 px (the switch is exactly 1023 → 1024),control-openhands browser visible 'testid=mcp-add-custom-server'istrue,control-openhands browser bbox 'testid=mcp-search-input'is wider than 150 px (622, 323, 375, 578, 257 and 673 today) andcontrol-openhands browser bbox 'role=main'haspageHorizontalOverflowfalsewith equalscrollWidthandclientWidth(mainis full width at 767 px,W − 300beside the rail from 768 to 1023 px,W − 640beside the rail and the aside from 1024 px).control-openhands browser fill 'testid=mcp-search-input' GitHubkeepscontrol-openhands browser count 'testid=mcp-marketplace-card-github'at1;control-openhands browser click 'testid=mcp-search-clear'. At the boundary takecontrol-openhands browser screenshot --feature F17.breakpoint-sweep --name mcp-1023and--name mcp-1024. Finish withcontrol-openhands browser viewport desktop.Page and empty state (
F17.page-states). On a fresh run runcontrol-openhands browser goto /mcp,control-openhands browser text 'testid=mcp-installed-empty'(No MCP servers installed yet.andPick one from the marketplace below to get started.) andcontrol-openhands browser count '[data-testid^="mcp-marketplace-card-"]'(56with@openhands/extensions0.30.0, #18336, which added an installable Bitbucket card;55before; the catalog ships with@openhands/extensions).control-openhands browser eval "[...document.querySelectorAll('main h2')].map(h=>h.textContent)"is["Model Context Protocol (MCP)","Installed","Library"]. Takecontrol-openhands browser screenshot --feature F17.page-states --name empty-desktop. After the family,control-openhands browser errors --app-onlyshowspageErrors0.Search (
F17.search). Runcontrol-openhands browser fill 'testid=mcp-search-input' timeandcontrol-openhands browser count '[data-testid^="mcp-marketplace-card-"]'(1,mcp-marketplace-card-time). Fillqa-zzz-nothing;control-openhands browser text 'testid=mcp-marketplace-empty'isNo matches for your search.(the installed list's search needs installed cards: it is driven at the end ofF17.install-stdio). Runcontrol-openhands browser click 'testid=mcp-search-clear';control-openhands browser value 'testid=mcp-search-input'is""and the card count is back to56.Section filter (
F17.section-filter). Runcontrol-openhands browser click 'testid=mcp-section-filter >> testid=dropdown-trigger',control-openhands browser snapshot 'testid=mcp-section-filter'(button "Filter MCP servers" [expanded]: Allandmenu "Filter MCP servers"withAll[checked],Installed,Library) andcontrol-openhands browser click 'testid=mcp-section-filter-library'; themain h2list above losesInstalled. Open the dropdown again and clicktestid=mcp-section-filter-installed;control-openhands browser count 'testid=mcp-marketplace-section'is0andcontrol-openhands browser text 'testid=mcp-section-filter >> testid=dropdown-trigger'isInstalled. Restore withtestid=mcp-section-filter-all.Open and close the install modal (
F17.library-catalog). Runcontrol-openhands browser click 'testid=mcp-marketplace-card-time',control-openhands browser text 'testid=mcp-install-modal'(Time, its description,View documentation →,Command,Cancel,Install) andcontrol-openhands browser value 'testid=mcp-install-field-command-readonly'(uvx mcp-server-time;browser enabledisfalse). Close withcontrol-openhands browser click 'testid=mcp-install-cancel';control-openhands browser count 'testid=mcp-install-modal'is0. Reopen withcontrol-openhands browser click 'testid=mcp-marketplace-toggle-time'and close withcontrol-openhands browser click 'testid=mcp-install-modal-close'. Keyboard:control-openhands browser focus 'testid=mcp-marketplace-card-time',control-openhands browser press Enter(count1),control-openhands browser press Escape(count0).Remote entry, masked key (
F17.install-remote). Runcontrol-openhands browser click 'testid=mcp-marketplace-card-stripe';control-openhands browser value 'testid=mcp-install-modal >> testid=mcp-install-field-url'ishttps://mcp.stripe.com/andbrowser enabledon it isfalse. Clicktestid=mcp-install-modal >> testid=mcp-install-submitwith the key empty:control-openhands browser eval "document.querySelector('[data-testid=mcp-install-field-api_key]').validationMessage"isPlease fill out this field.and no request is sent. Runcontrol-openhands browser fill 'testid=mcp-install-modal >> testid=mcp-install-field-api_key' rk_test_qa_dummy_000;control-openhands browser attr 'testid=mcp-install-modal >> testid=mcp-install-field-api_key' typeispasswordandcontrol-openhands browser screenshot 'testid=mcp-install-modal' --feature F17.install-remote --name stripe-maskedshows dots. Cancel; never click Install with a dummy key on a hosted server.OAuth entry (
F17.install-oauth). Runcontrol-openhands browser click 'testid=mcp-marketplace-card-granola'andcontrol-openhands browser text 'testid=mcp-install-modal >> testid=mcp-install-oauth-info':This server uses OAuth for authentication. Click Install to connect — you will be redirected to authorize access.andNo API key needed. The server handles the OAuth flow automatically.The URL field readshttps://mcp.granola.ai/mcpand there is nomcp-install-field-api_key. Cancel; Install would start a real OAuth flow.Entry that cannot be installed (
F17.install-unsupported). Runcontrol-openhands browser click 'testid=mcp-marketplace-card-sentry',control-openhands browser network --clear,control-openhands browser click 'testid=mcp-install-modal >> testid=mcp-install-submit', thencontrol-openhands browser network --last 5,control-openhands browser count 'testid=mcp-install-modal'andcontrol-openhands browser toasts. Expected: such entries are hidden from the library, or the modal explains that the local backend cannot install them. Today the modal shows only the title, description and docs link, Install sends no request, shows nothing and the modal stays open (fail;cloudflare-bindingsbehaves the same). Cancel.Install fails, modal stays (
F17.install-error). Make the server unable to start: behind the TLS proxy, move the seeded trust settings aside (shell arrange:mv "$OH_VERIFY_RUN/private/home/.config/uv/uv.toml"{,.off}andmv "$OH_VERIFY_RUN/private/home/.npmrc"{,.off}) and use an entry uv has never downloaded in this run, such as Fetch (Time succeeds from the uv cache once installed). Runcontrol-openhands browser click 'testid=mcp-marketplace-card-fetch'(browser value 'testid=mcp-install-field-command-readonly'isuvx mcp-server-fetch) andcontrol-openhands browser click 'testid=mcp-install-submit' --observe 'testid=mcp-install-submit' --observe-ms 15000; the observed labels areInstall,Verifying… [disabled],Install(about 6 s).control-openhands browser text 'testid=mcp-install-modal-error'isConnection failed: McpError: Connection closedand the modal stays open (<run>/private/stack.logshowsUnknownIssuer). An npx entry such as Memory fails differently: after about 17 s the error readsConnection timed out. Check the URL and try again.Cancel,control-openhands browser reload, andcontrol-openhands browser count 'testid=mcp-installed-empty'is still1(nofetchcard). Restore the trust files (mv ….offback) before the next bullet.Install a STDIO entry (
F17.install-stdio). With the TLS precondition, runcontrol-openhands browser click 'testid=mcp-marketplace-card-time'andcontrol-openhands browser click 'testid=mcp-install-modal >> testid=mcp-install-submit' --observe 'testid=mcp-install-modal >> testid=mcp-install-submit' --observe-ms 20000:Install,Verifying…,Saving..., then<absent>(closed). Aftercontrol-openhands browser reload,control-openhands browser text 'testid=mcp-server-item >> has-text=Timezone-aware'isTime,STDIO,Timezone-aware current time, conversions, and timestamp formatting.,uvx mcp-server-time,Not checked yet,Test connection; itsdata-server-idistime. Installing it again (same two commands, thenbrowser reload) adds a second card (time_1): the library is add-only and its + toggle never shows installed (aria-checkedstaysfalse). The copy keeps the Time catalog identity (#18034):control-openhands browser text '[data-server-id=time_1]'istime_1,STDIO,Timezone-aware current time, conversions, and timestamp formatting.,uvx mcp-server-time,Not checked yet,Test connection(the title is the settings key because it differs from the catalog id), andcontrol-openhands browser eval "[...document.querySelectorAll('[data-testid=mcp-server-item]')].map(c=>c.dataset.serverId+':'+c.querySelector('span[aria-hidden=true][title]')?.title)"is["time:Time","time_1:Time"](both badges come from the Time entry). Time has no logo, so both installed cards show the generic puzzle glyph where its library card shows a robot glyph. Search the installed list:control-openhands browser fill 'testid=mcp-search-input' Timezonekeeps both cards (browser eval "[...document.querySelectorAll('[data-testid=mcp-server-item]')].map(c=>c.dataset.serverId)"is["time","time_1"], matched by the catalog description) and one library card;control-openhands browser fill 'testid=mcp-search-input' qa-zzz-nothingmakescontrol-openhands browser text 'testid=mcp-installed-empty-search'No matches for your search.; clear withcontrol-openhands browser click 'testid=mcp-search-clear'.control-openhands browser screenshot --feature F17.install-stdio --name time-and-time_1shows both cards with the description.Argument fields (
F17.install-args). Runcontrol-openhands browser click 'testid=mcp-marketplace-card-filesystem';control-openhands browser snapshot 'testid=mcp-install-modal'shows the read-onlyCommandnpx -y @modelcontextprotocol/server-filesystem, aPaths (space separated)field andEach whitespace-separated token is appended as its own argument.;control-openhands browser attr 'testid=mcp-install-modal >> role=link' targetis_blank(View documentation →,relnoreferrer). Clicktestid=mcp-install-submitwith the field empty:control-openhands browser eval "document.querySelector('[data-testid=mcp-install-field-paths]').validationMessage"isPlease fill out this field.andbrowser networkrecords no request. Shell arrangemkdir -p "$OH_VERIFY_RUN/workspace/qa-fs-a" "$OH_VERIFY_RUN/workspace/qa-fs-b", thencontrol-openhands browser fill 'testid=mcp-install-modal >> testid=mcp-install-field-paths' "$OH_VERIFY_RUN/workspace/qa-fs-a $OH_VERIFY_RUN/workspace/qa-fs-b"andcontrol-openhands browser click 'testid=mcp-install-modal >> testid=mcp-install-submit' --observe 'testid=mcp-install-modal >> testid=mcp-install-submit' --observe-ms 90000(Install,Verifying…,Saving...,<absent>). Afterbrowser reload,control-openhands browser text '[data-server-id=filesystem]'ends the command line with both paths, andcontrol-openhands api GET /api/settings --pick agent_settings.mcp_config.filesystemhasargs["-y","@modelcontextprotocol/server-filesystem","<…>/qa-fs-a","<…>/qa-fs-b"].Secret selection before install (
F17.save-as-secret). No provider key or install is needed. For each themeOpenHands-NeutralandLight+, runcontrol-openhands browser goto /settings/app,control-openhands browser click 'testid=color-theme-input', andcontrol-openhands browser click 'role=option[name="<theme>"]'. For each viewportdesktopandphone, runcontrol-openhands browser viewport <viewport>,control-openhands browser goto /mcp, andcontrol-openhands browser click 'testid=mcp-marketplace-card-github'.control-openhands browser bbox 'testid=mcp-install-save-secret-GITHUB_PERSONAL_ACCESS_TOKEN'showsinsideViewport: trueandpageHorizontalOverflow: false; the full secret name and help fit inside the row. Startcontrol-openhands browser record start --feature F17.save-as-secret --name <theme>-<viewport>-selection. Runcontrol-openhands browser focus 'testid=mcp-install-modal >> testid=mcp-install-field-api_key'andcontrol-openhands browser press Tabtwice (the first Tab visits GitHub settings, the second the native checkbox), takecontrol-openhands browser screenshot --feature F17.save-as-secret --name <theme>-<viewport>-focus, thencontrol-openhands browser press Space.control-openhands browser eval "document.querySelector('[data-testid=mcp-install-save-secret-GITHUB_PERSONAL_ACCESS_TOKEN] input').checked"isfalse, and the focus outline, label and secret name remain readable. Runcontrol-openhands browser focus 'testid=mcp-install-save-secret-GITHUB_PERSONAL_ACCESS_TOKEN >> role=button',control-openhands browser text 'role=tooltip', andcontrol-openhands browser press Enter; the tooltip explains sharing with automations and the same.checkedread staysfalse. Runcontrol-openhands browser click 'testid=mcp-install-save-secret-GITHUB_PERSONAL_ACCESS_TOKEN';.checkedbecomestrue. Stop withcontrol-openhands browser record stop, then close withcontrol-openhands browser click 'testid=mcp-install-cancel'before the next viewport/theme. Restore desktop and OpenHands-Neutral through the same theme picker before continuing. This is selection proof only; the next bullet proves install persistence.Save as secret (
F17.save-as-secret). With the TLS precondition and noTAVILY_API_KEYsecret (control-openhands api GET /api/settings/secrets), runcontrol-openhands browser click 'testid=mcp-marketplace-card-tavily'.control-openhands browser attr 'testid=mcp-install-modal >> testid=mcp-install-field-TAVILY_API_KEY' typeispassword,control-openhands browser eval "document.querySelector('[data-testid=mcp-install-save-secret-TAVILY_API_KEY] input').checked"istrue, andcontrol-openhands browser tooltip 'testid=mcp-install-modal >> role=button[name=/secret/i]'isMCP credentials aren't shared with automations. Save as a secret to make this value available to automations.Runcontrol-openhands browser fill 'testid=mcp-install-modal >> testid=mcp-install-field-TAVILY_API_KEY' tvly-qa-dummy-000andcontrol-openhands browser click 'testid=mcp-install-modal >> testid=mcp-install-submit' --observe 'role=status' --observe-ms 60000; the observed toasts areMCP server saved.andSaved to secrets: TAVILY_API_KEY. Thencontrol-openhands browser goto /settings/secretsandcontrol-openhands browser count 'testid=secret-item >> has-text=TAVILY_API_KEY'is1. The GitHub card's hosted token has the same toggle (mcp-install-save-secret-GITHUB_PERSONAL_ACCESS_TOKEN, checked). Clean up by deleting thetavilyserver (Delete below) and the secret through F14's Delete recipe.Editor validation (
F17.custom-validation). Runcontrol-openhands browser goto /mcp(Save as secret ends on/settings/secrets),control-openhands browser click 'testid=mcp-add-custom-server'. With the default SSE type, clicktestid=add-mcp-server-form >> testid=submit-buttonafter each change and readcontrol-openhands browser text 'testid=add-mcp-server-form >> css=p.text-feedback-error >> nth=0': empty URL →URL is required;control-openhands browser fill 'testid=add-mcp-server-form >> testid=url-input' 'not a url'→Invalid URL format;ftp://127.0.0.1/mcp→URL must use http:// or https://; URLhttp://127.0.0.1:9/sseplustestid=server-name-input'bad name'→Name can only contain letters, numbers, hyphens, and underscores; nameqa_sse, thencontrol-openhands browser click 'testid=add-mcp-server-form >> testid=auth-mode-dropdown'andcontrol-openhands browser click 'role=option[name="Header"]'→Header authentication requires a header; authOAuthwithtestid=oauth-client-secret-inputfilleddummy-secret→OAuth client secret requires a client ID. Switch type withcontrol-openhands browser click 'testid=add-mcp-server-form >> testid=server-type-dropdown'andcontrol-openhands browser click 'role=option[name="SHTTP"]', set auth back toNone;testid=timeout-input0→Timeout must be positive,5000→Timeout cannot exceed 3600 seconds (1 hour). Switch toSTDIO: empty →Name is required;testid=name-input'bad name!'→ the invalid-name message; nameqa_time→Command is required;testid=command-input'uvx mcp-server-time'→Command cannot contain spaces; commanduvxplustestid=env-inputNOEQUALS→Environment variables must follow KEY=value format. Once a STDIOqa_timeexists (or any installed STDIO id such astime), the same name givesA STDIO server with this name already exists.control-openhands browser press Escapecloses the editor. Header format: reopen the editor, pickSHTTP, fillurl-inputhttp://127.0.0.1:9/mcp, authHeader,control-openhands browser fill 'testid=add-mcp-server-form >> testid=headers-input' NOEQUALSand submit.control-openhands browser text 'testid=add-mcp-server-form >> css=p.text-feedback-error >> nth=0'isHeaders must follow KEY=value format. Takecontrol-openhands browser screenshot --feature F17.custom-validation --name header-format, Close the editor withcontrol-openhands browser press Escape, runcontrol-openhands browser viewport phone, reopen withcontrol-openhands browser click 'testid=mcp-add-custom-server'and repeat the SHTTP header-format commands. Restorecontrol-openhands browser viewport desktop, leaving that SHTTP editor open for Test connection.Test connection (
F17.test-connection). Failure: in the SHTTP form left open by validation, runcontrol-openhands browser click 'testid=add-mcp-server-form >> testid=auth-mode-dropdown',control-openhands browser click 'role=option[name="None"]'andcontrol-openhands browser fill 'testid=add-mcp-server-form >> testid=timeout-input' 10. With URLhttp://127.0.0.1:9/mcp, clicktestid=add-mcp-server-form >> testid=mcp-test-connection,control-openhands browser wait 'testid=add-mcp-server-form >> testid=mcp-test-message' --timeout 60000; the text isCould not reach the server (check the URL and server type): Client failed to connect: All connection attempts failed(the remote wording followed by the Agent Server's detail) and its class containstext-feedback-error. Clicking Add Server leaves the editor open (browser count 'testid=mcp-custom-editor'is1). Success: runcontrol-openhands browser click 'testid=add-mcp-server-form >> testid=server-type-dropdown'andcontrol-openhands browser click 'role=option[name="STDIO"]', then filltestid=name-inputqa_time,testid=command-inputuvx,control-openhands browser fill 'testid=add-mcp-server-form >> testid=args-input' mcp-server-timeandcontrol-openhands browser fill 'testid=add-mcp-server-form >> testid=env-input' UV_NATIVE_TLS=true, thencontrol-openhands browser click 'testid=add-mcp-server-form >> testid=mcp-test-connection' --observe 'testid=add-mcp-server-form >> testid=mcp-test-connection' --observe-ms 20000(Test connection,Verifying…,Test connection), the samewaitandcontrol-openhands browser text 'testid=add-mcp-server-form >> testid=mcp-test-message':Connected — 2 tool(s) available, classtext-feedback-success.control-openhands browser screenshot 'testid=mcp-custom-editor' --feature F17.test-connection --name stdio-success.Add the server (
F17.custom-add). In the successful STDIO form runcontrol-openhands browser click 'testid=add-mcp-server-form >> testid=submit-button'andcontrol-openhands browser wait 'testid=mcp-custom-editor' --state detached --timeout 60000, thencontrol-openhands browser reloadandcontrol-openhands browser text 'testid=mcp-server-item >> has-text=qa_time':qa_time,STDIO,Timezone-aware current time, conversions, and timestamp formatting.,uvx mcp-server-time,Not checked yet,Test connection(it runs the Time entry's command and args, so it shows that entry's description and badge under its own name, #18034).control-openhands browser attr 'testid=mcp-server-item >> has-text=qa_time' data-server-idisqa_time(the id in the per-card test ids below) and itsaria-labelisEdit qa_time.Custom remote server (
F17.custom-add-remote). With the Streamable HTTP fixture from Preconditions running, runcontrol-openhands browser click 'testid=mcp-add-custom-server', pickSHTTP(server-type-dropdown, thenrole=option[name="SHTTP"]), filltestid=add-mcp-server-form >> testid=server-name-inputqa_shttpandurl-inputhttp://127.0.0.1:38417/mcp, pick authBearer token(auth-mode-dropdown, thenrole=option[name="Bearer token"]) and filltestid=add-mcp-server-form >> testid=api-key-inputqa-dummy-token(browser attr ... typeispassword). Clicktestid=add-mcp-server-form >> testid=mcp-test-connection;control-openhands browser text 'testid=add-mcp-server-form >> testid=mcp-test-message' --timeout 60000isConnected — 13 tool(s) available. Clicktestid=add-mcp-server-form >> testid=submit-button, wait fortestid=mcp-custom-editorto detach andbrowser reload:control-openhands browser text '[data-server-id=qa_shttp]'isqa_shttp,HTTP,http://127.0.0.1:38417/mcp,Not checked yet,Test connection;control-openhands api GET /api/settings --pick agent_settings.mcp_config.qa_shttphastransporthttpandauth{"strategy":"bearer","value":"**********"}. Its health probe readsReachable — credentials not verified. Reopen it withcontrol-openhands browser click 'testid=mcp-server-detail-qa_shttp':browser snapshot 'testid=mcp-custom-editor'showsEdit MCP server, comboboxAuthenticationBearer token, andcontrol-openhands browser value 'testid=edit-mcp-server-form >> testid=api-key-input'is**********; Escape. Agent side:control-openhands conversation start --prompt "Call the qa_shttp MCP server's echo tool with message qa-ping. Do not use the terminal. Reply with only the tool's output." --wait --timeout 240, thencontrol-openhands conversation events <id> --kinds ActionEvent,ObservationEvent,MessageEvent: toolqa_shttp_echo, observationEcho: qa-ping. Runcontrol-openhands browser goto /mcpafterwards.Card health (
F17.server-health). Runcontrol-openhands browser click 'testid=mcp-health-probe-qa_time' --observe 'testid=mcp-health-label-qa_time' --observe-ms 20000:Not checked yet,Checking connection…,Reachable — credentials not verified.control-openhands browser text 'testid=mcp-server-health-qa_time'adds the hintThis check only proves the server is reachable and lists its tools; it does not verify your credentials.,control-openhands browser attr 'testid=mcp-server-health-qa_time >> testid=mcp-health-dot' data-statusishealthy-connectivity, and the click did not open the editor (browser count 'testid=mcp-custom-editor'is0). Failure: the editor refuses to save a broken server, so arrange one withcontrol-openhands api POST /api/settings/mcp/qa_broken --data '{"transport":"stdio","command":"qa-no-such-command","enabled":false}' --write,control-openhands browser reload, then clicktestid=mcp-health-probe-qa_broken: the label isCould not start the server command: Client failed to connect: [Errno 2] No such file or directory: 'qa-no-such-command'in red (STDIO wording, no URL hint; the card clamps it to two lines,browser text 'testid=mcp-server-health-qa_broken'reads it whole), the dot'sdata-statusisfailed, its class containsbg-status-error(its computedbackground-colorequals that token's:rgb(255, 104, 78)in the default dark theme,rgb(209, 52, 56)in Light+) and the button readsRetry;control-openhands browser screenshot 'testid=mcp-server-item >> has-text=qa_broken' --feature F17.server-health --name failed.Delete (
F17.delete-server). Runcontrol-openhands browser click 'testid=mcp-server-detail-qa_broken'(a click on the card's centre lands on its health row and opens nothing: see Gotchas),control-openhands browser click 'testid=mcp-custom-editor-delete'andcontrol-openhands browser text 'testid=confirmation-modal'(Are you sure you want to delete this server?,Cancel,Confirm). Runcontrol-openhands browser click 'testid=confirmation-modal >> testid=cancel-button'; the editor is still open. Click Delete again, thencontrol-openhands browser click 'testid=confirmation-modal >> testid=confirm-button'andcontrol-openhands browser toasts(MCP server removed.). Aftercontrol-openhands browser reload,control-openhands browser count 'testid=mcp-server-item >> has-text=qa_broken'is0, andcontrol-openhands api GET /api/settingshas noqa_broken.Edit (
F17.custom-edit). Runcontrol-openhands browser click 'testid=mcp-server-detail-qa_time'(the detail line opens the editor on every card; a plain click on the card's centre happens to open it onqa_time, whose Time description fills the centre, but not on a card without a description; keyboard:browser focus '[data-server-id=qa_time]'thenbrowser press Enter) andcontrol-openhands browser snapshot 'testid=mcp-custom-editor': headingEdit MCP server, no Server Type field, aDeletebutton;control-openhands browser value 'testid=edit-mcp-server-form >> testid=env-input'isUV_NATIVE_TLS=**********. Runcontrol-openhands browser fill 'testid=edit-mcp-server-form >> testid=args-input' $'mcp-server-time\n--local-timezone\nUTC'(bash ANSI-C quoting for the newlines), clicktestid=edit-mcp-server-form >> testid=mcp-test-connection(stillConnected — 2 tool(s) available: the stored env value is reused), thencontrol-openhands browser click 'testid=edit-mcp-server-form >> testid=submit-button'and wait fortestid=mcp-custom-editorto detach. The card shows a verdict at once (seeded from the save's test). Aftercontrol-openhands browser reload,control-openhands browser text 'testid=mcp-server-detail-qa_time'isuvx mcp-server-time --local-timezone UTC.Stored secrets are reused, not their placeholder (
F17.stored-secret-reuse). Make a STDIO server that only starts with the right secret:control-openhands fixture mcp-server --name qa-vaultprints<node>and<server.mjs>. Runcontrol-openhands browser click 'testid=mcp-add-custom-server', pickSTDIO, filltestid=add-mcp-server-form >> testid=name-inputqa_vaultandtestid=add-mcp-server-form >> testid=command-input/bin/sh, thencontrol-openhands browser fill 'testid=add-mcp-server-form >> testid=args-input' $'-c\ntest "$QA_VAULT_TOKEN" = qa-vault-secret-000 && exec "$QA_NODE" "$QA_SERVER"'andcontrol-openhands browser fill 'testid=add-mcp-server-form >> testid=env-input' $'QA_VAULT_TOKEN=qa-vault-secret-000\nQA_NODE=<node>\nQA_SERVER=<server.mjs>'. Runcontrol-openhands browser network --clear, clicktestid=add-mcp-server-form >> testid=mcp-test-connection;control-openhands browser text 'testid=add-mcp-server-form >> testid=mcp-test-message' --timeout 60000isConnected — 1 tool(s) available. Direct proof of what the page sent:control-openhands browser network --bodies --filter 'api/mcp/test' --last 1lists onePOST /api/mcp/test(200) whosebodyis{"server":{"type":"stdio","command":"/bin/sh","args":["-c","test \"$QA_VAULT_TOKEN\" = qa-vault-secret-000 && exec \"$QA_NODE\" \"$QA_SERVER\""],"env":{"QA_VAULT_TOKEN":"<redacted 19 chars>","QA_NODE":"<redacted 40 chars>","QA_SERVER":"<redacted 142 chars>"}},"name":"qa_vault"}: the command and args in clear, each env value replaced by the CLI with the length of the real value (19 forqa-vault-secret-000; 40 and 142 are<node>and<server.mjs>on this machine,${#var}in a shell). Clicktestid=add-mcp-server-form >> testid=submit-button,control-openhands browser wait 'testid=mcp-custom-editor' --state detached --timeout 60000andcontrol-openhands browser reload.control-openhands api GET /api/settings --pick agent_settings.mcp_config.qa_vaulthasenv{"QA_VAULT_TOKEN":"**********","QA_NODE":"**********","QA_SERVER":"**********"}(every env value is redacted; the page reads this same endpoint, there is noGET /api/settings/mcp). Runcontrol-openhands browser click 'testid=mcp-server-detail-qa_vault';control-openhands browser value 'testid=edit-mcp-server-form >> testid=env-input'is the three linesQA_VAULT_TOKEN=**********,QA_NODE=**********,QA_SERVER=**********. Runcontrol-openhands browser network --clearand clicktestid=edit-mcp-server-form >> testid=mcp-test-connection:control-openhands browser text 'testid=edit-mcp-server-form >> testid=mcp-test-message' --timeout 60000isConnected — 1 tool(s) available, which the shell gate only allows when the stored token, binary and path were sent (control-openhands browser screenshot 'testid=mcp-custom-editor' --feature F17.stored-secret-reuse --name masked-test-ok). The samecontrol-openhands browser network --bodies --filter 'api/mcp/test' --last 1row now carries"env":{"QA_VAULT_TOKEN":"<redacted 120 chars>","QA_NODE":"<redacted 140 chars>","QA_SERVER":"<redacted 268 chars>"}: neither the**********placeholder (which--bodieswould keep as is) nor the typed lengths.control-openhands browser network --last 5shows why: aGET /api/settings(and/server_info) right before the POST. The page fetches the settings inencryptedmode and swaps each placeholder for the stored encrypted value (src/api/mcp-service/mcp-redacted-credentials.ts), which the Agent Server decrypts, so the browser never holds the plaintext and the lengths are those of Fernet tokens of the real values (19 → 120, 40 → 140, 142 → 268). Counter-check that the gate bites:control-openhands browser fill 'testid=edit-mcp-server-form >> testid=env-input' $'QA_VAULT_TOKEN=qa-wrong\nQA_NODE=**********\nQA_SERVER=**********',control-openhands browser network --clear, click Test connection again andcontrol-openhands browser wait 'testid=edit-mcp-server-form >> testid=mcp-test-message >> text=Connection' --timeout 90000; the text is red and readsConnection failed: McpError: Connection closedor, when the client only notices at its deadline,Connection timed out. Check the URL and try again.(the gate exits before the MCP handshake; see Gotchas;--name wrong-token), and the--bodiesrow shows"QA_VAULT_TOKEN":"<redacted 8 chars>"next to the two kept placeholders at140and268chars: only the retyped value replaced its stored one.control-openhands browser click 'testid=mcp-custom-editor-close'discards it (count 'testid=mcp-custom-editor'0); reopen withtestid=mcp-server-detail-qa_vault: the env is the three placeholders again and Test connection isConnected — 1 tool(s) available.control-openhands browser press Escape. Save with the placeholders in place: reopen withcontrol-openhands browser click 'testid=mcp-server-detail-qa_vault', append one harmless argument (it only becomes the shell script's$0) withcontrol-openhands browser fill 'testid=edit-mcp-server-form >> testid=args-input' $'-c\ntest "$QA_VAULT_TOKEN" = qa-vault-secret-000 && exec "$QA_NODE" "$QA_SERVER"\nqa-v2', leaveenv-inputas the three placeholders, runcontrol-openhands browser network --clear, thencontrol-openhands browser click 'testid=edit-mcp-server-form >> testid=submit-button' --observe 'testid=edit-mcp-server-form >> testid=submit-button' --observe-ms 6000(Save Server,Save Server [disabled],<absent>) andcontrol-openhands browser wait 'testid=mcp-custom-editor' --state detached --timeout 60000;control-openhands browser network --bodies --filter 'api/settings/mcp' --last 3lists onePATCH /api/settings/mcp/qa_vault(200) whosebodyis{"transport":"stdio","command":"/bin/sh","args":["-c","test \"$QA_VAULT_TOKEN\" = qa-vault-secret-000 && exec \"$QA_NODE\" \"$QA_SERVER\"","qa-v2"]}: a sparse patch with noenvkey at all (untouched secrets are left out, so the server keeps its stored values; neither the placeholder nor an encrypted value travels). The samecontrol-openhands browser network --filter 'api/settings/mcp' --last 3without--bodieslists that row without abodyfield. The card's health label readsReachable — credentials not verified. Aftercontrol-openhands browser reload,control-openhands api GET /api/settings --pick agent_settings.mcp_config.qa_vault.envis still{"QA_VAULT_TOKEN":"**********","QA_NODE":"**********","QA_SERVER":"**********"},control-openhands api GET /api/settings --pick agent_settings.mcp_config.qa_vault.argsends withqa-v2, andcontrol-openhands browser text 'testid=mcp-server-detail-qa_vault'ends with"$QA_SERVER" qa-v2. Reopen withcontrol-openhands browser click 'testid=mcp-server-detail-qa_vault'(the env is the three placeholders), runcontrol-openhands browser network --clearand clicktestid=edit-mcp-server-form >> testid=mcp-test-connection:control-openhands browser text 'testid=edit-mcp-server-form >> testid=mcp-test-message' --timeout 60000isConnected — 1 tool(s) availableagain, which the gate only allows if the Save kept the real token, binary and path rather than storing the placeholder text (--name saved-with-placeholders), and the--bodiesrow carriesqa-v2inargswith the three encrypted lengths (120,140,268) inenv.control-openhands browser press Escape.One request per mutation (
F17.single-request-mutations). Withqa_vaultas the sibling, runcontrol-openhands browser network --clear,control-openhands browser click 'testid=mcp-add-custom-server', pickSTDIO, filltestid=add-mcp-server-form >> testid=name-inputqa_docs,testid=add-mcp-server-form >> testid=command-input<node>andtestid=add-mcp-server-form >> testid=args-input<server.mjs>, clicktestid=add-mcp-server-form >> testid=submit-buttonandcontrol-openhands browser wait 'testid=mcp-custom-editor' --state detached --timeout 60000.control-openhands browser network --filter '/api/settings/mcp'hastotal1, aPOST /api/settings/mcp/qa_docswith status201, andcontrol-openhands browser network --filter qa_vaulthastotal0. Edit:control-openhands browser network --clear,control-openhands browser click 'testid=mcp-server-detail-qa_docs',control-openhands browser fill 'testid=edit-mcp-server-form >> testid=args-input' $'<server.mjs>\n--qa-v2', clicktestid=edit-mcp-server-form >> testid=submit-buttonand the samewait; the filter now lists onePATCH /api/settings/mcp/qa_docs(200) andcontrol-openhands api GET /api/settings --pick agent_settings.mcp_config.qa_docs.argsends with--qa-v2. Delete:control-openhands browser network --clear,control-openhands browser click 'testid=mcp-server-detail-qa_docs',control-openhands browser click 'testid=mcp-custom-editor-delete',control-openhands browser click 'testid=confirmation-modal >> testid=confirm-button'andcontrol-openhands browser wait '[data-server-id=qa_docs]' --state detached --timeout 10000; the filter lists oneDELETE /api/settings/mcp/qa_docs(200). Sibling:control-openhands api GET /api/settings --pick agent_settings.mcp_config.qa_vaultis unchanged from the end of the previous bullet (command/bin/sh, args still ending withqa-v2, the three**********env values,enabledtrue), and aftercontrol-openhands browser click 'testid=mcp-server-detail-qa_vault'its Test connection still readsConnected — 1 tool(s) available: the stored secrets survived the sibling's writes.control-openhands browser press Escape.Credential probe (
F17.credential-probe). GitHub (hosted): runcontrol-openhands browser click 'testid=mcp-marketplace-card-github',control-openhands browser fill 'testid=mcp-install-modal >> testid=mcp-install-field-api_key' ghp_qaInvalid000,control-openhands browser network --clear, thencontrol-openhands browser click 'testid=mcp-install-modal >> testid=mcp-install-submit' --observe 'testid=mcp-install-modal >> testid=mcp-install-submit' --observe-ms 20000(Install,Verifying…,Install) andcontrol-openhands browser text 'testid=mcp-install-modal-error'. The server refuses the token before any tool is listed, so the probe never runs and the text isConnection failed: HTTPStatusError: Client error '401 Unauthorized' for url 'https://api.githubcopilot.com/mcp/' …; the modal stays open (control-openhands browser count 'testid=mcp-install-modal'is1),control-openhands browser network --filter 'api/(mcp|settings)'shows onePOST /api/mcp/testand no/api/settings/mcpwrite,control-openhands api GET /api/settings --pick agent_settings.mcp_config.githubhas no value andcontrol-openhands api GET /api/settings/secretslists noGITHUB_PERSONAL_ACCESS_TOKEN(control-openhands browser screenshot 'testid=mcp-install-modal' --feature F17.credential-probe --name github-invalid);control-openhands browser click 'testid=mcp-install-cancel'. Slack (stdio; it lists 8 tools with any token, so only the probe, a channel listing, can tell a bad token):control-openhands browser click 'testid=mcp-marketplace-card-slack',control-openhands browser fill 'testid=mcp-install-modal >> testid=mcp-install-field-SLACK_TEAM_ID' T_QA_INVALID,control-openhands browser fill 'testid=mcp-install-modal >> testid=mcp-install-field-SLACK_BOT_TOKEN' xoxb-qa-invalid-000(typepassword),control-openhands browser click 'testid=mcp-install-modal >> testid=mcp-install-submit'andcontrol-openhands browser wait 'testid=mcp-install-modal-error' --timeout 150000(the first run downloads the package through npx, about a minute: a plain click, then one longwait, rather than--observe-ms, which records a few transient states).control-openhands browser text 'testid=mcp-install-modal-error'isCredential check failed: invalid_authwith direct internet; behind the TLS-intercepting proxy the probe's own HTTPS call fails first and it readsCredential check failed: fetch failed. Either way the modal stays open andcontrol-openhands api GET /api/settings --pick agent_settings.mcp_config.slackhas no value (--name slack-invalid);control-openhands browser click 'testid=mcp-install-cancel'. For Slack's own verdict behind the proxy, run the same command as a custom server, which keeps the entry's probe (#18034):control-openhands browser click 'testid=mcp-add-custom-server', pickSTDIO, filltestid=add-mcp-server-form >> testid=name-inputqa_slack,testid=add-mcp-server-form >> testid=command-inputnpx,control-openhands browser fill 'testid=add-mcp-server-form >> testid=args-input' $'-y\n@zencoderai/slack-mcp-server'andcontrol-openhands browser fill 'testid=add-mcp-server-form >> testid=env-input' $'SLACK_TEAM_ID=T_QA_INVALID\nSLACK_BOT_TOKEN=xoxb-qa-invalid-000\nNODE_EXTRA_CA_CERTS=/root/.ccr/ca-bundle.crt'(your proxy's CA bundle), thencontrol-openhands browser click 'testid=add-mcp-server-form >> testid=mcp-test-connection'andcontrol-openhands browser text 'testid=add-mcp-server-form >> testid=mcp-test-message' --timeout 90000:Credential check failed: invalid_auth, classtext-red-500(control-openhands browser screenshot 'testid=mcp-custom-editor' --feature F17.credential-probe --name slack-custom-invalid-auth).control-openhands browser click 'testid=add-mcp-server-form >> testid=submit-button' --observe 'testid=add-mcp-server-form >> testid=submit-button' --observe-ms 20000(Add Server,Add Server [disabled],Add Server: Save tests first) keeps the editor open (control-openhands browser count 'testid=mcp-custom-editor'is1) with the same red message, andcontrol-openhands api GET /api/settings --pick agent_settings.mcp_config.qa_slackhas no value; close it withcontrol-openhands browser click 'testid=mcp-custom-editor-close'(an Escape pressed while the Save's test still runs is ignored). A server the catalog does not know gets no probe:control-openhands browser click 'testid=mcp-health-probe-qa_vault' --observe 'testid=mcp-health-label-qa_vault' --observe-ms 20000ends onReachable — credentials not verified(the Card health wording).One error per stale mutation (
F17.delete-server,F17.enable-disable). For each viewportdesktopandphone, runcontrol-openhands browser viewport <viewport>. Arrange a disposable fixture withcontrol-openhands fixture mcp-server --name qa-toasts; substitute its printed<node>and<server.mjs>incontrol-openhands api POST /api/settings/mcp/qa_toasts --write --data '{"command":"<node>","args":["<server.mjs>"],"enabled":true}' --pick agent_settings.mcp_config. Runcontrol-openhands browser goto /mcp,control-openhands browser reload, andcontrol-openhands browser click 'role=button[name="Edit qa_toasts"]'. Remove it behind the loaded editor withcontrol-openhands api DELETE /api/settings/mcp/qa_toasts --write --pick agent_settings.mcp_config(arrange a stale view, not UI deletion proof). Startcontrol-openhands browser record start --feature F17.delete-server --name <viewport>-stale-delete, thencontrol-openhands browser click 'testid=mcp-custom-editor-delete'andcontrol-openhands browser click 'testid=confirmation-modal >> testid=confirm-button' --observe 'role=status' --observe-ms 3000.control-openhands browser toasts --historycontains exactly one errorMCP server 'qa_toasts' was not found; the editor stays open. Capturecontrol-openhands browser screenshot --feature F17.delete-server --name <viewport>-stale-delete, stop recording, closetestid=mcp-custom-editor-close, and reload. Recreate the fixture with the same POST, reload, then repeat the API DELETE while the card is still loaded. Startcontrol-openhands browser record start --feature F17.enable-disable --name <viewport>-stale-toggle, runcontrol-openhands browser click 'testid=mcp-installed-toggle-qa_toasts' --hover-first --observe 'role=status' --observe-ms 3000, and readcontrol-openhands browser toasts --history: again exactly one error with that text. Capture underF17.enable-disable, stop recording, and reload.control-openhands api GET /api/settings --pick agent_settings.mcp_config.qa_toastshas no value; restore desktop after the phone pass. The Agent Server's 404s and browser HTTP-error diagnostics are expected in these checks.The agent uses it (
F17.agent-uses-server). Withqa_timeenabled runcontrol-openhands conversation start --prompt "Use the qa_time MCP server's get_current_time tool with timezone UTC. Do not use the terminal. Reply with only the tool's datetime value." --wait --timeout 240, thencontrol-openhands conversation events <id> --kinds ActionEvent,ObservationEvent,MessageEventwith theidit printed. There is anActionEventwith toolqa_time_get_current_time(MCP tools reach the agent as<server id>_<tool>), its observation reads[Tool 'qa_time_get_current_time' executed.] { "timezone": "UTC", "datetime": … }, and the agent's reply is thatdatetime.control-openhands conversation events <id> --grep qa_time_get_current_time --from-startalso matches theSystemPromptEvent(the tool was offered).control-openhands browser screenshot --feature F17.agent-uses-server --name conversationshows the tool step (its title is model-written, e.g.Get current time in UTC via qa_time MCP) and the datetime reply.conversation startleaves the browser on the conversation:control-openhands browser goto /mcpnext.Enable and disable (
F17.enable-disable). On/mcpruncontrol-openhands browser attr 'testid=mcp-installed-toggle-qa_time' aria-checked(true;aria-labelDisable server),control-openhands browser click 'testid=mcp-installed-toggle-qa_time',control-openhands browser reloadand the sameattr(false; labelEnable server).control-openhands api GET /api/settingsshowsagent_settings.mcp_config.qa_time.enabledfalsewith command, args and env intact;control-openhands browser screenshot 'testid=mcp-server-item >> has-text=qa_time' --feature F17.enable-disable --name disabledshows the + icon. With no other server exposing that tool, runcontrol-openhands conversation start --prompt "Without running any command: is a tool named get_current_time available to you right now? Reply with only YES or NO." --wait --timeout 240; the reply isNO,control-openhands api GET /api/conversations/<id> --pick agent.mcp_config.qa_time.enabledisfalse, andcontrol-openhands conversation events <id> --grep qa_time_get_current_time --from-starthascount0(noSystemPromptEventlists it). Thencontrol-openhands browser goto /mcp. Click the toggle again and reload; it istrue.Phone modals (
F17.phone). Atbrowser viewport phoneon/mcpruncontrol-openhands browser click 'testid=mcp-add-custom-server',control-openhands browser bbox 'testid=mcp-custom-editor'(insideViewporttrue,pageHorizontalOverflowfalse) andcontrol-openhands browser screenshot --feature F17.phone --name custom-editor; close withtestid=mcp-custom-editor-close. Do the same fortestid=mcp-marketplace-card-stripewithtestid=mcp-install-modal(--name install-modal), thencontrol-openhands browser viewport desktop.Cloud backend (
F17.cloud-nav,F17.native-git-tabs). Blocked without an OpenHands Cloud backend. On the local backendcontrol-openhands browser click 'testid=mcp-marketplace-card-github'shows only the MCP form (browser count 'testid=mcp-install-tab-native'is0). With Cloud active,browser text 'testid=extensions-navbar-desktop'should list only MCP Servers and the cloud Skills link (browser attr 'testid=sidebar-extensions-/skills' hrefends in/settings/skills), and the GitHub modal should showmcp-install-tab-native(Recommended) andmcp-install-tab-mcp.Credential-free rename (
F17.custom-edit,F17.single-request-mutations). Keep the preceding credential-bearingqa_vaultfixture unchanged as a sibling. Arrange a separate server using the checked-in inert MCP fixture's<node>and<server.mjs>fromcontrol-openhands fixture mcp-server --name qa-vault:control-openhands api POST /api/settings/mcp/qa_plain_rename --write --data '{"command":"<node>","args":["<server.mjs>"],"enabled":true}'(substitute the actual absolute fixture paths; no env credentials). Open/mcp, reload, clicktestid=mcp-server-detail-qa_plain_rename, filltestid=edit-mcp-server-form >> testid=name-inputwithqa_plain_renamed, clearbrowser network, and clicktestid=edit-mcp-server-form >> testid=submit-button. Wait fortestid=mcp-custom-editorto detach with--timeout 60000.browser network --bodies --filter '/api/settings'must show exactly onePATCH /api/settingswith status200; itsagent_settings_diff.mcp_configremovesqa_plain_renameand addsqa_plain_renamed, without changingqa_vault. Reload: the new detail count is1, old count0, and theqa_vaultsibling remains present. Delete only the renamed plain fixture after the check. This proves the atomic credential-free rename; it does not establish credential migration. A separate stored-credential guard prevents renamingqa_vaultbefore any PATCH, including after retyping the current form's env values, because the previous configuration still contains masked credentials. Record that guard separately instead of treating it as an atomic-rename failure or silently removing credentials.Cleanup. On
/mcp(not the conversation pageconversation startleft open), deleteqa_time,qa_shttp,qa_vaultand any remainingqa_plain_renamed,time,time_1,tavily,filesystemcards through the editor's Delete: for each id,browser focus '[data-server-id=<id>]',browser press Enter,browser click 'testid=mcp-custom-editor-delete',browser click 'testid=confirmation-modal >> testid=confirm-button',browser wait '[data-server-id=<id>]' --state detached --timeout 10000. Afterbrowser reload,browser count 'testid=mcp-installed-empty'is1andapi GET /api/settings --pick agent_settings.mcp_configis{}. Delete theTAVILY_API_KEYsecret on/settings/secrets(F14:testid=secret-item >> has-text=TAVILY_API_KEY >> testid=delete-secret-button, thentestid=confirmation-modal >> testid=confirm-button), stop the Streamable HTTP fixture by its PID, and restoredeepseek-flashas the active profile if you changed it.Health belongs to a backend (
F17.server-health). Arrange a realfixture mcp-serverecho entry. Register a second disposable backend identity against the own stack's direct Agent Server port (the first uses its ingress); this exercises separate registry identities with one physical stack. On Local open/mcp, probe the echo server and wait forReachable — credentials not verified. Switch throughbackend-selector→role=listbox >> text="QA_SCOPE"and read the same card withoutbrowser gotoor reload (both clear the global store). Expected: the unprobed identity is unchecked. Known failure, reproduced twice 2026-10-12 (#16954): the new identity shows the first identity's Reachable verdict. Return to Local, reload only before the next independent trial, probe and switch again. This proves the identity collision; different credentials, delayed probes and revision rotation on independent servers are additional branches. Restore Local and remove the alias afterwards.Incomplete sibling must not hide working tools (
F17.custom-add,F17.agent-uses-server). Usefixture mcp-server --name qa-settings-echoand the real settings API to store its printed stdio command/args underqa_settings_echo. Probe it through the MCP card; a UI-started dummy-loopback conversation'sSystemPromptEventincludesqa_echo. Arrangeapi POST /api/settings/mcp/qa_empty --write --data '{}'. Expected: 422 and no entry; valid tools remain available. Known failure, reproduced twice 2026-10-12 (OpenHands/software-agent-sdk#5643): 201 stores{"enabled":true}, the entry has no card in the UI, and a real Home-composer start initializes without the valid echo tool. Deleteqa_emptyand recheck the good-only baseline. No successful model reply is required to inspect the initialized tool list.Unreachable MCP degrades initialization (
F17.agent-uses-server). Beside the actual echo fixture arrange first a missing stdio executable, then astreamable-httpserver athttp://127.0.0.1:1/mcp; for each, start a chat through Home with the dummy loopback model and inspectconversation events <id> --kinds SystemPromptEvent --from-start --last 1. Expected: initialization completes and retainsqa_settings_echo_qa_echo, then reaches the refused LLM endpoint. This checks connection-failure degradation before a successful reply. Structural invalid config has the separate OpenHands/software-agent-sdk#5643 failure above. Remove only the own bad entry.MCP timeout leaves initialization (
F17.agent-uses-server). An own stdio process that keeps stdin open for 90 seconds without answering the MCP handshake is a real unresponsive-server precondition. Configure it beside the echo fixture, then start a chat from Home using the dummy loopback model. Expected: after the bounded initialization timeout, a SystemPromptEvent and user message persist and the run reaches the refused LLM endpoint. Inspect the initialized tools separately: proceeding past the timeout alone does not establish healthy-sibling retention or a successful model reply. Remove the own slow entry and doctor.
Gotchas
- Server errors on MCP mutations show one toast with the server's message, or
An error occurredwhen the body has none. A custom server's Save Server or Add Server action whose pre-save connection test fails keeps the editor open. To check backend loss, stop the owned Agent Server with the editor open, click Save, then restore it withcontrol-openhands restart; background settings polls can add separate error toasts, so count only the toast caused by the click. That Save fails at its pre-save connection test (oneGET /server_info502, toastAn error occurred, editor open) and sends noPATCH. A delete or enable toggle with no answer or a 5xx answer is sent three times in all (withRetryinsrc/api/with-retry.ts; backend stopped: three502s, 0.5 s and 1 s apart) before its single toast; a 4xx answer other than 408 or 429 is not retried: the stale delete inF17.delete-serversends oneDELETEthat answers404. - Desktop
/customizeis a client-side redirect:browser urlmay still read/customizefor a moment; usewait-url '/mcp(\?|$)'. - From 768 to 1023 px the sidebar rail stays and the phone top bar is gone. The compact Customize selector above each detail page provides sibling navigation; the rail's Customize link (
sidebar-skills-link, unscoped at this width) still returns to the hub. - On a phone the drawer and the hidden desktop rail both render
sidebar-skills-link; scope it withtestid=sidebar-mobile-drawer >> ...or the click fails with a strict-mode error, even thoughbrowser testidslists it once. - Editor dropdowns are comboboxes: click
server-type-dropdownorauth-mode-dropdown, thenrole=option[name="..."]. Server types readSSE,STDIOandSHTTP(not "Streamable HTTP"); auth modes readNone,Bearer token,HeaderandOAuth. The type dropdown exists only when adding. - The timeout field is
type="number":browser fillrefuses letters, soTimeout must be a valid numbercannot be reached from the UI. - A red test message stays on screen when a later validation error appears, so
css=p.text-feedback-errorcan match two paragraphs; take>> nth=0(the validation error comes first). - Install-modal required fields use native browser validation (a tooltip, no paragraph): assert
validationMessage. - The installed and library toggles are
role=switchbuttons: readaria-checked, notaria-pressed. - MCP stdio servers start with a minimal environment. Behind a TLS-intercepting proxy, without trust settings in the run's private
HOME,uvxcatalog installs fail withConnection closed(<run>/private/stack.logshowsUnknownIssuer) andnpxones withConnection timed out. That is the sandbox, not the product.launchnow seeds the trust files fromSSL_CERT_FILE/NODE_EXTRA_CA_CERTS, so a fresh run installs fine andF17.install-errormust move them aside; once a package is in the run's uv cache it installs even without them. - An installed card's health row swallows clicks (so the probe button does not open the editor). On a card without a catalog description (
qa_broken) that row is the card's centre, so a plain card click opens nothing; a catalog description moves it down. Open the editor by the card's name ormcp-server-detail-<id>line, or focus the card and press Enter. conversation startleaves the browser on the conversation page; every MCP-page command after it needsbrowser goto /mcpfirst, or the per-card selectors silently wait on a page that has none.@modelcontextprotocol/server-everything sseprintedServer is runninghere but never answered on its port; use thestreamableHttpmode for the remote-server fixture.- A server without a catalog credential probe reads
Reachable — credentials not verified, neverConnected — credentials verified (N tool(s)), even without credentials. Health after a save is seeded from the pre-save test and is lost on reload (Not checked yet). - Adding a custom server shows no toast; only catalog installs and deletes toast. Assert the card after reload.
- Catalog installs are add-only: a second Time install becomes
time_1. STDIO servers match the catalog by command plus leading args rather than name, sotime_1and a custom server running a catalog command under its own name (qa_time) retain the description, badge and search keywords. A server that only borrows a catalog name does not (F17.install-stdio,F17.custom-add). Twelve provider-OAuth-only library entries, such as Sentry, HubSpot and Cloudflare OAuth, open an empty modal whose Install does nothing (F17.install-unsupported, #17922). - The section filter's trigger and menu are named
Filter MCP servers. - Header and environment-variable format errors have distinct copy.
F17.custom-validationexpectsHeaders must follow KEY=value formatfor headers andEnvironment variables must follow KEY=value formatfor env lines. Feedback uses readable theme classestext-feedback-errorandtext-feedback-success. - A catalog stdio server runs with the Agent Server's minimal environment: behind a TLS-intercepting proxy its own HTTPS calls fail (
fetch failed) even when npx could download it, and the install modal has no field forNODE_EXTRA_CA_CERTS; use the custom editor with the same command to see the provider's real answer (F17.credential-probe). TheCredential check failed: fetch failedwording itself is #18161: the Slack interpreter turns anyis_errortool result into a credential failure, though the server connected and listed its tools. - GitHub's hosted MCP endpoint answers an invalid token with HTTP 401 at connect, before tools are listed, so its
get_meprobe never runs and the modal shows the connection wording (Connection failed: HTTPStatusError … 401 Unauthorized), notCredential check failed; filed as OpenHands/software-agent-sdk#5607, since the test endpoint reports the 401 aserror_kindunknown. - The shell-gated
qa_vaultfixture exits before the MCP handshake, which the Agent Server reports either at once asConnection failed: McpError: Connection closedor only at its deadline asConnection timed out. Check the URL and try again.; neither is theCould not start the server commandwording, which needs a command that cannot be spawned at all. Wait ontext=Connection, which matches both and notConnected — …. browser network --bodiesshows what the page sent, never a secret: a value under a key that names a credential (key, token, secret, auth, pass, session, sig, credential) and every value of anenvorheadersmap becomes<redacted N chars>(N the real length), and a URL in any other string (a server'surl) keeps its host and path but loses its userinfo and the values of its secret-named query parameters (https://<redacted 2 chars>:<redacted 8 chars>@host/mcp?api_key=<redacted 17 chars>), while the settings API's**********placeholder is kept as is, so a row tells "placeholder sent" from "a value sent". The MCP editor sends neither for an untouched secret: Test connection swaps the placeholder for the stored encrypted value (aGET /api/settingsinencryptedmode first; Fernet tokens, so 120 chars for a 19-char token, 140 for 40, 268 for 142) and Save leavesenvout of its sparse PATCH altogether (F17.stored-secret-reuse). Without--bodiesno row carries abodyfield, and only app-origin writes keep one.- A browser verb's client call waits 120 s, or 10 s longer than the verb's own
--timeoutor--observe-mswhen that is longer, sobrowser wait 'testid=mcp-install-modal-error' --timeout 150000runs its full deadline and a miss ends with Playwright's timeout and a failure screenshot (before this, every call was aborted at 120 s withTimeoutError: The operation was aborted due to timeoutwhile the page kept going). For a first Slack install use a plain click, then thatwait;--observe-msis for a few transient states, not a minute-long outcome. - Known issue #17941: turning off an enabled card toggle can drop the click when the pointer moves in and presses at once (
F17.enable-disable). - Known issue #15421: A configured Linear MCP can be ignored while an explicitly disabled Linear skill is used instead. The new-chat and automation paths need a working authorized Linear MCP connection, a concrete issue ID and an approved model; the report's automation ZIP is also needed to replay its exact automation settings. (
F17.agent-uses-server). - Known issue #15430: An OAuth MCP callback in Docker can redirect to an unexposed dynamic localhost port. Completing the callback needs a Docker stack and an approved OAuth MCP provider/account (the report uses GitLab); a local unauthenticated Test connection cannot reach the redirect. (
F17.install-oauth). - Known issue OpenHands/software-agent-sdk#5375: A successful GitLab OAuth login can be followed by an invalid localhost redirect URI on the first ticket-to-code-change MCP action. Reproduction needs the authorized self-hosted GitLab MCP endpoint/account and the ticket-to-code-change plugin/workflow; the reported endpoint is not a public fixture. (
F17.install-oauth,F17.agent-uses-server). - Known issue OpenHands/software-agent-sdk#6028 (
F17.install-oauth,F17.agent-uses-server): OAuth2 MCP credentials are not forwarded to ACP agents. Live verification is blocked without an owned OAuth-authenticated MCP server/token and a genuine ACP adapter/session. The Local native-agent MCP connection check does not exercise credential forwarding into ACP.