fix(mcp): replace stale Context7 config entries#369
Draft
LCubero wants to merge 1 commit intoGentleman-Programming:mainfrom
Draft
fix(mcp): replace stale Context7 config entries#369LCubero wants to merge 1 commit intoGentleman-Programming:mainfrom
LCubero wants to merge 1 commit intoGentleman-Programming:mainfrom
Conversation
Contributor
Author
|
Reopened after local revision. Keeping this as draft while waiting for a maintainer to add the required |
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.
🔗 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.