zephex 2.0.5 → 2.0.7

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.
@@ -352907,7 +352907,7 @@ await __promiseAll([
352907
352907
  ]);
352908
352908
  var API_KEY = (process.env.ZEPHEX_API_KEY || "").trim();
352909
352909
  var MCP_URL = (process.env.ZEPHEX_MCP_URL || "https://zephex.dev/mcp").trim();
352910
- var USE_PROXY = API_KEY.length > 0;
352910
+ var USE_PROXY = API_KEY.length > 0 && API_KEY !== "mcp_sk_your_actual_key_here" && API_KEY !== "zx_..." && !API_KEY.includes("YOUR_API_KEY") && !API_KEY.includes("YOUR_KEY");
352911
352911
  if (!USE_PROXY) {
352912
352912
  process.stderr.write(`Set ZEPHEX_API_KEY in your MCP config env. Get a key at https://zephex.dev
352913
352913
  `);
@@ -353016,7 +353016,11 @@ server2.setRequestHandler(CallToolRequestSchema, async (request4) => {
353016
353016
  } else if (name2 === "thinking") {
353017
353017
  const operation = mutableArgs.operation ?? "think";
353018
353018
  if (USE_PROXY) {
353019
- result = await proxyToolCall(name2, mutableArgs);
353019
+ try {
353020
+ result = await proxyToolCall(name2, mutableArgs);
353021
+ } catch {
353022
+ result = await handleThinking(operation, mutableArgs, "00000000-0000-0000-0000-000000000000");
353023
+ }
353020
353024
  } else {
353021
353025
  result = await handleThinking(operation, mutableArgs, "00000000-0000-0000-0000-000000000000");
353022
353026
  }
@@ -353028,7 +353032,11 @@ server2.setRequestHandler(CallToolRequestSchema, async (request4) => {
353028
353032
  };
353029
353033
  } else if (name2 === "scope_task") {
353030
353034
  if (USE_PROXY) {
353031
- result = await proxyToolCall(name2, mutableArgs);
353035
+ try {
353036
+ result = await proxyToolCall(name2, mutableArgs);
353037
+ } catch {
353038
+ result = await handleScopeTaskTool(name2, mutableArgs, "00000000-0000-0000-0000-000000000000");
353039
+ }
353032
353040
  } else {
353033
353041
  result = await handleScopeTaskTool(name2, mutableArgs, "00000000-0000-0000-0000-000000000000");
353034
353042
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephex",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "Zephex MCP — codebase intelligence tools for AI coding agents. stdio server that runs locally, reads your project files, and proxies AI calls to the Zephex backend.",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",