@turbot/powerpipe-mcp
Version:
Powerpipe MCP server to run benchmarks, detections and controls using AI.
27 lines (26 loc) • 685 B
TypeScript
export interface CommandOptions {
env?: NodeJS.ProcessEnv;
maxBuffer?: number;
}
export interface CommandError extends Error {
stdout?: string;
stderr?: string;
cmd?: string;
code?: number | string;
signal?: string;
}
export declare const MAX_BUFFER_SIZE: number;
export declare function executeCommand(cmd: string, options?: CommandOptions): string;
export declare function formatCommandError(error: unknown, context?: string): {
isError: true;
content: {
type: "text";
text: string;
}[];
};
export declare function formatResult<T>(data: T, cmd: string): {
content: {
type: string;
text: string;
}[];
};