/** * MCP Tools — Brand token management and catalog generation tools * for the Model Context Protocol. * * These are standalone tool definitions that can be registered on any MCP server. * Each tool follows the pattern: { name, description, inputSchema, handler }. * * @module trellis/plugins/brand */ import { z } from 'zod'; import type { TrellisKernel } from '../../core/kernel/trellis-kernel.js'; import { CatalogCache } from './cache.js'; interface McpToolResult { content: Array<{ type: 'text'; text: string; }>; } interface McpToolDef { name: string; description: string; inputSchema: Record; handler: (input: T, ctx: BrandToolContext) => Promise; } export interface BrandToolContext { kernel: TrellisKernel; cache: CatalogCache; /** The `defineCatalog` function from `@json-render/core` */ defineCatalog: (schema: unknown, input: { components: Record; actions: Record; }) => unknown; /** The schema instance from `@json-render/react/schema` (or other renderer) */ schema: unknown; /** Base component definitions (e.g., shadcnComponentDefinitions) */ baseComponents: Record; } export declare const brandCreateGuide: McpToolDef<{ guideId: string; name: string; complianceMode?: string; voiceTone?: string; }>; export declare const brandUpsertToken: McpToolDef<{ tokenId: string; guideId: string; name: string; tokenType: string; role: string; value: string; description?: string; lightMode?: string; darkMode?: string; wcagAA?: boolean; wcagAAA?: boolean; }>; export declare const brandDeleteToken: McpToolDef<{ tokenId: string; }>; export declare const brandListTokens: McpToolDef<{ guideId: string; tokenType?: string; }>; export declare const brandGenerateCatalog: McpToolDef<{ guideId: string; }>; export declare const brandGetPrompt: McpToolDef<{ guideId: string; }>; export declare const brandTools: readonly [McpToolDef<{ guideId: string; name: string; complianceMode?: string; voiceTone?: string; }>, McpToolDef<{ tokenId: string; guideId: string; name: string; tokenType: string; role: string; value: string; description?: string; lightMode?: string; darkMode?: string; wcagAA?: boolean; wcagAAA?: boolean; }>, McpToolDef<{ tokenId: string; }>, McpToolDef<{ guideId: string; tokenType?: string; }>, McpToolDef<{ guideId: string; }>, McpToolDef<{ guideId: string; }>]; export {}; //# sourceMappingURL=mcp-tools.d.ts.map