filesystem-mcp 1.2.0 → 1.2.2

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.
@@ -54,7 +54,10 @@ function registerInsert(server) {
54
54
  path: zod_1.z.string().describe('Absolute path to file'),
55
55
  insert_line: zod_1.z.number().int().min(-1).describe('Line number to insert after (0 = beginning, -1 = end)'),
56
56
  insert_text: zod_1.z.string().describe('Text to insert (should end with newline)'),
57
- }, {}),
57
+ }, {
58
+ new_str: 'insert_text',
59
+ new_string: 'insert_text',
60
+ }),
58
61
  annotations: {
59
62
  readOnlyHint: false,
60
63
  destructiveHint: true,
@@ -9,7 +9,7 @@ const zod_1 = require("zod");
9
9
  */
10
10
  function strictSchemaWithAliases(shape, aliases = {}) {
11
11
  const objectSchema = zod_1.z.object(shape).strict();
12
- return zod_1.z.preprocess((args) => {
12
+ const effectsSchema = zod_1.z.preprocess((args) => {
13
13
  if (typeof args !== 'object' || args === null) {
14
14
  return args;
15
15
  }
@@ -25,4 +25,8 @@ function strictSchemaWithAliases(shape, aliases = {}) {
25
25
  }
26
26
  return result;
27
27
  }, objectSchema);
28
+ // Expose .shape so MCP SDK's normalizeObjectSchema can find the inner schema.
29
+ // Without this, the SDK falls back to an empty JSON schema for ZodEffects.
30
+ effectsSchema.shape = objectSchema.shape;
31
+ return effectsSchema;
28
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "filesystem-mcp",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "MCP server for filesystem operations (view, create, edit files)",
5
5
  "license": "MIT",
6
6
  "author": "Adam Jones (domdomegg)",
@@ -8,8 +8,7 @@
8
8
  "type": "git",
9
9
  "url": "https://github.com/domdomegg/filesystem-mcp.git"
10
10
  },
11
- "main": "dist/main.js",
12
- "types": "dist/index.d.ts",
11
+ "bin": "dist/main.js",
13
12
  "files": [
14
13
  "dist"
15
14
  ],