@andrebuzeli/git-mcp 7.3.0 → 7.3.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/index.js +4 -4
- package/dist/server.d.ts +2 -2
- package/dist/server.js +1 -1
- package/dist/tools/gitAnalytics.d.ts +1 -1
- package/dist/tools/gitAnalytics.js +2 -2
- package/dist/tools/gitArchive.d.ts +1 -1
- package/dist/tools/gitArchive.js +1 -1
- package/dist/tools/gitBackup.d.ts +1 -1
- package/dist/tools/gitBackup.js +1 -1
- package/dist/tools/gitBranches.d.ts +1 -1
- package/dist/tools/gitBranches.js +3 -3
- package/dist/tools/gitConfig.d.ts +1 -1
- package/dist/tools/gitConfig.js +1 -1
- package/dist/tools/gitFiles.d.ts +1 -1
- package/dist/tools/gitFiles.js +1 -1
- package/dist/tools/gitFix.tool.d.ts +1 -1
- package/dist/tools/gitFix.tool.js +1 -1
- package/dist/tools/gitHistory.d.ts +1 -1
- package/dist/tools/gitHistory.js +2 -2
- package/dist/tools/gitIgnore.d.ts +1 -1
- package/dist/tools/gitIgnore.js +1 -1
- package/dist/tools/gitIssues.d.ts +1 -1
- package/dist/tools/gitIssues.js +2 -2
- package/dist/tools/gitMonitor.d.ts +1 -1
- package/dist/tools/gitMonitor.js +2 -2
- package/dist/tools/gitPackages.d.ts +1 -1
- package/dist/tools/gitPackages.js +1 -1
- package/dist/tools/gitPulls.d.ts +1 -1
- package/dist/tools/gitPulls.js +1 -1
- package/dist/tools/gitRelease.d.ts +1 -1
- package/dist/tools/gitRelease.js +1 -1
- package/dist/tools/gitRemote.d.ts +1 -1
- package/dist/tools/gitRemote.js +2 -2
- package/dist/tools/gitReset.d.ts +1 -1
- package/dist/tools/gitReset.js +2 -2
- package/dist/tools/gitStash.d.ts +1 -1
- package/dist/tools/gitStash.js +1 -1
- package/dist/tools/gitSync.d.ts +1 -1
- package/dist/tools/gitSync.js +1 -1
- package/dist/tools/gitTags.d.ts +1 -1
- package/dist/tools/gitTags.js +2 -2
- package/dist/tools/gitUpdate.d.ts +1 -1
- package/dist/tools/gitUpdate.js +2 -2
- package/dist/tools/gitUpload.d.ts +1 -1
- package/dist/tools/gitUpload.js +2 -2
- package/dist/tools/gitWorkflow.d.ts +1 -1
- package/dist/tools/gitWorkflow.js +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils/safetyController.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { Server } from '@modelcontextprotocol/sdk/server/index';
|
|
3
|
-
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio';
|
|
4
|
-
import { CallToolRequestSchema, ListToolsRequestSchema, ListResourcesRequestSchema, ReadResourceRequestSchema, } from '@modelcontextprotocol/sdk/types';
|
|
2
|
+
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
3
|
+
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
4
|
+
import { CallToolRequestSchema, ListToolsRequestSchema, ListResourcesRequestSchema, ReadResourceRequestSchema, } from '@modelcontextprotocol/sdk/types.js';
|
|
5
5
|
import { ProviderManager } from './providers/providerManager.js';
|
|
6
6
|
import { loadMCPConfig } from './config.js';
|
|
7
7
|
import { GitFilesTool } from './tools/gitFiles.js';
|
|
@@ -70,7 +70,7 @@ async function main() {
|
|
|
70
70
|
// Create MCP Server with STDIO transport
|
|
71
71
|
const server = new Server({
|
|
72
72
|
name: '@andrebuzeli/git-mcp',
|
|
73
|
-
version: '7.3.
|
|
73
|
+
version: '7.3.2',
|
|
74
74
|
});
|
|
75
75
|
// Register tool list handler
|
|
76
76
|
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
package/dist/server.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProviderManager } from './providers/providerManager';
|
|
2
|
-
import { Tool, Resource } from './types';
|
|
1
|
+
import { ProviderManager } from './providers/providerManager.js';
|
|
2
|
+
import { Tool, Resource } from './types.js';
|
|
3
3
|
export declare function createServer(opts: {
|
|
4
4
|
tools: Tool[];
|
|
5
5
|
providerManager: ProviderManager;
|
package/dist/server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
2
|
import bodyParser from 'body-parser';
|
|
3
|
-
import { createErrorResponse } from './utils/errors';
|
|
3
|
+
import { createErrorResponse } from './utils/errors.js';
|
|
4
4
|
export function createServer(opts) {
|
|
5
5
|
const app = express();
|
|
6
6
|
app.use(bodyParser.json({ limit: '1mb' }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MCPError } from '../utils/errors';
|
|
1
|
+
import { MCPError } from '../utils/errors.js';
|
|
2
2
|
import axios from 'axios';
|
|
3
|
-
import { getRepoInfo } from '../utils/repoHelpers';
|
|
3
|
+
import { getRepoInfo } from '../utils/repoHelpers.js';
|
|
4
4
|
export class GitAnalyticsTool {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.name = 'git-analytics';
|
package/dist/tools/gitArchive.js
CHANGED
package/dist/tools/gitBackup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from 'fs/promises';
|
|
2
2
|
import path from 'path';
|
|
3
3
|
import simpleGit from 'simple-git';
|
|
4
|
-
import { MCPError } from '../utils/errors';
|
|
4
|
+
import { MCPError } from '../utils/errors.js';
|
|
5
5
|
export class GitBackupTool {
|
|
6
6
|
constructor() {
|
|
7
7
|
this.name = 'git-backup';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import simpleGit from 'simple-git';
|
|
2
|
-
import { MCPError } from '../utils/errors';
|
|
3
|
-
import { requireConfirmationIfDestructive } from '../utils/safetyController';
|
|
4
|
-
import { getRepoInfo } from '../utils/repoHelpers';
|
|
2
|
+
import { MCPError } from '../utils/errors.js';
|
|
3
|
+
import { requireConfirmationIfDestructive } from '../utils/safetyController.js';
|
|
4
|
+
import { getRepoInfo } from '../utils/repoHelpers.js';
|
|
5
5
|
import axios from 'axios';
|
|
6
6
|
export class GitBranchesTool {
|
|
7
7
|
constructor() {
|
package/dist/tools/gitConfig.js
CHANGED
package/dist/tools/gitFiles.d.ts
CHANGED
package/dist/tools/gitFiles.js
CHANGED
package/dist/tools/gitHistory.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import simpleGit from 'simple-git';
|
|
2
|
-
import { MCPError } from '../utils/errors';
|
|
2
|
+
import { MCPError } from '../utils/errors.js';
|
|
3
3
|
import axios from 'axios';
|
|
4
4
|
import * as fs from 'fs/promises';
|
|
5
5
|
import * as path from 'path';
|
|
6
|
-
import { getRepoNameFromPath } from '../utils/repoHelpers';
|
|
6
|
+
import { getRepoNameFromPath } from '../utils/repoHelpers.js';
|
|
7
7
|
/**
|
|
8
8
|
* Git History Tool - Mantém histórico detalhado de TODAS alterações
|
|
9
9
|
* Modo DUAL automático - cria issues de histórico em GitHub e Gitea
|
package/dist/tools/gitIgnore.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as fs from 'fs/promises';
|
|
2
2
|
import * as path from 'path';
|
|
3
|
-
import { MCPError } from '../utils/errors';
|
|
3
|
+
import { MCPError } from '../utils/errors.js';
|
|
4
4
|
/**
|
|
5
5
|
* Git Ignore Tool - Manage .gitignore file
|
|
6
6
|
* Create, read, add, remove patterns, and ensure .gitignore exists
|
package/dist/tools/gitIssues.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MCPError } from '../utils/errors';
|
|
2
|
-
import { getRepoInfo } from '../utils/repoHelpers';
|
|
1
|
+
import { MCPError } from '../utils/errors.js';
|
|
2
|
+
import { getRepoInfo } from '../utils/repoHelpers.js';
|
|
3
3
|
export class GitIssuesTool {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.name = 'git-issues';
|
package/dist/tools/gitMonitor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import simpleGit from 'simple-git';
|
|
2
|
-
import { MCPError } from '../utils/errors';
|
|
3
|
-
import { getRepoInfo } from '../utils/repoHelpers';
|
|
2
|
+
import { MCPError } from '../utils/errors.js';
|
|
3
|
+
import { getRepoInfo } from '../utils/repoHelpers.js';
|
|
4
4
|
import axios from 'axios';
|
|
5
5
|
export class GitMonitorTool {
|
|
6
6
|
constructor() {
|
package/dist/tools/gitPulls.d.ts
CHANGED
package/dist/tools/gitPulls.js
CHANGED
package/dist/tools/gitRelease.js
CHANGED
package/dist/tools/gitRemote.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import simpleGit from 'simple-git';
|
|
2
|
-
import { MCPError } from '../utils/errors';
|
|
3
|
-
import { getRepoInfo, buildGitHubUrl, buildGiteaUrl } from '../utils/repoHelpers';
|
|
2
|
+
import { MCPError } from '../utils/errors.js';
|
|
3
|
+
import { getRepoInfo, buildGitHubUrl, buildGiteaUrl } from '../utils/repoHelpers.js';
|
|
4
4
|
export class GitRemoteTool {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.name = 'git-remote';
|
package/dist/tools/gitReset.d.ts
CHANGED
package/dist/tools/gitReset.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import simpleGit from 'simple-git';
|
|
2
|
-
import { MCPError } from '../utils/errors';
|
|
3
|
-
import { requireConfirmationIfDestructive } from '../utils/safetyController';
|
|
2
|
+
import { MCPError } from '../utils/errors.js';
|
|
3
|
+
import { requireConfirmationIfDestructive } from '../utils/safetyController.js';
|
|
4
4
|
export class GitResetTool {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.name = 'git-reset';
|
package/dist/tools/gitStash.d.ts
CHANGED
package/dist/tools/gitStash.js
CHANGED
package/dist/tools/gitSync.d.ts
CHANGED
package/dist/tools/gitSync.js
CHANGED
package/dist/tools/gitTags.d.ts
CHANGED
package/dist/tools/gitTags.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import simpleGit from 'simple-git';
|
|
2
|
-
import { MCPError } from '../utils/errors';
|
|
2
|
+
import { MCPError } from '../utils/errors.js';
|
|
3
3
|
import axios from 'axios';
|
|
4
|
-
import { getRepoInfo } from '../utils/repoHelpers';
|
|
4
|
+
import { getRepoInfo } from '../utils/repoHelpers.js';
|
|
5
5
|
export class GitTagsTool {
|
|
6
6
|
constructor() {
|
|
7
7
|
this.name = 'git-tags';
|
package/dist/tools/gitUpdate.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import simpleGit from 'simple-git';
|
|
2
|
-
import { MCPError } from '../utils/errors';
|
|
2
|
+
import { MCPError } from '../utils/errors.js';
|
|
3
3
|
import axios from 'axios';
|
|
4
4
|
import * as fs from 'fs/promises';
|
|
5
5
|
import * as path from 'path';
|
|
6
|
-
import { getRepoNameFromPath } from '../utils/repoHelpers';
|
|
6
|
+
import { getRepoNameFromPath } from '../utils/repoHelpers.js';
|
|
7
7
|
/**
|
|
8
8
|
* Git Update Tool - Atualiza projeto completo em GitHub e Gitea automaticamente
|
|
9
9
|
* Modo DUAL automático com rastreabilidade completa
|
package/dist/tools/gitUpload.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import simpleGit from 'simple-git';
|
|
2
|
-
import { MCPError } from '../utils/errors';
|
|
2
|
+
import { MCPError } from '../utils/errors.js';
|
|
3
3
|
import axios from 'axios';
|
|
4
4
|
import * as fs from 'fs/promises';
|
|
5
5
|
import * as path from 'path';
|
|
6
|
-
import { getRepoNameFromPath } from '../utils/repoHelpers';
|
|
6
|
+
import { getRepoNameFromPath } from '../utils/repoHelpers.js';
|
|
7
7
|
/**
|
|
8
8
|
* Git Upload Tool - Envia projeto completo para GitHub e Gitea automaticamente
|
|
9
9
|
* Modo DUAL automático com rastreabilidade completa
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@andrebuzeli/git-mcp",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Professional MCP server for Git operations - STDIO UNIVERSAL: works in ANY IDE (Cursor, VSCode, Claude Desktop). Fully autonomous DUAL execution (GitHub + Gitea APIs) with automatic username detection. All tools execute on BOTH providers simultaneously. No manual parameters needed.",
|
|
6
6
|
"main": "dist/index.js",
|