@turbot/tailpipe-mcp
Version:
Tailpipe MCP server to query cloud and security logs using AI.
31 lines (30 loc) • 989 B
TypeScript
export interface DatabaseConnection {
path: string;
source: string;
status: string;
}
/**
* Centralized function for stringifying MCP responses without indentation
* @param data The data to stringify
* @returns Stringified data without indentation
*/
export declare function stringifyResponse(data: unknown): string;
export declare function validateAndFormat(output: string, cmd: string, resourceType: string): {
content: {
type: string;
text: string;
}[];
};
/**
* Formats a list result with debug information in a consistent way
* @param data The data to format (e.g. plugins, tables, partitions)
* @param key The key to use in the response object (e.g. "plugins", "tables", "partitions")
* @param cmd The command that was executed
* @returns A formatted tool response
*/
export declare function formatListResult<T>(data: T[], key: string, cmd: string): Promise<{
content: Array<{
type: string;
text: string;
}>;
}>;