Skip to content

WebUI: Persist the on/off state of the MCP servers for new conversations#20750

Merged
allozaur merged 4 commits into
ggml-org:masterfrom
ServeurpersoCom:webui/mcp-enabled-persistence-new-chat
Mar 19, 2026
Merged

WebUI: Persist the on/off state of the MCP servers for new conversations#20750
allozaur merged 4 commits into
ggml-org:masterfrom
ServeurpersoCom:webui/mcp-enabled-persistence-new-chat

Conversation

@ServeurpersoCom
Copy link
Copy Markdown
Contributor

Make sure to read the contributing guidelines before submitting a PR

IndexedDB already stores the MCP server on/off state for existing
conversations, but new conversations always start with everything off.

This PR adds localStorage persistence so new conversations inherit the
previously set on/off state. It also simplifies the enabled checks by
removing dead code that was unreachable in practice.

Close #20736

@ServeurpersoCom ServeurpersoCom requested a review from a team as a code owner March 19, 2026 11:05
@allozaur allozaur force-pushed the webui/mcp-enabled-persistence-new-chat branch from e770765 to ccbfc56 Compare March 19, 2026 11:27
@allozaur allozaur merged commit cd708db into ggml-org:master Mar 19, 2026
6 checks passed
Ethan-a2 pushed a commit to Ethan-a2/llama.cpp that referenced this pull request Mar 20, 2026
…ons (ggml-org#20750)

* webui: add persistent storage for MCP server on/off state in new chats

* webui: simplify MCP enabled checks, remove dead server.enabled fallback

* chore: update webui build output

* chore: update webui build output

---------

Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
…ons (ggml-org#20750)

* webui: add persistent storage for MCP server on/off state in new chats

* webui: simplify MCP enabled checks, remove dead server.enabled fallback

* chore: update webui build output

* chore: update webui build output

---------

Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>
rsenthilkumar6 pushed a commit to rsenthilkumar6/llama.cpp that referenced this pull request May 1, 2026
…ons (ggml-org#20750)

* webui: add persistent storage for MCP server on/off state in new chats

* webui: simplify MCP enabled checks, remove dead server.enabled fallback

* chore: update webui build output

* chore: update webui build output

---------

Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
…ons (ggml-org#20750)

* webui: add persistent storage for MCP server on/off state in new chats

* webui: simplify MCP enabled checks, remove dead server.enabled fallback

* chore: update webui build output

* chore: update webui build output

---------

Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>
dandm1 pushed a commit to dandm1/llama.cpp that referenced this pull request May 13, 2026
…ons (ggml-org#20750)

* webui: add persistent storage for MCP server on/off state in new chats

* webui: simplify MCP enabled checks, remove dead server.enabled fallback

* chore: update webui build output

* chore: update webui build output

---------

Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>
my-other-github-account pushed a commit to my-other-github-account/llama.cpp that referenced this pull request May 15, 2026
…ons (ggml-org#20750)

* webui: add persistent storage for MCP server on/off state in new chats

* webui: simplify MCP enabled checks, remove dead server.enabled fallback

* chore: update webui build output

* chore: update webui build output

---------

Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>
my-other-github-account pushed a commit to my-other-github-account/llama.cpp that referenced this pull request May 15, 2026
…ons (ggml-org#20750)

* webui: add persistent storage for MCP server on/off state in new chats

* webui: simplify MCP enabled checks, remove dead server.enabled fallback

* chore: update webui build output

* chore: update webui build output

---------

Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>
fewtarius pushed a commit to fewtarius/llama.cpp that referenced this pull request May 30, 2026
…ons (ggml-org#20750)

* webui: add persistent storage for MCP server on/off state in new chats

* webui: simplify MCP enabled checks, remove dead server.enabled fallback

* chore: update webui build output

* chore: update webui build output

---------

Co-authored-by: Aleksander Grygier <aleksander.grygier@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Misc. bug: Enabled MCP servers don't stay enabled when starting a new chat

2 participants