Repository navigation
Conversation
mecatui's embedded server wired no MCPProfileLoader, so the operator-tier mcp.servers block from ~/.config/mecatl/settings.yaml was parsed by permconfig and silently discarded before app.Build ever saw it. The three headless binaries (mecated, mecatequi, mecak8s) were wired when the loader was added in #562; mecatui was missed. Wire NewMCPProfileResolver(nil, os.LookupEnv) so operator settings activate under the TUI's embedded server with no flag required — the legacy --mcp-server flag stays off per the original heavier-opt-in intent. Also add a composition-level WARN: any consumer omitting the loader gets a settings-only diagnostic (count only, never server names/URLs/tokens), so the silent-drop is now loud for future consumers. Co-Authored-By: mecatl <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix #658: mecatui's embedded server silently ignored operator-tier
mcp.serversfrom~/.config/mecatl/settings.yaml.Root cause:
app.Buildonly folds the parsedmcp:settings block intocfg.MCPServerswhencfg.MCPProfileLoaderis installed. The three headless binaries (mecated, mecatequi, mecak8s) install it; mecatui embedded mode did not, so the settings half was parsed and discarded (commit edd944e missed it when back-fitting the resolution seam).Fix: wire
MCPProfileLoader: cliconfig.NewMCPProfileResolver(nil, os.LookupEnv)inembeddedConfigso operator settings activate with no flag. The legacy--mcp-serverflag deliberately stays off — respecting the original heavier-opt-in intent from commit c33784d.Also: composition-level WARN in
app.Build— any loader-less consumer with an operatormcp.serversblock now gets a single WARN naming the count (never names/URLs/tokens), so the silent-drop becomes loud for future consumers.Review path (dev-pipeline)
Architect plan → implementer → 5-reviewer panel (spec + standards + security + reuse + duplication all no-findings; QA found two test-hardening items, both fixed) → iterate → commit.
task lint,task test,go run ./cmd/mecademoall green.Co-Authored-By: mecatl [email protected]