mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1558] [CLOSED] Honor disabled MCP server overrides from higher-priority configuration #3529
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3529
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1558
Author: @bettercallcaleb
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:fix/mcp-disabled-config-overrides-20261008📝 Commits (1)
1fc8324Honor disabled MCP server configuration overrides📊 Changes
2 files changed (+83 additions, -3 deletions)
View changed files
📝
serve/mcp.py(+10 -3)➕
serve/test_mcp_config_overlay.py(+73 -0)📄 Description
Title
Honor disabled MCP server overrides from higher-priority configuration
Issue: none (standalone correctness fix)
Summary
A server disabled by a higher-priority MCP configuration remains enabled when a lower-priority configuration already defines it.
servers_from()removes entries markeddisabled: truebeforehub_from_config()merges the layers, so a later override cannot remove the earlier server.For example, if the run config enables
notesandweatherbut--mcp-configdisablesnotes, the effective configuration incorrectly retains both.What changed
Extra Notes
Before/after evidence: Four of the ten new tests fail on upstream
main; all ten pass with this fix.Validation actually executed:
git diff --checkpassed.Tested in a separate clean sparse checkout at upstream commit
fb58e0dbc8399662c0e47c76578c6e878b14f6cfusing a previously installed Python virtual environment. These tests use mock/local MCP servers. No production service, GPU inference, or full repository test suite was run.AI disclosure: I used AI to help review the code and prepare the patch and tests. I ran the tests listed above locally.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.