Home

giogio / openez-graph

public
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(context7): make API key optional, improve binary resolution, fix name mapping cache

3 months ago

8611fa4
Authored
asta-nguyen8/5/2026, 6:46:23 AM
- Make Context7 API key optional in setup (anonymous mode with lower rate limits)
- Try multiple candidate paths for context7-mcp binary resolution (dist/index.js, bin/context7-mcp.mjs)
- Pass query parameter to resolveLibraryId for better library matching
- Parse text-format responses from Context7 (fallback from JSON parsing)
- Clear negative cache entries when recording positive library_id mappings to prevent stale blocks

Parenta1f524f

4 files changed
  • apps/cli/src/setup-context7.ts+29−17
  • packages/core/src/external-docs/context7-client.ts+28−6
  • packages/core/src/external-docs/docs-cache.ts+7−0
  • packages/core/src/external-docs/library-docs.ts+1−1