@andrebuzeli/git-mcp 15.8.2 → 15.8.3
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/package.json +1 -1
- package/src/index.js +0 -7
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -91,17 +91,10 @@ server.setRequestHandler(
|
|
|
91
91
|
async (req) => {
|
|
92
92
|
const name = req.params?.name || "";
|
|
93
93
|
const args = req.params?.arguments || {};
|
|
94
|
-
const progressToken = req.params?._meta?.progressToken;
|
|
95
94
|
const tool = tools.find(t => t.name === name);
|
|
96
95
|
if (!tool) return { content: [{ type: "text", text: `Tool não encontrada: ${name}` }], isError: true };
|
|
97
96
|
try {
|
|
98
|
-
if (progressToken) {
|
|
99
|
-
await server.notification({ method: "notifications/progress", params: { progressToken, progress: 0 } });
|
|
100
|
-
}
|
|
101
97
|
const result = await tool.handle(args);
|
|
102
|
-
if (progressToken) {
|
|
103
|
-
await server.notification({ method: "notifications/progress", params: { progressToken, progress: 100 } });
|
|
104
|
-
}
|
|
105
98
|
return result;
|
|
106
99
|
} catch (e) {
|
|
107
100
|
return asToolError(e.code || "ERROR", e.message || String(e));
|