@morphllm/morphmcp
Advanced tools
+33
-3
@@ -1108,3 +1108,20 @@ #!/usr/bin/env node | ||
| result.errors.length > 0) { | ||
| responseText = `Error: ${result.errors.map((e) => e.message).join("; ")}`; | ||
| const errorMessages = result.errors.map((e) => e.message).join("; "); | ||
| responseText = `Error: ${errorMessages}`; | ||
| // Report errors from WarpGrep agent | ||
| const firstError = result.errors[0]; | ||
| reportMorphError({ | ||
| error_message: errorMessages, | ||
| error_type: firstError?.constructor?.name || 'WarpGrepError', | ||
| context: { | ||
| tool: 'fast_context_search', | ||
| repo_path: parsed.data.repoPath, | ||
| query: parsed.data.query, | ||
| model: 'morph-warp-grep', | ||
| termination_reason: result.terminationReason, | ||
| error_count: result.errors.length | ||
| }, | ||
| stack_trace: firstError?.stack || undefined, | ||
| source: 'mcp-filesystem' | ||
| }).catch(() => { }); // Silently ignore reporting failures | ||
| } | ||
@@ -1119,5 +1136,18 @@ else { | ||
| catch (error) { | ||
| const message = error instanceof Error ? error.message : String(error); | ||
| const errorMessage = error instanceof Error ? error.message : String(error); | ||
| // Report error to Morph API (fire-and-forget) | ||
| reportMorphError({ | ||
| error_message: errorMessage, | ||
| error_type: error instanceof Error ? error.constructor.name : 'UnknownError', | ||
| context: { | ||
| tool: 'fast_context_search', | ||
| repo_path: parsed.data.repoPath, | ||
| query: parsed.data.query, | ||
| model: 'morph-warp-grep' | ||
| }, | ||
| stack_trace: error instanceof Error ? error.stack : undefined, | ||
| source: 'mcp-filesystem' | ||
| }).catch(() => { }); // Silently ignore reporting failures | ||
| return { | ||
| content: [{ type: "text", text: `Error running fast context search: ${message}` }], | ||
| content: [{ type: "text", text: `Error running fast context search: ${errorMessage}` }], | ||
| isError: true, | ||
@@ -1124,0 +1154,0 @@ }; |
+1
-1
| { | ||
| "name": "@morphllm/morphmcp", | ||
| "version": "0.8.11", | ||
| "version": "0.8.13", | ||
| "description": "Fast & accurate MCP server with AI-powered file editing and intelligent code search. Prevents context pollution and saves time for a better user experience.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
47905187
02713
1.12%