@upstash/context7-mcp 1.0.31 → 1.0.32-canary-20251209084107

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/api.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { generateHeaders } from "./encryption.js";
2
2
  import { ProxyAgent, setGlobalDispatcher } from "undici";
3
3
  import { DOCUMENTATION_MODES } from "./types.js";
4
- import { maskApiKey } from "./utils.js";
5
4
  const CONTEXT7_API_BASE_URL = "https://context7.com/api";
6
5
  const DEFAULT_TYPE = "txt";
7
6
  /**
@@ -40,7 +39,7 @@ function createErrorMessage(errorCode, apiKey) {
40
39
  if (!apiKey) {
41
40
  return "Unauthorized. Please provide an API key.";
42
41
  }
43
- return `Unauthorized. Please check your API key. The API key you provided (possibly incorrect) is: ${maskApiKey(apiKey)}. API keys should start with 'ctx7sk'`;
42
+ return `Unauthorized. Please check your API key. API keys should start with 'ctx7sk'`;
44
43
  default:
45
44
  return `Failed to fetch documentation. Please try again later. Error code: ${errorCode}`;
46
45
  }
package/dist/lib/utils.js CHANGED
@@ -58,20 +58,3 @@ export function formatSearchResults(searchResponse) {
58
58
  const formattedResults = searchResponse.results.map(formatSearchResult);
59
59
  return formattedResults.join("\n----------\n");
60
60
  }
61
- /**
62
- * Masks an API key by showing only the first 10 characters and last 4 characters.
63
- * This prevents full API keys from being exposed in logs while maintaining some
64
- * identifiability for debugging.
65
- *
66
- * @param apiKey The API key to mask
67
- * @returns Masked API key string (e.g., "ctx7sk-abc...xyz1") or "[NO-API-KEY]" if no key provided
68
- */
69
- export function maskApiKey(apiKey) {
70
- if (apiKey.length <= 14) {
71
- // If the key is too short to mask meaningfully, just show first part
72
- return apiKey.substring(0, 7) + "...";
73
- }
74
- const firstPart = apiKey.substring(0, 10);
75
- const lastPart = apiKey.substring(apiKey.length - 4);
76
- return `${firstPart}...${lastPart}`;
77
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upstash/context7-mcp",
3
- "version": "1.0.31",
3
+ "version": "1.0.32-canary-20251209084107",
4
4
  "mcpName": "io.github.upstash/context7",
5
5
  "description": "MCP server for Context7",
6
6
  "repository": {
@@ -46,7 +46,8 @@
46
46
  },
47
47
  "scripts": {
48
48
  "build": "tsc && chmod 755 dist/index.js",
49
- "test": "echo \"Error: no test specified\" && exit 1",
49
+ "test": "echo \"No tests yet\"",
50
+ "typecheck": "tsc --noEmit",
50
51
  "lint": "eslint .",
51
52
  "lint:check": "eslint .",
52
53
  "format": "prettier --write .",