/** * Xano Developer MCP Tools * * Exports all tools for both MCP server usage and standalone library usage. * Tool registration goes through `toolSpecs` and `handleTool` below — the * `toolSpecs` map is the single source of truth for which tools exist and * the dispatch table in `handleTool` is statically required to cover every * key, so a new tool cannot be registered without being routed. */ import { validateXanoscript, validateXanoscriptTool, TYPE_ALIASES, RESERVED_VARIABLES, type ValidateXanoscriptArgs, type ValidationResult, type BatchValidationResult, type SingleFileValidationResult, type ParserDiagnostic } from "./validate_xanoscript.js"; import { xanoscriptDocs, xanoscriptDocsTool, getXanoscriptDocsPath, setXanoscriptDocsPath, type XanoscriptDocsArgs, type XanoscriptDocsResult, type TopicDoc } from "./xanoscript_docs.js"; import { mcpVersion, mcpVersionTool, getServerVersion, setServerVersion, type McpVersionResult } from "./mcp_version.js"; import { metaApiDocs, metaApiDocsTool, metaApiTopics, getMetaApiTopicNames, getMetaApiTopicDescriptions, type MetaApiDocsArgs, type MetaApiDocsResult } from "./meta_api_docs.js"; import { cliDocs, cliDocsTool, cliTopics, getCliTopicNames, getCliTopicDescriptions, type CliDocsArgs, type CliDocsResult } from "./cli_docs.js"; import { type ToolResult, toMcpResponse } from "./types.js"; import { z } from "zod"; import type { BuiltTool } from "./define_tool.js"; export { validateXanoscript, TYPE_ALIASES, RESERVED_VARIABLES, type ValidateXanoscriptArgs, type ValidationResult, type BatchValidationResult, type SingleFileValidationResult, type ParserDiagnostic, xanoscriptDocs, getXanoscriptDocsPath, setXanoscriptDocsPath, type XanoscriptDocsArgs, type XanoscriptDocsResult, type TopicDoc, mcpVersion, getServerVersion, setServerVersion, type McpVersionResult, metaApiDocs, metaApiTopics, getMetaApiTopicNames, getMetaApiTopicDescriptions, type MetaApiDocsArgs, type MetaApiDocsResult, cliDocs, cliTopics, getCliTopicNames, getCliTopicDescriptions, type CliDocsArgs, type CliDocsResult, type ToolResult, toMcpResponse, }; export { validateXanoscriptTool, xanoscriptDocsTool, mcpVersionTool, metaApiDocsTool, cliDocsTool, }; /** * Full tool specs (Zod shapes + derived JSON Schema). Use these to register * tools with `McpServer.registerTool` — descriptions live in the shapes and * the JSON Schema can never drift from the parser. */ export declare const toolSpecs: { readonly xano_validate_xanoscript: BuiltTool<{ code: z.ZodOptional; file_path: z.ZodOptional; file_paths: z.ZodOptional>; directory: z.ZodOptional; pattern: z.ZodOptional; }, { valid: z.ZodBoolean; message: z.ZodString; warnings: z.ZodOptional; }>; readonly xano_xanoscript_docs: BuiltTool<{ topic: z.ZodOptional; file_path: z.ZodOptional; mode: z.ZodOptional>; tier: z.ZodOptional>; max_tokens: z.ZodOptional; exclude_topics: z.ZodOptional>; }, { documentation: z.ZodOptional; file_path: z.ZodOptional; mode: z.ZodOptional; tier: z.ZodOptional; version: z.ZodOptional; topics: z.ZodOptional>; }>; readonly xano_version: BuiltTool<{}, { version: z.ZodString; }>; readonly xano_meta_api_docs: BuiltTool<{ topic: z.ZodEnum<{ [x: string]: string; }>; detail_level: z.ZodOptional>; include_schemas: z.ZodOptional; }, { documentation: z.ZodString; }>; readonly xano_cli_docs: BuiltTool<{ topic: z.ZodEnum<{ [x: string]: string; }>; detail_level: z.ZodOptional>; }, { documentation: z.ZodString; }>; }; export type ToolName = keyof typeof toolSpecs; /** * Tool definitions array (derived from toolSpecs). Kept for callers that * want a flat list to advertise. */ export declare const toolDefinitions: import("./define_tool.js").ToolDefinition[]; /** * Handle a tool call by name and return the result. * Async to allow future tools that perform I/O without breaking the signature. */ export declare function handleTool(name: string, args: Record): Promise;