super-shell-mcp
Version:
MCP server for executing shell commands across multiple platforms
41 lines (40 loc) • 1.2 kB
TypeScript
/**
* Supported platform types
*/
export declare enum PlatformType {
WINDOWS = "windows",
MACOS = "macos",
LINUX = "linux",
UNKNOWN = "unknown"
}
/**
* Detect the current platform
* @returns The detected platform type
*/
export declare function detectPlatform(): PlatformType;
/**
* Get the default shell for the current platform
* @returns Path to the default shell
*/
export declare function getDefaultShell(): string;
/**
* Validate if a shell path exists and is executable
* @param shellPath Path to the shell
* @returns True if the shell is valid
*/
export declare function validateShellPath(shellPath: string): boolean;
/**
* Get shell suggestions for each platform
* @returns Record of platform types to array of suggested shells
*/
export declare function getShellSuggestions(): Record<PlatformType, string[]>;
/**
* Get common locations for shells on the current platform
* @returns Array of common shell locations
*/
export declare function getCommonShellLocations(): string[];
/**
* Get helpful message for shell configuration
* @returns A helpful message with shell configuration guidance
*/
export declare function getShellConfigurationHelp(): string;