/** * MCP tools for reading the bundled Fluent knowledge (API specs, authoring * guides, code snippets) and checking authentication status */ import { z } from 'zod'; import { ResourceCatalog } from '../../res/resourceCatalog.js'; import { CLICommand, CommandArgument, CommandResult, EnsureAuthValidated } from '../../utils/types.js'; /** The one knowledge tool's name, for the pointers in prompts and instructions. */ export declare const KNOWLEDGE_TOOL_NAME = "get_fluent_knowledge"; /** * One read-only tool over the closed {@link ResourceCatalog}: `kind` selects the * spec, instruct or snippet collection, `metadataType` the entry, and * `snippetId` one snippet. The same content is served as `sn-spec://`, * `sn-instruct://` and `sn-snippet://` resources, for clients that read * resources rather than call tools. */ export declare class GetFluentKnowledgeCommand implements CLICommand { private readonly resourceCatalog; name: string; description: string; annotations: { readOnlyHint: boolean; idempotentHint: boolean; }; outputSchema: { content: z.ZodString; resourceType: z.ZodString; metadataType: z.ZodOptional; snippetId: z.ZodOptional; additionalSnippetIds: z.ZodOptional>; availableTypes: z.ZodOptional>; }; arguments: CommandArgument[]; private inputSchema?; constructor(resourceCatalog?: ResourceCatalog); execute(args: Record): Promise; /** The metadata types that have a resource of this kind, from that kind's index. */ private listTypes; private read; /** * An explicit id is served exactly or reported missing with the ids that do * exist; it is never silently replaced by another snippet. Without an id, the * first snippet is returned and the others are named. */ private readSnippet; } /** * Command for checking current authentication status * Lazily resolves configured auth once, then returns the cached session result. */ export declare class CheckAuthStatusCommand implements CLICommand { private readonly ensureAuthValidated; name: string; description: string; annotations: { readOnlyHint: boolean; idempotentHint: boolean; }; arguments: CommandArgument[]; outputSchema: { status: z.ZodString; message: z.ZodString; alias: z.ZodOptional; host: z.ZodOptional; authType: z.ZodOptional; isDefault: z.ZodOptional; actionRequired: z.ZodOptional; timestamp: z.ZodOptional; }; constructor(ensureAuthValidated?: EnsureAuthValidated); /** * Execute the command to check auth status * @returns Command result with auth status information */ execute(): Promise; } //# sourceMappingURL=resourceTools.d.ts.map