@bendyline/gezel-mcp 1.1.0 → 1.1.1

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/server.js +26 -4
  2. package/package.json +3 -3
package/dist/server.js CHANGED
@@ -1434,7 +1434,12 @@ var BatchReadToolOutputSchema = z4.object({
1434
1434
  startLine: z4.number().int().positive().optional(),
1435
1435
  endLine: z4.number().int().nonnegative().optional(),
1436
1436
  completeFile: z4.boolean().optional(),
1437
- code: z4.string().optional()
1437
+ code: z4.string().optional(),
1438
+ content: z4.string().optional(),
1439
+ totalLines: z4.number().int().nonnegative().optional(),
1440
+ hasMore: z4.boolean().optional(),
1441
+ nextStartLine: z4.number().int().positive().optional(),
1442
+ error: z4.string().optional()
1438
1443
  })
1439
1444
  )
1440
1445
  });
@@ -4277,15 +4282,26 @@ ${index.join("\n")}
4277
4282
  ${sections.join("\n\n")}`
4278
4283
  }
4279
4284
  ],
4285
+ // Structured-first hosts need the same file slices, pagination, and
4286
+ // item-level errors that the formatted text exposes.
4280
4287
  structuredContent: {
4281
4288
  results: response.results.map(
4282
4289
  (result) => result.status === "ok" ? {
4283
4290
  path: result.path,
4284
4291
  status: result.status,
4292
+ content: result.content,
4285
4293
  startLine: result.startLine,
4286
4294
  endLine: result.endLine,
4287
- completeFile: result.completeFile
4288
- } : { path: result.path, status: result.status, code: result.code }
4295
+ completeFile: result.completeFile,
4296
+ totalLines: result.totalLines,
4297
+ hasMore: result.hasMore,
4298
+ nextStartLine: result.nextStartLine
4299
+ } : {
4300
+ path: result.path,
4301
+ status: result.status,
4302
+ code: result.code,
4303
+ error: result.error
4304
+ }
4289
4305
  )
4290
4306
  },
4291
4307
  ...allFailed ? { isError: true } : {}
@@ -6050,7 +6066,13 @@ ${res.candidates.map((p) => ` \u2022 ${p}`).join("\n")}`
6050
6066
  structuredContent: {
6051
6067
  requestedPath: clean,
6052
6068
  resolvedPath: res.path,
6053
- fuzzy: res.fuzzy
6069
+ fuzzy: res.fuzzy,
6070
+ // Hosts may prefer structuredContent over the text blocks. Both forms
6071
+ // must carry the requested slice, not just its lookup metadata.
6072
+ content: res.content,
6073
+ linesReturned: res.linesReturned,
6074
+ totalLines: res.totalLines,
6075
+ hasMore: res.hasMore
6054
6076
  }
6055
6077
  };
6056
6078
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/gezel-mcp",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Gezel MCP server — gives agents access to memory, workspace, artifacts, and tools.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -55,8 +55,8 @@
55
55
  "!dist/**/*.map"
56
56
  ],
57
57
  "dependencies": {
58
- "@bendyline/gezel": "1.1.0",
59
- "@bendyline/gezel-client": "1.1.0",
58
+ "@bendyline/gezel": "1.1.1",
59
+ "@bendyline/gezel-client": "1.1.1",
60
60
  "@modelcontextprotocol/sdk": "^1.29.0",
61
61
  "typescript": "^6.0.3",
62
62
  "zod": "^4.4.3"