Skip to content

ui: enable MCP and manage its servers in settings - #119

Closed
allozaur wants to merge 26 commits into
allozaur/feat/ui-models-discover-buttonfrom
allozaur/feat/ui-mcp-in-settings
Closed

allozaur wants to merge 26 commits into
allozaur/feat/ui-models-discover-buttonfrom
allozaur/feat/ui-mcp-in-settings

Conversation

@allozaur

@allozaur allozaur commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Overview

MCP is switched on in Settings > Agent, and its servers are managed from there, so the sidebar no longer needs an MCP entry.

Additional information

This overlaps the MCP extension and servers work (#61, #35) and will need reconciling with them.

What changed
  • "Show MCP" becomes "Enable MCP", a real switch: while it is off, no MCP server is checked or connected and chats get no MCP tools.
  • A "Manage MCP servers" button under the checkbox opens the existing servers dialog.
  • The MCP entry in the sidebar footer and the /mcp-servers page are removed.
  • A profile that already has servers gets Enable MCP on.
Testing
  • vitest --project=unit (944) and --project=client (350) pass, including a new test for the switch; ESLint and Prettier pass on the changed files.
  • Checked in the browser: no MCP sidebar entry, the Manage button appears when the box is ticked and opens the dialog.
  • Not tried with a real MCP server in a chat.

Requirements

@allozaur
allozaur added this pull request to stack #120 November 24, 2026 09:54
@allozaur
allozaur removed this pull request from stack #120 November 24, 2026 09:59
@allozaur
allozaur force-pushed the allozaur/feat/ui-models-discover-button branch from 6c03b79 to ffb248d Compare November 24, 2026 10:00
@allozaur
allozaur force-pushed the allozaur/feat/ui-mcp-in-settings branch from b52531a to 4374b7e Compare November 24, 2026 10:00
@allozaur
allozaur added this pull request to stack #121 November 24, 2026 10:00
@allozaur
allozaur force-pushed the allozaur/feat/ui-mcp-in-settings branch from 4374b7e to c03e370 Compare November 24, 2026 10:07
@allozaur
allozaur force-pushed the allozaur/feat/ui-models-discover-button branch 2 times, most recently from 96e6aaf to c32f32d Compare November 24, 2026 10:11
@allozaur
allozaur force-pushed the allozaur/feat/ui-mcp-in-settings branch from c03e370 to 544608d Compare November 24, 2026 10:11
@allozaur
allozaur force-pushed the allozaur/feat/ui-models-discover-button branch from c32f32d to 2d5139e Compare November 24, 2026 10:42
@allozaur
allozaur force-pushed the allozaur/feat/ui-mcp-in-settings branch 2 times, most recently from 2c7bbd9 to a6b4072 Compare November 24, 2026 10:45
@allozaur
allozaur removed this pull request from stack #121 November 24, 2026 12:08
@allozaur
allozaur changed the base branch from allozaur/feat/ui-models-discover-button to master November 24, 2026 12:08
@allozaur
allozaur force-pushed the allozaur/feat/ui-mcp-in-settings branch from a6b4072 to 36f9c9b Compare November 24, 2026 12:08
@allozaur
allozaur changed the base branch from master to allozaur/feat/ui-models-discover-button November 24, 2026 12:08
@allozaur
allozaur added this pull request to stack #123 November 24, 2026 12:09
On phones the sidebar's Settings opens a full-height sheet instead of the
settings page. Its first page has theme tiles and a row per section; a
row pushes the section's page of captioned inset groups, with Advanced,
Tools, a tool group and a single tool as further pages. Switches, pickers
and numbers apply as they are changed, checked as Save checks them.

Voice and Data get inset renderings of their own, and the Tools table
becomes tool group and tool pages. Desktop keeps the settings dialog.

Assisted-by: Claude (Opus 5.5 Medium)
The Switch gets a size="lg" variant, 48x28 with a 24px thumb, and the
settings sheet's rows use it.

Assisted-by: Claude (Opus 5.5 Medium)
Settings can name a platform: desktop, mobile or all. A desktop or
tablet leaves out the mobile ones and a phone the desktop ones, in the
settings dialog, the settings page and the phone sheet alike.

Desktop only: always show sidebar, conversation tabs, single-row chat
form and send on Enter. Mobile only: organization name on mobile.

Assisted-by: Claude (Opus 5.5 Medium)
On a phone the sidebar drops its New chat and Settings rows from the
top. A round Settings key sits in the bottom left corner and a New chat
key in the bottom right, outside the list, so only the conversations
scroll, fading out above them.

Assisted-by: Claude (Opus 5.5 Medium)
An option whose name runs to two lines grows its row instead of
squeezing it. Group titles take the size of the sidebar's section
headings on a phone; a field's own label under one keeps the caption
size, as do the notes under the groups.

Assisted-by: Claude (Opus 5.5 Medium)
The + sheet on phones becomes a native-style sheet: a header with close,
title and a Photos shortcut, grouped inset rows, and pages pushed for
Tools and each tool group instead of an inline collapsible. Camera and
Photos rows open the device pickers when the model has vision.

Assisted-by: Claude (Opus 5.5 Medium)
Drop the Photos header action, and let Add files use the sheet's own
file input so the sheet closes only once files are picked.

Assisted-by: Claude (Opus 5.5 Medium)
Dividers stop at the row's padding on both sides, as in a native inset
list. The page stack and the inset-list classes move to a hook and a
constants file, ready for other phone sheets.

Assisted-by: Claude (Opus 5.5 Medium)
The Switch gets a size="lg" variant, 48x28 with a 24px thumb, and the
add sheet's tool rows use it.

Assisted-by: Claude (Opus 5.5 Medium)
…sheet

Settings opens over the sidebar, which stays open. Its sheet spans the
screen's width and meets the bottom, with the screen's corner rounding
on top, so it does not read as part of the page slid aside. The add
sheet floats inset from the screen's edges with the chat form's
rounding. A pushed settings page starts at its top, and back returns to
where the page below was left. The system message has a placeholder,
and the number and text fields drop the form plugin's blue border and
autofill.

Assisted-by: Claude (Opus 5.5)
On a phone the conversation list keeps 1.5rem clear at its end for the
fade above the pinned keys, and the sticky Show less row stopped short
of it, so rows showed beneath. The row now sticks into that space and
its surface fills it to the list's edge.

Assisted-by: Claude (Opus 5.5)
At 14px, iOS zooms the page in when one of them is focused.

Assisted-by: Claude (Opus 5.5)
A new NativeSelect lays an invisible native select over a trigger
styled like ours, so a tap opens the phone's own wheel or sheet. The
settings sheet's select rows and the Voice page's input, transcription
model and microphone pickers use it, keeping option groups.

Assisted-by: Claude (Opus 5.5)
A bottom drawer spans the screen's width and rounds its top corners as
the screen does. The add sheet drops its floating inset. A sheet's
close or back key sits 1rem from the top and side, outside the header,
with the title centered on its middle. The settings sheet's header lies
over the page, a blurred surface that fades out below the title.

Assisted-by: Claude (Opus 5.5)
The drag handle sits 0.5rem from the top, so the title, still centered
on the corner key, clears it, and the content starts 1.25rem below the
title. Shared as SHEET_CONTENT_CLASS and SHEET_HEADER_CLASS.

Assisted-by: Claude (Opus 5.5)
The phone's model picker opens partway on the models in reach (loaded,
favorite, then recently picked, up to six) as plain rows in one group,
the selected one checked. Below them a Reasoning row opens the effort
levels as a page, and All models opens the full list as a page. A
swipe up stretches the sheet to the top with the same rows. The search
stays at the sheet's foot and shows its results in place.

The old picker drawer and the reasoning row's list variant are gone.

Assisted-by: Claude (Opus 5.5)
The All models page and search results show the same rows as the
models the picker opens with, in titled inset groups: loaded,
favorites, then one per family (or one for all of them, as the setting
asks). A row marks the chat's model and the dictation model, shows the
model's size, quantization and voice badges, and opens the model's
details over the sheet. The swipe that stretched the short sheet is
gone. Every sheet keeps 1.75rem between its title and its content.

Assisted-by: Claude (Opus 5.5)
Tapping any model in the phone picker, among the first rows, on the
All models page or in search results, opens a menu anchored to the
row: use it in the chat, load or unload it on a router (or cancel its
loading), and open its details over the picker.

Assisted-by: Claude (Opus 5.5)
…r groups

Llama UI gets inset-list, inset-list-row, inset-list-row-body,
inset-list-title, inset-list-caption and sheet-key utilities, with a
story and a DESIGN.md entry; Llama Chat's sheet constants now name
them. A new --sheet-group-radius (1.5rem) rounds the inset groups
inside any drawer.

Assisted-by: Claude (Fable 5.2)
…menu

A tap on a model switches the chat to it, loading it if need be, as on
a desktop. Holding the row opens its menu, as a held chat row does:
Unload (or Cancel loading) on a router, and More details, which opens
the model's details over the picker.

Assisted-by: Claude (Fable 5.2)
… surface

The picker's search is the shared SearchInput, with its clear button,
inside the chat form's surface and single-row radius. SearchInput gets
an inputClass prop, to drop the input's own field look inside a
surface of the wrapper's.

Assisted-by: Claude (Fable 5.2)
The Models page shows the Discover Models button on a router even when Discover is off, as its main action and in the empty models list. When it is off, the button asks before it turns Discover on.

Assisted-by: Claude (Fable 5.2)
Show MCP becomes Enable MCP. While it is off, no MCP server is checked or connected and chats get no MCP tools. Settings > Agent has a Manage MCP servers button that opens the servers dialog. The MCP entry in the sidebar and the /mcp-servers page are removed.

Someone who already added a server gets Enable MCP on.

Assisted-by: Claude (Fable 5.2)
The settings sheet gets the Manage MCP servers row under Enable MCP, as the settings dialog has it, and opens the servers as a page of the sheet. Adding a server still opens its form on top.

Assisted-by: Claude (Opus 5.5 Medium)
@allozaur
allozaur force-pushed the allozaur/feat/ui-mcp-in-settings branch from 36f9c9b to ddba181 Compare November 24, 2026 12:19
@allozaur
allozaur force-pushed the allozaur/feat/ui-models-discover-button branch from dbe1750 to 863e672 Compare November 24, 2026 12:19
@allozaur
allozaur removed this pull request from stack #123 November 24, 2026 12:34
@allozaur
allozaur force-pushed the allozaur/feat/ui-models-discover-button branch from 863e672 to ff7b09a Compare November 24, 2026 12:34
@allozaur allozaur closed this Nov 24, 2026
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation server/ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant