@@ -152,6 +152,8 @@ When `settings.json` includes `mcp.servers`, mini-coder connects to each configu
152152 Implementation details:
153153
154154 - Only MCP **tools** are imported. MCP prompts and resources are not surfaced in the UI yet.
155+- Each configured server entry stores a `name`, `url`, and `enabled` flag. When `enabled` is omitted while loading older configs, it defaults to `true`.
156+- Disabled servers are still discovered at startup so `/mcp` can re-enable them without reconnecting; the flag only controls whether their imported tools are exposed to new turns.
155157 - Imported tool names are prefixed as `<serverName>__<toolName>` so they stay stable and avoid collisions with built-ins and other servers.
156158 - Tool input schemas are forwarded from MCP JSON Schema into pi-ai tool definitions.
157159 - Tool calls execute through the MCP client and preserve text/image output directly. Unsupported MCP content kinds are summarized as text.
@@ -786,7 +788,7 @@ add tests for undo_
786788 | `/undo` | Remove the last conversational turn from history: the most recent user message and all assistant/tool messages that followed in that turn. Persisted UI messages are not part of turns and are not removed by `/undo`. Context-only — does not revert filesystem changes. …
787789 | `/reasoning` | Toggle display of model thinking/reasoning content in the log. The new on/off state is persisted immediately and restored on launch. When no setting exists yet, reasoning defaults to shown. …
788790 | `/verbose` | Toggle [verbose tool rendering](#verbose-tool-rendering) for shell previews/results, read previews/results, grep previews/results, edit previews, and edit errors. Successful edit results stay compact regardless of this setting. Todo tool results always render in full. …
789-| `/mcp` | Interactive MCP server selector. Lists discovered MCP servers with their current on/off state. Selecting a server toggles it for future turns and appends a UI-only notice with the exact tool delta, for example `Disabled MCP server "docs" (-3 tools).` Discovery and connection still happen only at startup; `/mcp` does not add, remove, or reload servers. …
791+| `/mcp` | Interactive MCP server selector. Lists discovered MCP servers with their current on/off state. Selecting a server toggles it for future turns, persists the new on/off state immediately, and appends a UI-only notice with the exact tool delta, for example `Disabled MCP server "docs" (-3 tools).` Discovery and connection still happen only at startup; `/mcp` does not add, remove, or reload servers. …
790792 | `/todo` | Append the current session todo list to the conversation pane as a UI-only checklist block. The message is persisted with the session, excluded from model context, and does not create a session by itself when no session exists yet. …
791793 | `/login` | Interactive OAuth login. Shows a selector with available OAuth providers and their login status (logged in / not logged in). Selecting a provider starts the browser-based OAuth flow. Uses pi-ai's OAuth registry. Credentials are persisted to the app data directory and used for provider discovery on subsequent launches. …
792794 | `/logout` | Interactive OAuth logout. Shows a selector with logged-in OAuth providers. Selecting one clears its saved credentials. …
@@ -860,9 +862,9 @@ On launch, mini-coder:
860862 - Invalid entries are dropped while loading settings. Duplicate custom provider names keep the first entry.
861863 - If an endpoint is unreachable, returns a non-2xx response, or the custom provider name conflicts with an already-available built-in provider, startup continues and a warning is added to the UI log.
862864 4. Connects user-configured MCP servers from `settings.json`.
863- - Each entry must provide a `name` and Streamable HTTP endpoint `url`.
865+ - Each entry must provide a `name` and Streamable HTTP endpoint `url`. It also stores an `enabled` flag; older entries that omit it default to enabled.
864866 - Invalid entries are dropped while loading settings. Duplicate MCP server names keep the first entry.
865- - Startup imports only MCP tools. Imported names are exposed to the model as `<serverName>__<toolName>`.
867+ - Startup imports only MCP tools. Imported names are exposed to the model as `<serverName>__<toolName>`, and only servers whose `enabled` flag is on are exposed to new turns.
866868 - If a server URL is invalid, the endpoint is unreachable, or the server exposes no tools, startup continues and a warning is added to the UI log.
867869 5. Selects the startup model, effort, reasoning visibility, and verbose mode from those settings when available.
868870 - `defaultModel`: if the saved provider/model is currently available, use it; otherwise fall back to the first available model for this launch.
@@ -920,10 +922,9 @@ mini-coder persists global user defaults in `~/.config/mini-coder/settings.json`
920922 - Unreachable or invalid custom providers do not block startup; mini-coder skips them and shows a warning in the interactive log.
921923 - Custom providers are discovered only at startup. There is currently no interactive slash command to add or remove them.
922924 - `mcp.servers` is an optional array of user-configured Streamable HTTP MCP endpoints.
923-- Each `mcp.servers` entry has a `name` and `url`. `name` must be a simple identifier (`A-Z`, `a-z`, `0-9`, `_`, `-`) because it becomes the imported tool prefix, for example `docs__search`.
925+- Each `mcp.servers` entry has a `name`, `url`, and `enabled` flag. `name` must be a simple identifier (`A-Z`, `a-z`, `0-9`, `_`, `-`) because it becomes the imported tool prefix, for example `docs__search`. Older entries that omit `enabled` default to `true` when loaded.
924926 - Invalid MCP entries are dropped while loading settings. Unreachable, invalid-URL, or tool-less MCP servers do not block startup; mini-coder skips them and shows a warning in the interactive log.
925-- MCP server discovery is startup-only. `/mcp` can toggle already-discovered servers on or off for future turns during the current app run, but there is still no interactive slash command to add, remove, or reload servers.
926-- `/mcp` changes only the current in-memory runtime state. It does not persist a setting change.
927+- MCP server discovery is startup-only. `/mcp` can toggle already-discovered servers on or off for future turns during the current app run, and that on/off state is persisted back to `settings.json`, but there is still no interactive slash command to add, remove, or reload servers.
927928 - Only MCP tools are imported today; MCP prompts and resources are not surfaced yet.
928929
929930 ## Session persistence