3 months ago
cb25c0dContext7Client 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