Context7 Platform -- Up-to-date docs for AI agents
feat: make libraryName parameter required
Abdusshh11c5daf82d8f
diff --git a/src/index.ts b/src/index.tsindex 18c6c97f..5f82665e 100644--- a/src/index.ts+++ b/src/index.ts@@ -26,11 +26,10 @@ server.tool({libraryName: z.string()- .optional()- .describe("Optional library name to search for and rerank results based on."),+ .describe("Library name to search for and retrieve a Context7-compatible library ID."),},async ({ libraryName }) => {- const searchResponse = await searchLibraries(libraryName || "");+ const searchResponse = await searchLibraries(libraryName);if (!searchResponse || !searchResponse.results) {return {