Skip to content

feat(mcp): wire operator OAuth profiles - #562

Merged
JAORMX merged 1 commit into
mainfrom
feat/issue-523-mcp-oauth-config
Aug 15, 2026
Merged

JAORMX merged 1 commit into
mainfrom
feat/issue-523-mcp-oauth-config

Conversation

@JAORMX

@JAORMX JAORMX commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add strict operator-only mcp.servers authentication profiles with none/static_bearer/OAuth tagged unions
  • add canonical profile loading, secret-reference resolution, lifecycle ownership, and local mutable vs Kubernetes read-only credential sources
  • wire the same loader across mecated, mecatequi, and mecak8s while keeping normal/headless roots presenter-free
  • add the canonical mecated mcp login SERVER [--no-browser] [--permission-config PATH...] command through the real LoginMCP flow
  • preserve legacy --mcp-server/MCP_<NAME>_TOKEN behavior and exclude OAuth from ACP/inline/discovered MCP definitions
  • add fail-soft redacted remedies, exact egress/CIMD validation, and ADR 0113 plus complete operator/user docs

Verification

  • focused/race tests across permconfig, cliconfig, app, MCP, and all three roots
  • task lint
  • task test
  • task generate && task docs:check
  • task site:build
  • offline demo
  • parallel security/architecture/QA/UX review and repair waves; final security recheck clean

Closes #523
Part of #518

Closes #523

Co-Authored-By: Juan Antonio Osorio <[email protected]>
@JAORMX
JAORMX merged commit edd944e into main Aug 15, 2026
16 checks passed
@JAORMX
JAORMX deleted the feat/issue-523-mcp-oauth-config branch August 15, 2026 13:22
jbeda added a commit that referenced this pull request Aug 19, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configure MCP OAuth modes and enforce headless policy

1 participant