UNPKG

ludus-mcp

Version:

MCP server for managing Ludus cybersecurity training environments through natural language commands

74 lines 2.44 kB
import { Tool } from '@modelcontextprotocol/sdk/types.js'; import { Logger } from '../utils/logger.js'; import { LudusCliWrapper } from '../ludusMCP/cliWrapper.js'; interface ValidationResult { valid: boolean; errors: string[]; warnings: string[]; } export interface ReadRangeConfigArgs { source: string; } export interface WriteRangeConfigArgs { content: string; filePath: string; user?: string; } export interface ValidateRangeConfigArgs { source?: string; content?: string; } export interface ListRangeConfigsArgs { directory?: string; recursive?: boolean; } export interface GetRangeConfigArgs { example?: boolean; user?: string; } /** * Validate Ludus range configuration against official schema */ export declare function validateLudusRangeSchema(config: any, logger: Logger): Promise<ValidationResult>; /** * Create read_range_config tool */ export declare function createReadRangeConfigTool(logger: Logger, cliWrapper: LudusCliWrapper): Tool; /** * Create write_range_config tool */ export declare function createWriteRangeConfigTool(logger: Logger, cliWrapper: LudusCliWrapper): Tool; /** * Create validate_range_config tool */ export declare function createValidateRangeConfigTool(logger: Logger, cliWrapper: LudusCliWrapper): Tool; /** * Create list_range_configs tool */ export declare function createListRangeConfigsTool(logger: Logger, cliWrapper: LudusCliWrapper): Tool; /** * Create get_range_config tool */ export declare function createGetRangeConfigTool(logger: Logger, cliWrapper: LudusCliWrapper): Tool; /** * Handle read_range_config tool calls */ export declare function handleReadRangeConfig(args: ReadRangeConfigArgs, logger: Logger): Promise<any>; /** * Handle write_range_config tool calls */ export declare function handleWriteRangeConfig(args: WriteRangeConfigArgs, logger: Logger): Promise<any>; /** * Handle validate_range_config tool calls */ export declare function handleValidateRangeConfig(args: ValidateRangeConfigArgs, logger: Logger): Promise<any>; /** * Handle list_range_configs tool calls */ export declare function handleListRangeConfigs(args: ListRangeConfigsArgs, logger: Logger): Promise<any>; /** * Handle get_range_config tool calls */ export declare function handleGetRangeConfig(args: GetRangeConfigArgs, logger: Logger, cliWrapper: LudusCliWrapper): Promise<any>; export {}; //# sourceMappingURL=rangeConfig.d.ts.map