Skip to main content
Glama

GitHub CLI MCP Server

github.d.ts1.3 kB
/** * GitHub CLI Command Execution Module * * This module provides functions for executing GitHub CLI commands * with proper error handling, timeouts, and parameter formatting. * * @module github */ /** * Convert parameters object to GitHub CLI command arguments * @param params Parameters to convert to CLI arguments * @returns Array of CLI arguments */ export declare function paramsToArgs(params: Record<string, unknown>): string[]; /** * Execute a GitHub CLI command with timeout * @param command Primary command (e.g., 'pr', 'issue') * @param subcommand Subcommand (e.g., 'list', 'view') * @param params Parameters for the command * @param sessionId Optional session ID for multi-client support * @returns Command output as structured content */ export declare function execGitHubCommand(command: string, subcommand: string, params: Record<string, unknown>, sessionId?: string): Promise<{ content: Array<{ type: string; text: string; }>; }>; /** * Check if GitHub CLI is installed and authenticated * @returns True if GitHub CLI is available and authenticated */ export declare function checkGitHubCli(): Promise<boolean>; /** * Cancel the active command */ export declare function cancelActiveCommand(): void; //# sourceMappingURL=github.d.ts.map

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CodingButterBot/gh_cli_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server