@upstash/context7-mcp 1.0.34-canary.0 → 1.0.34-canary.1

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 CHANGED
@@ -80,21 +80,17 @@ USE THIS TOOL TO:
80
80
  library: z
81
81
  .string()
82
82
  .optional()
83
- .describe("Library or framework name (e.g., 'react', 'express') OR exact library ID if provided by the user with or without version (e.g., '/vercel/next.js', '/vercel/next.js@v14.3.0-canary.87'). If omitted, auto-selects based on query."),
84
- topic: z
85
- .string()
86
- .optional()
87
- .describe("Narrow down results to a specific topic within the library. Examples: 'hooks', 'routing', 'middleware', 'authentication', 'state management'."),
83
+ .describe("Library or framework name (e.g., 'react', 'express') OR exact library ID if provided by the user with or without version (e.g., '/vercel/next.js', '/vercel/next.js@v14.3.0-canary.87'). Only omit if the question is generic and not relevant to any specific library or product."),
88
84
  mode: z
89
85
  .enum(["code", "info"])
90
86
  .optional()
91
87
  .default("code")
92
88
  .describe("Type of content to prioritize. Use 'code' (default) when you need working code examples, API usage patterns, and implementation snippets. Use 'info' when you need conceptual narrative explanations, architectural overviews, or understanding how something works."),
93
89
  },
94
- }, async ({ query, library, topic, mode = "code" }) => {
90
+ }, async ({ query, library, mode = "code" }) => {
95
91
  const ctx = requestContext.getStore();
96
92
  const apiKey = ctx?.apiKey || globalApiKey;
97
- const response = await fetchLibraryContext({ query, library, topic, mode }, ctx?.clientIp, apiKey);
93
+ const response = await fetchLibraryContext({ query, library, mode }, ctx?.clientIp, apiKey);
98
94
  return {
99
95
  content: [
100
96
  {
package/dist/lib/api.js CHANGED
@@ -63,8 +63,6 @@ export async function fetchLibraryContext(request, clientIp, apiKey) {
63
63
  try {
64
64
  const url = new URL(`${CONTEXT7_API_BASE_URL}/v2/context`);
65
65
  url.searchParams.set("query", request.query);
66
- if (request.topic)
67
- url.searchParams.set("topic", request.topic);
68
66
  if (request.library)
69
67
  url.searchParams.set("library", request.library);
70
68
  if (request.mode)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upstash/context7-mcp",
3
- "version": "1.0.34-canary.0",
3
+ "version": "1.0.34-canary.1",
4
4
  "mcpName": "io.github.upstash/context7",
5
5
  "description": "MCP server for Context7",
6
6
  "repository": {