Skip to content

fix(mecated): force-remove unavailable MCP profiles - #1938

Merged
jhrozek merged 1 commit into
mainfrom
mcp-direct-fixes
Oct 1, 2026
Merged

jhrozek merged 1 commit into
mainfrom
mcp-direct-fixes

Conversation

@jhrozek

@jhrozek jhrozek commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • mecated mcp remove NAME --force removes only the selected settings entry when a legacy direct-DCR profile's external key_env custody is unavailable (absent or empty), both at eligibility inspection and on a final recheck immediately before publication. Rejects readable, malformed, native, non-DCR, non-local, non-OAuth, and missing profiles, leaving settings unchanged.
  • Encrypted records are retained; no credential-store, network, or upstream-revocation call is made. Ordinary mecated mcp remove NAME [--file PATH] is unchanged.
  • Acceptance plan: docs/acceptance/mcp-legacy-key-abandon.md (Bounded, human-waived Plan/Interface split, per issue Legacy key_env MCP profile cannot be removed when its wrapping key is unavailable #1921).

Fixes #1921

Test plan

  • go build ./cmd/mecated/...
  • go vet ./cmd/mecated/...
  • go test ./cmd/mecated/... -run 'TestMCPAbandonUnavailable|TestDirectMCPOnboarding'
  • task lint
  • task test:race
  • go run ./cmd/mecademo (offline demo shows tool call, permission ask/approval, result)

Allow mecated mcp remove NAME --force to remove only the selected settings entry when a legacy direct-DCR profile's external key is unavailable. Retain encrypted records and make no credential-store, network, or upstream-revocation calls.

Fixes #1921

Co-Authored-By: OpenAI <[email protected]>
Co-Authored-By: Claude Sonnet 5 <[email protected]>
@jhrozek
jhrozek merged commit c4fabfe into main Oct 1, 2026
37 checks passed
@jhrozek
jhrozek deleted the mcp-direct-fixes branch October 1, 2026 08:27
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 7, 2026
2 tasks
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.

Legacy key_env MCP profile cannot be removed when its wrapping key is unavailable

2 participants