tyrion-git-mcp
Version:
Revolutionary Git MCP with Rust+WASM+TypeScript - 3x-10x performance boost vs traditional solutions
85 lines • 2.31 kB
TypeScript
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
/**
* Server configuration interface
*/
export interface ServerConfig {
maxCacheSize: number;
enableStreaming: boolean;
securityLevel: 'basic' | 'enhanced' | 'maximum';
performanceMode: 'balanced' | 'optimized' | 'maximum';
}
/**
* Revolutionary Tyrion Git MCP Server
*
* Tony Stark's masterpiece combining:
* - Rust+WASM core for 3x-10x performance
* - TypeScript compatibility layer for MCP ecosystem
* - Advanced security with CVE-2025-48384 immunity
* - Streaming operations for unlimited repository sizes
* - Intelligent caching and performance monitoring
*/
export declare class TyrionGitMcpServer {
private server;
private toolRegistry;
private performanceMonitor;
private securityValidator;
private wasmBridge;
private config;
private initialized;
constructor(config: ServerConfig);
/**
* Initialize the server with WASM bridge and tool registration
*/
initialize(): Promise<void>;
/**
* Set up MCP protocol request handlers
*/
private setupMcpHandlers;
/**
* Format tool result for LLM consumption
*/
private formatToolResult;
/**
* Format Git status for LLM readability
*/
private formatGitStatus;
/**
* Format commit list for LLM readability
*/
private formatCommitList;
/**
* Format branch list for LLM readability
*/
private formatBranchList;
/**
* Format error message for user-friendly display
*/
private formatErrorMessage;
/**
* Get error suggestions based on tool and error type
*/
private getErrorSuggestions;
/**
* Get the MCP server instance
*/
getServer(): Server;
/**
* Get server performance metrics
*/
getPerformanceMetrics(): import("./performance/monitor.js").PerformanceMetrics;
/**
* Get server health status
*/
getHealthStatus(): {
initialized: boolean;
wasmBridgeStatus: string;
toolCount: number;
performanceMetrics: import("./performance/monitor.js").PerformanceMetrics;
uptime: number;
};
/**
* Shutdown server gracefully
*/
shutdown(): Promise<void>;
}
//# sourceMappingURL=server.d.ts.map