@andrebuzeli/git-mcp 5.8.2 → 5.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/dist/index.js +7 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -116,11 +116,12 @@ async function main() {
|
|
|
116
116
|
terminal: false
|
|
117
117
|
});
|
|
118
118
|
rl.on('line', async (line) => {
|
|
119
|
-
let
|
|
119
|
+
let request;
|
|
120
|
+
let id = null;
|
|
120
121
|
try {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
request = JSON.parse(line);
|
|
123
|
+
id = request.id ?? null;
|
|
124
|
+
const { jsonrpc, method, params } = request;
|
|
124
125
|
let response = { jsonrpc: '2.0', id };
|
|
125
126
|
switch (method) {
|
|
126
127
|
case 'initialize':
|
|
@@ -218,10 +219,10 @@ async function main() {
|
|
|
218
219
|
console.log(JSON.stringify(response));
|
|
219
220
|
}
|
|
220
221
|
catch (err) {
|
|
221
|
-
//
|
|
222
|
+
// Send error response with id if we have it
|
|
222
223
|
const errorResponse = {
|
|
223
224
|
jsonrpc: '2.0',
|
|
224
|
-
id:
|
|
225
|
+
id: id,
|
|
225
226
|
error: {
|
|
226
227
|
code: -32700,
|
|
227
228
|
message: `Parse error: ${err.message || String(err)}`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@andrebuzeli/git-mcp",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.3",
|
|
4
4
|
"description": "Professional MCP server for Git operations - automatic dual-provider execution (GitHub + Gitea), no provider parameter needed, organized responses by provider, enhanced security and safety features",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|