hana-cli
Version:
HANA Developer Command Line Interface
31 lines (30 loc) • 781 B
TypeScript
/**
* JSON Schema type for MCP tool parameters
*/
export interface JSONSchema {
type?: string;
properties?: Record<string, any>;
required?: string[];
items?: any;
enum?: any[];
default?: any;
description?: string;
}
/**
* Converts a yargs builder object to JSON Schema format for MCP tool parameters
*/
export declare function yargsBuilderToJsonSchema(builder: any): JSONSchema;
/**
* Extracts command information from a yargs command module
*/
export interface CommandInfo {
name: string;
aliases?: string[];
description: string;
category?: string;
tags?: string[];
useCases?: string[];
relatedCommands?: string[];
schema: JSONSchema;
}
export declare function extractCommandInfo(commandModule: any): CommandInfo;