UNPKG

buroventures-harald-code

Version:

Harald Code - AI-powered coding assistant CLI

26 lines (25 loc) 894 B
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { Config } from 'buroventures-harald-code-core'; import { SlashCommand } from '../ui/commands/types.js'; import { ICommandLoader } from './types.js'; /** * Discovers and loads executable slash commands from prompts exposed by * Model-Context-Protocol (MCP) servers. */ export declare class McpPromptLoader implements ICommandLoader { private readonly config; constructor(config: Config | null); /** * Loads all available prompts from all configured MCP servers and adapts * them into executable SlashCommand objects. * * @param _signal An AbortSignal (unused for this synchronous loader). * @returns A promise that resolves to an array of loaded SlashCommands. */ loadCommands(_signal: AbortSignal): Promise<SlashCommand[]>; private parseArgs; }