@upstash/context7-mcp 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -103,7 +103,8 @@ For ambiguous queries, request clarification before proceeding with a best-guess
|
|
|
103
103
|
},
|
|
104
104
|
}, async ({ libraryName }) => {
|
|
105
105
|
const ctx = requestContext.getStore();
|
|
106
|
-
const
|
|
106
|
+
const apiKey = ctx?.apiKey || globalApiKey;
|
|
107
|
+
const searchResponse = await searchLibraries(libraryName, ctx?.clientIp, apiKey);
|
|
107
108
|
if (!searchResponse.results || searchResponse.results.length === 0) {
|
|
108
109
|
return {
|
|
109
110
|
content: [
|