fix(mcp): replace stale Context7 config entries#369
Conversation
|
Reopened after local revision. Keeping this as draft while waiting for a maintainer to add the required |
98f84f2 to
b4ab76d
Compare
Alan-TheGentleman
left a comment
There was a problem hiding this comment.
The fix looks scoped, but the branch currently has merge conflicts.
Please rebase on current main and refresh CI. Once it is mergeable again, this can go back into the quick-win review queue.
b4ab76d to
71d7ab0
Compare
|
Hey Alan, rebase done on current main (71d7ab0). The 3 conflicts in Unrelated heads-up while I had the file open. |
🔗 Linked Issue
Closes #57
🏷️ PR Type
What kind of change does this PR introduce?
type:bug— Bug fix (non-breaking change that fixes an issue)type:feature— New feature (non-breaking change that adds functionality)type:docs— Documentation onlytype:refactor— Code refactoring (no functional changes)type:chore— Build, CI, or tooling changestype:breaking-change— Breaking change (fix or feature that changes existing behavior)📝 Summary
mcp.context7fields likecommand,args, orenvbreak strict schema validation.📂 Changes
internal/components/mcp/context7.go__replace__, including OpenCode/KiloCode strict-schema config.internal/components/mcp/inject_test.go🧪 Test Plan
Unit Tests
E2E Tests
go test ./...)cd e2e && ./docker-test.sh)Additional local verification used Fedora Podman as a Docker-compatible shim:
Result: Ubuntu, Arch, and Fedora E2E platforms passed (
PASSED 3/3).🤖 Automated Checks
The following checks run automatically on this PR:
Closes/Fixes/Resolves #Nstatus:approvedtype:*Labeltype:*label must be appliedgo test ./...must passcd e2e && ./docker-test.shmust pass✅ Contributor Checklist
status:approvedtype:buglabelgo test ./...)cd e2e && ./docker-test.sh)Co-Authored-Bytrailers💬 Notes for Reviewers
This keeps the existing deep-merge behavior globally and uses the repository's existing
__replace__sentinel only for managed Context7 server entries. That preserves unrelated user MCP entries while preventing stale fields from contaminating OpenCode/KiloCode's strictmcp.context7schema.Because this PR is opened from a fork, I cannot add labels to the upstream PR. Maintainer action needed: please add
type:bug.