@bendyline/gezel-mcp 1.0.1 → 1.0.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.
- package/dist/server.js +56 -51
- package/package.json +4 -4
package/dist/server.js
CHANGED
|
@@ -3570,7 +3570,12 @@ server.tool(
|
|
|
3570
3570
|
]
|
|
3571
3571
|
};
|
|
3572
3572
|
} catch (err) {
|
|
3573
|
-
|
|
3573
|
+
let message = unwrapApiError(err);
|
|
3574
|
+
if (/artifact not found/i.test(message) && source.includes("://")) {
|
|
3575
|
+
message += `
|
|
3576
|
+
|
|
3577
|
+
\`source\` must be a path inside the artifacts drawer, not a tool-returned URI like "${source}". Call \`list_artifacts\` to see the real paths, then retry with the one you saved (e.g. \`deliverables/d-day.pptx\`). Do not write the file by hand instead \u2014 \`write_file\` corrupts binaries.`;
|
|
3578
|
+
}
|
|
3574
3579
|
return {
|
|
3575
3580
|
content: [{ type: "text", text: message }],
|
|
3576
3581
|
isError: true
|
|
@@ -3837,7 +3842,7 @@ server.tool(
|
|
|
3837
3842
|
newProjectId = project.id;
|
|
3838
3843
|
resolvedName = project.name;
|
|
3839
3844
|
} catch (err) {
|
|
3840
|
-
const message =
|
|
3845
|
+
const message = unwrapApiError(err);
|
|
3841
3846
|
return {
|
|
3842
3847
|
content: [{ type: "text", text: `fetch_diff: createProject failed: ${message}` }],
|
|
3843
3848
|
isError: true
|
|
@@ -3863,7 +3868,7 @@ server.tool(
|
|
|
3863
3868
|
]
|
|
3864
3869
|
};
|
|
3865
3870
|
} catch (err) {
|
|
3866
|
-
const message =
|
|
3871
|
+
const message = unwrapApiError(err);
|
|
3867
3872
|
return {
|
|
3868
3873
|
content: [
|
|
3869
3874
|
{
|
|
@@ -7460,7 +7465,7 @@ The runtime posted the card (id ${res.questionId}). The user sees it in chat, on
|
|
|
7460
7465
|
]
|
|
7461
7466
|
};
|
|
7462
7467
|
} catch (err) {
|
|
7463
|
-
const message =
|
|
7468
|
+
const message = unwrapApiError(err);
|
|
7464
7469
|
return errorResult(
|
|
7465
7470
|
`ask_user_question failed: ${message}. Retry the call with corrected arguments \u2014 \`question\` must be a non-empty string and \`choices\` (when used) must be a real JSON array like \`["A","B","C"]\` (not a stringified one). Do NOT fall back to asking the question in prose; the user's notification depends on this tool firing.`,
|
|
7466
7471
|
{ retryable: true }
|
|
@@ -9535,7 +9540,7 @@ To embed this in HTML at \`workspace/<name>.html\`, use:
|
|
|
9535
9540
|
]
|
|
9536
9541
|
};
|
|
9537
9542
|
} catch (err) {
|
|
9538
|
-
const msg =
|
|
9543
|
+
const msg = unwrapApiError(err);
|
|
9539
9544
|
return errorResult(
|
|
9540
9545
|
`Render failed: ${msg}. Check that Chromium has finished installing (it downloads in the background on first boot).`,
|
|
9541
9546
|
{ retryable: true }
|
|
@@ -9834,7 +9839,7 @@ server.tool(
|
|
|
9834
9839
|
|
|
9835
9840
|
${body}` }] };
|
|
9836
9841
|
} catch (err) {
|
|
9837
|
-
const msg =
|
|
9842
|
+
const msg = unwrapApiError(err);
|
|
9838
9843
|
return {
|
|
9839
9844
|
content: [{ type: "text", text: `fetch_url failed: ${msg}` }],
|
|
9840
9845
|
isError: true
|
|
@@ -9857,7 +9862,7 @@ server.tool(
|
|
|
9857
9862
|
const res = await api.toolWebSearch(projectId, args);
|
|
9858
9863
|
return { content: [{ type: "text", text: formatWebSearchResponse(res) }] };
|
|
9859
9864
|
} catch (err) {
|
|
9860
|
-
const msg =
|
|
9865
|
+
const msg = unwrapApiError(err);
|
|
9861
9866
|
return {
|
|
9862
9867
|
content: [{ type: "text", text: `web_search failed: ${msg}` }],
|
|
9863
9868
|
isError: true
|
|
@@ -9880,7 +9885,7 @@ server.tool(
|
|
|
9880
9885
|
const res = await api.toolWikipediaSearch(projectId, args);
|
|
9881
9886
|
return { content: [{ type: "text", text: formatWebSearchResponse(res) }] };
|
|
9882
9887
|
} catch (err) {
|
|
9883
|
-
const msg =
|
|
9888
|
+
const msg = unwrapApiError(err);
|
|
9884
9889
|
return {
|
|
9885
9890
|
content: [{ type: "text", text: `wikipedia_search failed: ${msg}` }],
|
|
9886
9891
|
isError: true
|
|
@@ -9979,7 +9984,7 @@ ${res.files.join("\n") || "(none)"}${truncation}` }
|
|
|
9979
9984
|
${lines.join("\n") || "(no matches)"}${truncation}` }
|
|
9980
9985
|
);
|
|
9981
9986
|
} catch (err) {
|
|
9982
|
-
const msg =
|
|
9987
|
+
const msg = unwrapApiError(err);
|
|
9983
9988
|
return errorResult(`grep_files failed: ${msg}`);
|
|
9984
9989
|
}
|
|
9985
9990
|
}
|
|
@@ -10010,7 +10015,7 @@ server.tool(
|
|
|
10010
10015
|
${res.files.join("\n") || "(none)"}` }
|
|
10011
10016
|
);
|
|
10012
10017
|
} catch (err) {
|
|
10013
|
-
const msg =
|
|
10018
|
+
const msg = unwrapApiError(err);
|
|
10014
10019
|
return errorResult(`find_files failed: ${msg}`);
|
|
10015
10020
|
}
|
|
10016
10021
|
}
|
|
@@ -10045,7 +10050,7 @@ health ${res.review.health}/10 \u2014 ${res.review.healthReason} (${tail})`;
|
|
|
10045
10050
|
return { content: [{ type: "text", text: `${head}${summary}${health}
|
|
10046
10051
|
${body}` }] };
|
|
10047
10052
|
} catch (err) {
|
|
10048
|
-
const msg =
|
|
10053
|
+
const msg = unwrapApiError(err);
|
|
10049
10054
|
return {
|
|
10050
10055
|
content: [{ type: "text", text: `outline_file failed: ${msg}` }],
|
|
10051
10056
|
isError: true
|
|
@@ -10100,7 +10105,7 @@ ${issues.join("\n")}` : "issues: none",
|
|
|
10100
10105
|
].join("\n");
|
|
10101
10106
|
return { content: [{ type: "text", text }] };
|
|
10102
10107
|
} catch (err) {
|
|
10103
|
-
const msg =
|
|
10108
|
+
const msg = unwrapApiError(err);
|
|
10104
10109
|
return {
|
|
10105
10110
|
content: [{ type: "text", text: `file_review failed: ${msg}` }],
|
|
10106
10111
|
isError: true
|
|
@@ -10131,7 +10136,7 @@ server.tool(
|
|
|
10131
10136
|
]
|
|
10132
10137
|
};
|
|
10133
10138
|
} catch (err) {
|
|
10134
|
-
const msg =
|
|
10139
|
+
const msg = unwrapApiError(err);
|
|
10135
10140
|
return {
|
|
10136
10141
|
content: [{ type: "text", text: `get_file_issue failed: ${msg}` }],
|
|
10137
10142
|
isError: true
|
|
@@ -10160,7 +10165,7 @@ server.tool(
|
|
|
10160
10165
|
]
|
|
10161
10166
|
};
|
|
10162
10167
|
} catch (err) {
|
|
10163
|
-
const msg =
|
|
10168
|
+
const msg = unwrapApiError(err);
|
|
10164
10169
|
return {
|
|
10165
10170
|
content: [{ type: "text", text: `set_file_issue_status failed: ${msg}` }],
|
|
10166
10171
|
isError: true
|
|
@@ -10193,7 +10198,7 @@ ${lines.join("\n") || "(none \u2014 index may still be building)"}`
|
|
|
10193
10198
|
]
|
|
10194
10199
|
};
|
|
10195
10200
|
} catch (err) {
|
|
10196
|
-
const msg =
|
|
10201
|
+
const msg = unwrapApiError(err);
|
|
10197
10202
|
return {
|
|
10198
10203
|
content: [{ type: "text", text: `find_symbol failed: ${msg}` }],
|
|
10199
10204
|
isError: true
|
|
@@ -10221,7 +10226,7 @@ server.tool(
|
|
|
10221
10226
|
---
|
|
10222
10227
|
${res.source ?? ""}` }] };
|
|
10223
10228
|
} catch (err) {
|
|
10224
|
-
const msg =
|
|
10229
|
+
const msg = unwrapApiError(err);
|
|
10225
10230
|
return {
|
|
10226
10231
|
content: [{ type: "text", text: `read_symbol failed: ${msg}` }],
|
|
10227
10232
|
isError: true
|
|
@@ -10249,7 +10254,7 @@ ${lines.join("\n") || "(no references)"}` }
|
|
|
10249
10254
|
]
|
|
10250
10255
|
};
|
|
10251
10256
|
} catch (err) {
|
|
10252
|
-
const msg =
|
|
10257
|
+
const msg = unwrapApiError(err);
|
|
10253
10258
|
return {
|
|
10254
10259
|
content: [{ type: "text", text: `find_references failed: ${msg}` }],
|
|
10255
10260
|
isError: true
|
|
@@ -10290,7 +10295,7 @@ server.tool(
|
|
|
10290
10295
|
].join("\n");
|
|
10291
10296
|
return { content: [{ type: "text", text }] };
|
|
10292
10297
|
} catch (err) {
|
|
10293
|
-
const msg =
|
|
10298
|
+
const msg = unwrapApiError(err);
|
|
10294
10299
|
return {
|
|
10295
10300
|
content: [{ type: "text", text: `map_repo failed: ${msg}` }],
|
|
10296
10301
|
isError: true
|
|
@@ -10330,7 +10335,7 @@ ${lines.join("\n") || "(no results \u2014 index may still be enriching; use grep
|
|
|
10330
10335
|
}
|
|
10331
10336
|
);
|
|
10332
10337
|
} catch (err) {
|
|
10333
|
-
const msg =
|
|
10338
|
+
const msg = unwrapApiError(err);
|
|
10334
10339
|
return errorResult(`search_code failed: ${msg}`);
|
|
10335
10340
|
}
|
|
10336
10341
|
}
|
|
@@ -10360,7 +10365,7 @@ server.tool(
|
|
|
10360
10365
|
].join("\n");
|
|
10361
10366
|
return { content: [{ type: "text", text }] };
|
|
10362
10367
|
} catch (err) {
|
|
10363
|
-
const msg =
|
|
10368
|
+
const msg = unwrapApiError(err);
|
|
10364
10369
|
return {
|
|
10365
10370
|
content: [{ type: "text", text: `security_scan failed: ${msg}` }],
|
|
10366
10371
|
isError: true
|
|
@@ -10395,7 +10400,7 @@ ${themes || " (none recurring across \u22653 files)"}`
|
|
|
10395
10400
|
].join("\n");
|
|
10396
10401
|
return { content: [{ type: "text", text }] };
|
|
10397
10402
|
} catch (err) {
|
|
10398
|
-
const msg =
|
|
10403
|
+
const msg = unwrapApiError(err);
|
|
10399
10404
|
return {
|
|
10400
10405
|
content: [{ type: "text", text: `security_overview failed: ${msg}` }],
|
|
10401
10406
|
isError: true
|
|
@@ -10432,7 +10437,7 @@ ${lines.join("\n") || "(none matched)"}` }
|
|
|
10432
10437
|
]
|
|
10433
10438
|
};
|
|
10434
10439
|
} catch (err) {
|
|
10435
|
-
const msg =
|
|
10440
|
+
const msg = unwrapApiError(err);
|
|
10436
10441
|
return {
|
|
10437
10442
|
content: [{ type: "text", text: `scan_findings failed: ${msg}` }],
|
|
10438
10443
|
isError: true
|
|
@@ -10479,7 +10484,7 @@ ${lines.join("\n") || "(none matched)"}${reviewerLine}${tail}`
|
|
|
10479
10484
|
]
|
|
10480
10485
|
};
|
|
10481
10486
|
} catch (err) {
|
|
10482
|
-
const msg =
|
|
10487
|
+
const msg = unwrapApiError(err);
|
|
10483
10488
|
return {
|
|
10484
10489
|
content: [{ type: "text", text: `list_file_issues failed: ${msg}` }],
|
|
10485
10490
|
isError: true
|
|
@@ -10509,7 +10514,7 @@ server.tool(
|
|
|
10509
10514
|
].join("\n");
|
|
10510
10515
|
return { content: [{ type: "text", text }] };
|
|
10511
10516
|
} catch (err) {
|
|
10512
|
-
const msg =
|
|
10517
|
+
const msg = unwrapApiError(err);
|
|
10513
10518
|
return {
|
|
10514
10519
|
content: [{ type: "text", text: `map_attack_surface failed: ${msg}` }],
|
|
10515
10520
|
isError: true
|
|
@@ -10543,7 +10548,7 @@ server.tool(
|
|
|
10543
10548
|
${lines.join("\n") || "(none)"}` }]
|
|
10544
10549
|
};
|
|
10545
10550
|
} catch (err) {
|
|
10546
|
-
const msg =
|
|
10551
|
+
const msg = unwrapApiError(err);
|
|
10547
10552
|
return {
|
|
10548
10553
|
content: [{ type: "text", text: `list_dependencies failed: ${msg}` }],
|
|
10549
10554
|
isError: true
|
|
@@ -10578,7 +10583,7 @@ ${fmt(res.sinks)}`
|
|
|
10578
10583
|
].join("\n");
|
|
10579
10584
|
return { content: [{ type: "text", text }] };
|
|
10580
10585
|
} catch (err) {
|
|
10581
|
-
const msg =
|
|
10586
|
+
const msg = unwrapApiError(err);
|
|
10582
10587
|
return {
|
|
10583
10588
|
content: [{ type: "text", text: `trace_taint failed: ${msg}` }],
|
|
10584
10589
|
isError: true
|
|
@@ -10605,7 +10610,7 @@ server.tool(
|
|
|
10605
10610
|
${lines.join("\n") || "(none)"}` }]
|
|
10606
10611
|
};
|
|
10607
10612
|
} catch (err) {
|
|
10608
|
-
const msg =
|
|
10613
|
+
const msg = unwrapApiError(err);
|
|
10609
10614
|
return {
|
|
10610
10615
|
content: [{ type: "text", text: `search_images failed: ${msg}` }],
|
|
10611
10616
|
isError: true
|
|
@@ -10644,7 +10649,7 @@ ${lines.join("\n") || "(none)"}`
|
|
|
10644
10649
|
]
|
|
10645
10650
|
};
|
|
10646
10651
|
} catch (err) {
|
|
10647
|
-
const msg =
|
|
10652
|
+
const msg = unwrapApiError(err);
|
|
10648
10653
|
return {
|
|
10649
10654
|
content: [{ type: "text", text: `find_similar_images failed: ${msg}` }],
|
|
10650
10655
|
isError: true
|
|
@@ -10671,7 +10676,7 @@ server.tool(
|
|
|
10671
10676
|
].join("\n");
|
|
10672
10677
|
return { content: [{ type: "text", text }] };
|
|
10673
10678
|
} catch (err) {
|
|
10674
|
-
const msg =
|
|
10679
|
+
const msg = unwrapApiError(err);
|
|
10675
10680
|
return {
|
|
10676
10681
|
content: [{ type: "text", text: `describe_folder failed: ${msg}` }],
|
|
10677
10682
|
isError: true
|
|
@@ -10701,7 +10706,7 @@ ${lines.join("\n") || "(none \u2014 index may have no structured metadata yet)"}
|
|
|
10701
10706
|
]
|
|
10702
10707
|
};
|
|
10703
10708
|
} catch (err) {
|
|
10704
|
-
const msg =
|
|
10709
|
+
const msg = unwrapApiError(err);
|
|
10705
10710
|
return {
|
|
10706
10711
|
content: [{ type: "text", text: `find_entity failed: ${msg}` }],
|
|
10707
10712
|
isError: true
|
|
@@ -10734,7 +10739,7 @@ server.tool(
|
|
|
10734
10739
|
return { content: [{ type: "text", text: `${head}
|
|
10735
10740
|
${lines.join("\n")}` }] };
|
|
10736
10741
|
} catch (err) {
|
|
10737
|
-
const msg =
|
|
10742
|
+
const msg = unwrapApiError(err);
|
|
10738
10743
|
return {
|
|
10739
10744
|
content: [{ type: "text", text: `list_entity_mentions failed: ${msg}` }],
|
|
10740
10745
|
isError: true
|
|
@@ -10761,7 +10766,7 @@ ${lines.join("\n") || "(no matches)"}` }
|
|
|
10761
10766
|
]
|
|
10762
10767
|
};
|
|
10763
10768
|
} catch (err) {
|
|
10764
|
-
const msg =
|
|
10769
|
+
const msg = unwrapApiError(err);
|
|
10765
10770
|
return {
|
|
10766
10771
|
content: [{ type: "text", text: `search_docs failed: ${msg}` }],
|
|
10767
10772
|
isError: true
|
|
@@ -10789,7 +10794,7 @@ server.tool(
|
|
|
10789
10794
|
---
|
|
10790
10795
|
${res.markdown ?? ""}` }] };
|
|
10791
10796
|
} catch (err) {
|
|
10792
|
-
const msg =
|
|
10797
|
+
const msg = unwrapApiError(err);
|
|
10793
10798
|
return {
|
|
10794
10799
|
content: [{ type: "text", text: `read_doc_as_markdown failed: ${msg}` }],
|
|
10795
10800
|
isError: true
|
|
@@ -10826,7 +10831,7 @@ server.tool(
|
|
|
10826
10831
|
}
|
|
10827
10832
|
return { content: [{ type: "text", text: res.diff }] };
|
|
10828
10833
|
} catch (err) {
|
|
10829
|
-
const msg =
|
|
10834
|
+
const msg = unwrapApiError(err);
|
|
10830
10835
|
return {
|
|
10831
10836
|
content: [{ type: "text", text: `diff_files failed: ${msg}` }],
|
|
10832
10837
|
isError: true
|
|
@@ -10854,7 +10859,7 @@ server.tool(
|
|
|
10854
10859
|
]
|
|
10855
10860
|
};
|
|
10856
10861
|
} catch (err) {
|
|
10857
|
-
const msg =
|
|
10862
|
+
const msg = unwrapApiError(err);
|
|
10858
10863
|
return {
|
|
10859
10864
|
content: [{ type: "text", text: `read_image_as_base64 failed: ${msg}` }],
|
|
10860
10865
|
isError: true
|
|
@@ -10903,7 +10908,7 @@ server.tool(
|
|
|
10903
10908
|
}
|
|
10904
10909
|
return { content: [{ type: "text", text: parts.join("\n") }] };
|
|
10905
10910
|
} catch (err) {
|
|
10906
|
-
const msg =
|
|
10911
|
+
const msg = unwrapApiError(err);
|
|
10907
10912
|
return {
|
|
10908
10913
|
content: [{ type: "text", text: `describe_image failed: ${msg}` }],
|
|
10909
10914
|
isError: true
|
|
@@ -10952,7 +10957,7 @@ server.tool(
|
|
|
10952
10957
|
}
|
|
10953
10958
|
return { content: [{ type: "text", text: lines.join("\n") }] };
|
|
10954
10959
|
} catch (err) {
|
|
10955
|
-
const msg =
|
|
10960
|
+
const msg = unwrapApiError(err);
|
|
10956
10961
|
return {
|
|
10957
10962
|
content: [{ type: "text", text: `read_image_metadata failed: ${msg}` }],
|
|
10958
10963
|
isError: true
|
|
@@ -10977,7 +10982,7 @@ server.tool(
|
|
|
10977
10982
|
return { content: [{ type: "text", text: `${header}
|
|
10978
10983
|
${lines.join("\n")}` }] };
|
|
10979
10984
|
} catch (err) {
|
|
10980
|
-
const msg =
|
|
10985
|
+
const msg = unwrapApiError(err);
|
|
10981
10986
|
return {
|
|
10982
10987
|
content: [{ type: "text", text: `list_archive failed: ${msg}` }],
|
|
10983
10988
|
isError: true
|
|
@@ -11004,7 +11009,7 @@ server.tool(
|
|
|
11004
11009
|
]
|
|
11005
11010
|
};
|
|
11006
11011
|
} catch (err) {
|
|
11007
|
-
const msg =
|
|
11012
|
+
const msg = unwrapApiError(err);
|
|
11008
11013
|
return {
|
|
11009
11014
|
content: [{ type: "text", text: `extract_archive failed: ${msg}` }],
|
|
11010
11015
|
isError: true
|
|
@@ -11058,7 +11063,7 @@ ${res.stderr}` : ""}`;
|
|
|
11058
11063
|
{ text }
|
|
11059
11064
|
);
|
|
11060
11065
|
} catch (err) {
|
|
11061
|
-
const msg =
|
|
11066
|
+
const msg = unwrapApiError(err);
|
|
11062
11067
|
return errorResult(`run_git failed: ${msg}`);
|
|
11063
11068
|
}
|
|
11064
11069
|
}
|
|
@@ -11133,7 +11138,7 @@ server.tool(
|
|
|
11133
11138
|
});
|
|
11134
11139
|
return formatScriptRunResult(res);
|
|
11135
11140
|
} catch (err) {
|
|
11136
|
-
const msg =
|
|
11141
|
+
const msg = unwrapApiError(err);
|
|
11137
11142
|
return errorResult(`run_installed_script failed: ${msg}`);
|
|
11138
11143
|
}
|
|
11139
11144
|
}
|
|
@@ -11166,7 +11171,7 @@ server.tool(
|
|
|
11166
11171
|
${JSON.stringify(run, null, 2)}` }
|
|
11167
11172
|
);
|
|
11168
11173
|
} catch (err) {
|
|
11169
|
-
const msg =
|
|
11174
|
+
const msg = unwrapApiError(err);
|
|
11170
11175
|
return errorResult(`get_script_run failed: ${msg}`);
|
|
11171
11176
|
}
|
|
11172
11177
|
}
|
|
@@ -11200,7 +11205,7 @@ server.tool(
|
|
|
11200
11205
|
});
|
|
11201
11206
|
return { content: [{ type: "text", text: lines.join("\n\n") }] };
|
|
11202
11207
|
} catch (err) {
|
|
11203
|
-
const msg =
|
|
11208
|
+
const msg = unwrapApiError(err);
|
|
11204
11209
|
return {
|
|
11205
11210
|
content: [{ type: "text", text: `github_pr_list failed: ${msg}` }],
|
|
11206
11211
|
isError: true
|
|
@@ -11231,7 +11236,7 @@ server.tool(
|
|
|
11231
11236
|
];
|
|
11232
11237
|
return { content: [{ type: "text", text: lines.join("\n") }] };
|
|
11233
11238
|
} catch (err) {
|
|
11234
|
-
const msg =
|
|
11239
|
+
const msg = unwrapApiError(err);
|
|
11235
11240
|
return {
|
|
11236
11241
|
content: [{ type: "text", text: `github_pr_view failed: ${msg}` }],
|
|
11237
11242
|
isError: true
|
|
@@ -11262,7 +11267,7 @@ ${f.patch}
|
|
|
11262
11267
|
});
|
|
11263
11268
|
return { content: [{ type: "text", text: blocks.join("\n\n") }] };
|
|
11264
11269
|
} catch (err) {
|
|
11265
|
-
const msg =
|
|
11270
|
+
const msg = unwrapApiError(err);
|
|
11266
11271
|
return {
|
|
11267
11272
|
content: [{ type: "text", text: `github_pr_files failed: ${msg}` }],
|
|
11268
11273
|
isError: true
|
|
@@ -11283,7 +11288,7 @@ server.tool(
|
|
|
11283
11288
|
const res = await api.getProjectGitHubPullDiff(resolved, number);
|
|
11284
11289
|
return { content: [{ type: "text", text: res.diff || "(empty diff)" }] };
|
|
11285
11290
|
} catch (err) {
|
|
11286
|
-
const msg =
|
|
11291
|
+
const msg = unwrapApiError(err);
|
|
11287
11292
|
return {
|
|
11288
11293
|
content: [{ type: "text", text: `github_pr_diff failed: ${msg}` }],
|
|
11289
11294
|
isError: true
|
|
@@ -11312,7 +11317,7 @@ ${c.body}`;
|
|
|
11312
11317
|
});
|
|
11313
11318
|
return { content: [{ type: "text", text: lines.join("\n\n---\n\n") }] };
|
|
11314
11319
|
} catch (err) {
|
|
11315
|
-
const msg =
|
|
11320
|
+
const msg = unwrapApiError(err);
|
|
11316
11321
|
return {
|
|
11317
11322
|
content: [{ type: "text", text: `github_pr_comments failed: ${msg}` }],
|
|
11318
11323
|
isError: true
|
|
@@ -11336,7 +11341,7 @@ server.tool(
|
|
|
11336
11341
|
content: [{ type: "text", text: `Posted comment ${res.id} \u2014 ${res.url}` }]
|
|
11337
11342
|
};
|
|
11338
11343
|
} catch (err) {
|
|
11339
|
-
const msg =
|
|
11344
|
+
const msg = unwrapApiError(err);
|
|
11340
11345
|
return {
|
|
11341
11346
|
content: [{ type: "text", text: `github_pr_comment failed: ${msg}` }],
|
|
11342
11347
|
isError: true
|
|
@@ -11369,7 +11374,7 @@ server.tool(
|
|
|
11369
11374
|
content: [{ type: "text", text: `Opened PR #${res.number} \u2014 ${res.url}` }]
|
|
11370
11375
|
};
|
|
11371
11376
|
} catch (err) {
|
|
11372
|
-
const msg =
|
|
11377
|
+
const msg = unwrapApiError(err);
|
|
11373
11378
|
return {
|
|
11374
11379
|
content: [{ type: "text", text: `github_pr_create failed: ${msg}` }],
|
|
11375
11380
|
isError: true
|
|
@@ -11400,7 +11405,7 @@ server.tool(
|
|
|
11400
11405
|
);
|
|
11401
11406
|
return { content: [{ type: "text", text: lines.join("\n\n") }] };
|
|
11402
11407
|
} catch (err) {
|
|
11403
|
-
const msg =
|
|
11408
|
+
const msg = unwrapApiError(err);
|
|
11404
11409
|
return {
|
|
11405
11410
|
content: [{ type: "text", text: `github_workflow_runs failed: ${msg}` }],
|
|
11406
11411
|
isError: true
|
|
@@ -11433,7 +11438,7 @@ No checks reported for ${ref}.` }]
|
|
|
11433
11438
|
return { content: [{ type: "text", text: `${header}
|
|
11434
11439
|
${lines.join("\n")}` }] };
|
|
11435
11440
|
} catch (err) {
|
|
11436
|
-
const msg =
|
|
11441
|
+
const msg = unwrapApiError(err);
|
|
11437
11442
|
return {
|
|
11438
11443
|
content: [{ type: "text", text: `github_check_status failed: ${msg}` }],
|
|
11439
11444
|
isError: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bendyline/gezel-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Gezel MCP server — gives agents access to memory, workspace, artifacts, and tools.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"!dist/**/*.map"
|
|
56
56
|
],
|
|
57
57
|
"dependencies": {
|
|
58
|
+
"@bendyline/gezel": "1.0.2",
|
|
59
|
+
"@bendyline/gezel-client": "1.0.2",
|
|
58
60
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
59
61
|
"typescript": "^6.0.3",
|
|
60
|
-
"zod": "^4.4.3"
|
|
61
|
-
"@bendyline/gezel-client": "1.0.1",
|
|
62
|
-
"@bendyline/gezel": "1.0.1"
|
|
62
|
+
"zod": "^4.4.3"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@types/node": "^24.13.3",
|