@upstash/context7-mcp 2.1.3 → 2.1.4
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/lib/utils.js +6 -1
- package/package.json +2 -2
package/dist/lib/utils.js
CHANGED
|
@@ -58,8 +58,13 @@ export function formatSearchResults(searchResponse) {
|
|
|
58
58
|
if (!searchResponse.results || searchResponse.results.length === 0) {
|
|
59
59
|
return "No documentation libraries found matching your query.";
|
|
60
60
|
}
|
|
61
|
+
const parts = [];
|
|
62
|
+
if (searchResponse.searchFilterApplied) {
|
|
63
|
+
parts.push("**Note:** Your results only include libraries matching your access settings. To search across all public libraries, update your settings at https://context7.com/dashboard?tab=libraries");
|
|
64
|
+
}
|
|
61
65
|
const formattedResults = searchResponse.results.map(formatSearchResult);
|
|
62
|
-
|
|
66
|
+
parts.push(formattedResults.join("\n----------\n"));
|
|
67
|
+
return parts.join("\n\n");
|
|
63
68
|
}
|
|
64
69
|
/**
|
|
65
70
|
* Extract client info from User-Agent header.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@upstash/context7-mcp",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"mcpName": "io.github.upstash/context7",
|
|
5
5
|
"description": "MCP server for Context7",
|
|
6
6
|
"repository": {
|
|
@@ -55,6 +55,6 @@
|
|
|
55
55
|
"format:check": "prettier --check .",
|
|
56
56
|
"dev": "tsc --watch",
|
|
57
57
|
"start": "node dist/index.js --transport http",
|
|
58
|
-
"pack-mcpb": "pnpm install && pnpm run build && rm -rf node_modules && pnpm install --prod && cp mcpb/manifest.json manifest.json && cp ../../public/icon.png icon.png && mcpb validate manifest.json && mcpb pack . mcpb/context7.mcpb && rm manifest.json icon.png && pnpm install"
|
|
58
|
+
"pack-mcpb": "pnpm install && pnpm run build && rm -rf node_modules && pnpm install --prod && cp mcpb/manifest.json manifest.json && cp mcpb/.mcpbignore .mcpbignore && cp ../../public/icon.png icon.png && mcpb validate manifest.json && mcpb pack . mcpb/context7.mcpb && rm manifest.json .mcpbignore icon.png && pnpm install"
|
|
59
59
|
}
|
|
60
60
|
}
|