@morphllm/morphmcp 0.8.23 → 0.8.25

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8,13 +8,14 @@ import os from 'os';
8
8
  import { randomBytes } from 'crypto';
9
9
  import { z } from "zod";
10
10
  import { zodToJsonSchema } from "zod-to-json-schema";
11
- import { createTwoFilesPatch } from './node_modules/@types/diff/index.js';
11
+ import { createTwoFilesPatch } from 'diff';
12
12
  import { minimatch } from 'minimatch';
13
13
  import { isPathWithinAllowedDirectories } from './path-validation.js';
14
14
  import { getValidRootDirectories } from './roots-utils.js';
15
15
  import { executeEditFile } from '@morphllm/morphsdk/tools/fastapply';
16
16
  import { runWarpGrep, LocalRipgrepProvider } from '@morphllm/morphsdk/tools/warp-grep';
17
- import { CodebaseSearchClient } from '@morphllm/morphsdk/tools/codebase-search';
17
+ // @ts-expect-error - executeCodebaseSearch is exported but types may not be available
18
+ import { executeCodebaseSearch } from '@morphllm/morphsdk/tools/codebase-search';
18
19
  import axios from "axios";
19
20
  // Command line argument parsing
20
21
  const args = process.argv.slice(2);
@@ -40,8 +41,7 @@ const ALL_TOOLS = [
40
41
  // Only expose Morph-specific tools by default
41
42
  // Other filesystem tools remain available for internal use and via ENABLED_TOOLS env var
42
43
  const DEFAULT_TOOLS = [
43
- 'edit_file',
44
- 'codebase_search'
44
+ 'edit_file'
45
45
  ];
46
46
  // Parse ENABLED_TOOLS env var: comma-separated list or 'all'
47
47
  const ENABLED_TOOLS = process.env.ENABLED_TOOLS
@@ -1191,14 +1191,16 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
1191
1191
  if (!apiKey) {
1192
1192
  throw new Error('MORPH_API_KEY environment variable must be set in MCP config.');
1193
1193
  }
1194
- const client = new CodebaseSearchClient({ apiKey, debug: false });
1195
- const result = await client.search({
1194
+ const result = await executeCodebaseSearch({
1196
1195
  query: parsed.data.query,
1196
+ target_directories: parsed.data.target_directories,
1197
+ limit: parsed.data.limit
1198
+ }, {
1199
+ apiKey,
1197
1200
  repoId: parsed.data.repoId,
1198
1201
  branch: parsed.data.branch,
1199
1202
  commitHash: parsed.data.commitHash,
1200
- target_directories: parsed.data.target_directories,
1201
- limit: parsed.data.limit
1203
+ debug: false
1202
1204
  });
1203
1205
  if (!result.success) {
1204
1206
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morphllm/morphmcp",
3
- "version": "0.8.23",
3
+ "version": "0.8.25",
4
4
  "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
5
  "license": "MIT",
6
6
  "author": "Morph (https://morphllm.com)",