@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.
Files changed (50) hide show
  1. package/dist/index.js +4 -4
  2. package/dist/server.d.ts +2 -2
  3. package/dist/server.js +1 -1
  4. package/dist/tools/gitAnalytics.d.ts +1 -1
  5. package/dist/tools/gitAnalytics.js +2 -2
  6. package/dist/tools/gitArchive.d.ts +1 -1
  7. package/dist/tools/gitArchive.js +1 -1
  8. package/dist/tools/gitBackup.d.ts +1 -1
  9. package/dist/tools/gitBackup.js +1 -1
  10. package/dist/tools/gitBranches.d.ts +1 -1
  11. package/dist/tools/gitBranches.js +3 -3
  12. package/dist/tools/gitConfig.d.ts +1 -1
  13. package/dist/tools/gitConfig.js +1 -1
  14. package/dist/tools/gitFiles.d.ts +1 -1
  15. package/dist/tools/gitFiles.js +1 -1
  16. package/dist/tools/gitFix.tool.d.ts +1 -1
  17. package/dist/tools/gitFix.tool.js +1 -1
  18. package/dist/tools/gitHistory.d.ts +1 -1
  19. package/dist/tools/gitHistory.js +2 -2
  20. package/dist/tools/gitIgnore.d.ts +1 -1
  21. package/dist/tools/gitIgnore.js +1 -1
  22. package/dist/tools/gitIssues.d.ts +1 -1
  23. package/dist/tools/gitIssues.js +2 -2
  24. package/dist/tools/gitMonitor.d.ts +1 -1
  25. package/dist/tools/gitMonitor.js +2 -2
  26. package/dist/tools/gitPackages.d.ts +1 -1
  27. package/dist/tools/gitPackages.js +1 -1
  28. package/dist/tools/gitPulls.d.ts +1 -1
  29. package/dist/tools/gitPulls.js +1 -1
  30. package/dist/tools/gitRelease.d.ts +1 -1
  31. package/dist/tools/gitRelease.js +1 -1
  32. package/dist/tools/gitRemote.d.ts +1 -1
  33. package/dist/tools/gitRemote.js +2 -2
  34. package/dist/tools/gitReset.d.ts +1 -1
  35. package/dist/tools/gitReset.js +2 -2
  36. package/dist/tools/gitStash.d.ts +1 -1
  37. package/dist/tools/gitStash.js +1 -1
  38. package/dist/tools/gitSync.d.ts +1 -1
  39. package/dist/tools/gitSync.js +1 -1
  40. package/dist/tools/gitTags.d.ts +1 -1
  41. package/dist/tools/gitTags.js +2 -2
  42. package/dist/tools/gitUpdate.d.ts +1 -1
  43. package/dist/tools/gitUpdate.js +2 -2
  44. package/dist/tools/gitUpload.d.ts +1 -1
  45. package/dist/tools/gitUpload.js +2 -2
  46. package/dist/tools/gitWorkflow.d.ts +1 -1
  47. package/dist/tools/gitWorkflow.js +1 -1
  48. package/dist/types.d.ts +1 -1
  49. package/dist/utils/safetyController.js +1 -1
  50. 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.0',
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,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  export declare class GitAnalyticsTool implements Tool {
3
3
  name: string;
4
4
  description: string;
@@ -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';
@@ -1,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  export declare class GitArchiveTool implements Tool {
3
3
  name: string;
4
4
  description: string;
@@ -1,6 +1,6 @@
1
1
  import fs from 'fs/promises';
2
2
  import path from 'path';
3
- import { MCPError } from '../utils/errors';
3
+ import { MCPError } from '../utils/errors.js';
4
4
  export class GitArchiveTool {
5
5
  constructor() {
6
6
  this.name = 'git-archive';
@@ -1,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  export declare class GitBackupTool implements Tool {
3
3
  name: string;
4
4
  description: string;
@@ -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,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  export declare class GitBranchesTool implements Tool {
3
3
  name: string;
4
4
  description: string;
@@ -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() {
@@ -1,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  export declare class GitConfigTool implements Tool {
3
3
  name: string;
4
4
  description: string;
@@ -1,5 +1,5 @@
1
1
  import simpleGit from 'simple-git';
2
- import { MCPError } from '../utils/errors';
2
+ import { MCPError } from '../utils/errors.js';
3
3
  export class GitConfigTool {
4
4
  constructor() {
5
5
  this.name = 'git-config';
@@ -1,4 +1,4 @@
1
- import { Tool } from '../types';
1
+ import { Tool } from '../types.js';
2
2
  export declare class GitFilesTool implements Tool {
3
3
  name: string;
4
4
  description: string;
@@ -1,6 +1,6 @@
1
1
  import fs from 'fs/promises';
2
2
  import path from 'path';
3
- import { MCPError } from '../utils/errors';
3
+ import { MCPError } from '../utils/errors.js';
4
4
  export class GitFilesTool {
5
5
  constructor() {
6
6
  this.name = 'git-files';
@@ -1,4 +1,4 @@
1
- import { Tool } from '../types';
1
+ import { Tool } from '../types.js';
2
2
  export declare class GitFixTool implements Tool {
3
3
  name: string;
4
4
  description: string;
@@ -1,4 +1,4 @@
1
- import { handleGitFix } from './gitFix';
1
+ import { handleGitFix } from './gitFix.js';
2
2
  export class GitFixTool {
3
3
  constructor() {
4
4
  this.name = 'git-fix';
@@ -1,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  /**
3
3
  * Git History Tool - Mantém histórico detalhado de TODAS alterações
4
4
  * Modo DUAL automático - cria issues de histórico em GitHub e Gitea
@@ -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
@@ -1,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  /**
3
3
  * Git Ignore Tool - Manage .gitignore file
4
4
  * Create, read, add, remove patterns, and ensure .gitignore exists
@@ -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
@@ -1,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  export declare class GitIssuesTool implements Tool {
3
3
  name: string;
4
4
  description: string;
@@ -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';
@@ -1,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  export declare class GitMonitorTool implements Tool {
3
3
  name: string;
4
4
  description: string;
@@ -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() {
@@ -1,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  export declare class GitPackagesTool implements Tool {
3
3
  name: string;
4
4
  description: string;
@@ -1,6 +1,6 @@
1
1
  import fs from 'fs/promises';
2
2
  import path from 'path';
3
- import { MCPError } from '../utils/errors';
3
+ import { MCPError } from '../utils/errors.js';
4
4
  export class GitPackagesTool {
5
5
  constructor() {
6
6
  this.name = 'git-packages';
@@ -1,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  export declare class GitPullsTool implements Tool {
3
3
  name: string;
4
4
  description: string;
@@ -1,4 +1,4 @@
1
- import { MCPError } from '../utils/errors';
1
+ import { MCPError } from '../utils/errors.js';
2
2
  import axios from 'axios';
3
3
  export class GitPullsTool {
4
4
  constructor() {
@@ -1,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  export declare class GitReleaseTool implements Tool {
3
3
  name: string;
4
4
  description: string;
@@ -1,5 +1,5 @@
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
  export class GitReleaseTool {
5
5
  constructor() {
@@ -1,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  export declare class GitRemoteTool implements Tool {
3
3
  name: string;
4
4
  description: string;
@@ -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';
@@ -1,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  export declare class GitResetTool implements Tool {
3
3
  name: string;
4
4
  description: string;
@@ -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';
@@ -1,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  export declare class GitStashTool implements Tool {
3
3
  name: string;
4
4
  description: string;
@@ -1,5 +1,5 @@
1
1
  import simpleGit from 'simple-git';
2
- import { MCPError } from '../utils/errors';
2
+ import { MCPError } from '../utils/errors.js';
3
3
  export class GitStashTool {
4
4
  constructor() {
5
5
  this.name = 'git-stash';
@@ -1,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  export declare class GitSyncTool implements Tool {
3
3
  name: string;
4
4
  description: string;
@@ -1,5 +1,5 @@
1
1
  import simpleGit from 'simple-git';
2
- import { MCPError } from '../utils/errors';
2
+ import { MCPError } from '../utils/errors.js';
3
3
  export class GitSyncTool {
4
4
  constructor() {
5
5
  this.name = 'git-sync';
@@ -1,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  export declare class GitTagsTool implements Tool {
3
3
  name: string;
4
4
  description: string;
@@ -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';
@@ -1,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  /**
3
3
  * Git Update Tool - Atualiza projeto completo em GitHub e Gitea automaticamente
4
4
  * Modo DUAL automático com rastreabilidade completa
@@ -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
@@ -1,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  /**
3
3
  * Git Upload Tool - Envia projeto completo para GitHub e Gitea automaticamente
4
4
  * Modo DUAL automático com rastreabilidade completa
@@ -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
@@ -1,4 +1,4 @@
1
- import { Tool, MCPContext } from '../types';
1
+ import { Tool, MCPContext } from '../types.js';
2
2
  export declare class GitWorkflowTool implements Tool {
3
3
  name: string;
4
4
  description: string;
@@ -1,5 +1,5 @@
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
  export class GitWorkflowTool {
5
5
  constructor() {
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ProviderManager } from './providers/providerManager';
1
+ import { ProviderManager } from './providers/providerManager.js';
2
2
  export type MCPContext = {
3
3
  providerManager: ProviderManager;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { MCPError } from './errors';
1
+ import { MCPError } from './errors.js';
2
2
  export function requireConfirmationIfDestructive(action, params) {
3
3
  const destructiveActions = new Set(['delete', 'hard', 'reset', 'drop']);
4
4
  if (destructiveActions.has(action)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrebuzeli/git-mcp",
3
- "version": "7.3.0",
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",