Home

giogio / openez-graph

public
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(context7): discover tool names dynamically via tools/list

3 months ago

cb25c0d
Authored
asta-nguyen8/5/2026, 4:58:12 AM
Context7Client now calls client.listTools() after connecting and maps the
returned tool names to known roles (resolve-library-id / query-docs) with
fallbacks (get-library-id, resolve-library, get-library-docs, get-docs).
Resolved names are stored as instance fields and used in resolveLibraryId()
and getLibraryDocs() instead of hardcoded strings. If expected tools are not
found, a warning is logged to stderr but the call proceeds and fails naturally
with a clear server-side error.

Parent0144549

2 files changed
  • .superpowers/sdd/2026-08-05-context7-library-docs/fix-1-report.md+62−0
  • packages/core/src/external-docs/context7-client.ts+49−2