feat(registry): add Context7 optional API key configuration #14
+128
−0
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
Adds optional API key configuration for Context7 MCP server. Context7 works without a key but has rate limits; providing an API key unlocks higher quota and priority access for library documentation lookups.
Implementation Plan
See docs/features/008-context7-auth.md for detailed implementation approach.
Key Components
Registry Updates:
registry/mcp-servers/context7/index.tsconfigure()lifecycle methodAuthentication Flow:
.env.mcp.secretsasCONTEXT7_API_KEYif providedDocumentation:
registry/mcp-servers/context7/claude.mdConfiguration Generation:
Technical Approach
Testing Strategy
Context7 Capabilities
Library Documentation
Use Cases
Rate Limits
Areas Requesting Feedback
1. API Key Recommendation
Question: Should we more strongly recommend getting an API key?
Current Approach: Optional with neutral default (false)
Alternatives:
Consideration: Context7 works fine without a key for light usage
Recommendation: Option B - keep neutral, document benefits clearly
2. Rate Limit Prominence
Question: How prominently should we display rate limit information?
Options:
Recommendation: Combination of A and B
3. Adding Key Later
Question: Should we support adding an API key later without re-running init?
Use Cases:
Implementation Options:
ftk configure context7ftk initto reconfigureRecommendation: Start with A (manual), add B in future if needed
4. Rate Limit Handling
Question: How should we handle rate limit exceeded scenarios during usage?
Context:
Options:
Recommendation: Option A - document in CLAUDE.md with troubleshooting
Related Issues
Closes #8
Checklist
Status: 🚧 Draft - Implementation plan complete, awaiting feedback before coding