github-mcp-auto-git
Version:
GitHub MCP Auto Git v3.0 - メモリ効率化・統合MCP・モジュール化完了の完全自動Git操作システム
68 lines • 1.73 kB
TypeScript
/**
* GitHub MCP クライアント
* @modelcontextprotocol/server-github との統合
*/
import { GitConfig } from '../types/index.js';
export interface MCPGitHubResult {
success: boolean;
data?: any;
error?: string;
warnings?: string[];
}
export interface MCPPullRequestOptions {
title: string;
body: string;
head: string;
base: string;
draft?: boolean;
maintainer_can_modify?: boolean;
}
export interface MCPMergeOptions {
pullNumber: number;
mergeMethod?: 'merge' | 'squash' | 'rebase';
commitTitle?: string;
commitMessage?: string;
}
export declare class GitHubMCPClient {
private mcpProcess;
private config;
private isInitialized;
constructor(config: GitConfig);
/**
* MCP サーバーを初期化
*/
initialize(): Promise<void>;
/**
* プルリクエストを作成
*/
createPullRequest(options: MCPPullRequestOptions): Promise<MCPGitHubResult>;
/**
* プルリクエストをマージ
*/
mergePullRequest(options: MCPMergeOptions): Promise<MCPGitHubResult>;
/**
* プルリクエストのステータスを確認
*/
getPullRequestStatus(pullNumber: number): Promise<MCPGitHubResult>;
/**
* ブランチを削除
*/
deleteBranch(branchName: string): Promise<MCPGitHubResult>;
/**
* MCP リクエストを送信
*/
private sendMCPRequest;
/**
* 初期化完了を待機
*/
private waitForInitialization;
/**
* リソースをクリーンアップ
*/
cleanup(): Promise<void>;
/**
* 接続状態を確認
*/
get isConnected(): boolean;
}
//# sourceMappingURL=github-mcp-client-legacy.d.ts.map