filesystem-mcp 1.2.1 → 1.3.0

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/main.js CHANGED
@@ -29,7 +29,7 @@ const transport = process.env.MCP_TRANSPORT || 'stdio';
29
29
  }
30
30
  else if (transport === 'http') {
31
31
  const app = (0, express_1.default)();
32
- app.use(express_1.default.json());
32
+ app.use(express_1.default.json({ limit: '20mb' }));
33
33
  const port = parseInt(process.env.PORT || '3000', 10);
34
34
  const baseUrl = process.env.MCP_BASE_URL || `http://localhost:${port}`;
35
35
  app.post('/mcp', async (req, res) => {
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "filesystem-mcp",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
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
  ],