UNPKG

templui-mcp-server

Version:

A Model Context Protocol (MCP) server for TemplUI components, providing AI assistants with access to component source code, documentation, demos, and metadata.

190 lines (189 loc) 5.17 kB
import { handleGetComponent } from './get-component.js'; import { handleGetComponentDemo } from './get-component-demo.js'; import { handleGetComponentDocs } from './get-component-docs.js'; import { handleGetComponentJavaScript } from './get-component-javascript.js'; import { handleGetComponentMetadata } from './get-component-metadata.js'; import { handleListComponents } from './list-components.js'; import { handleCheckUpdates } from './check-updates.js'; import { handleRefreshCache } from './refresh-cache.js'; import { GitHubClient } from '../utils/github-client.js'; import { DocumentationParser } from '../utils/documentation.js'; export declare const toolHandlers: { get_component: typeof handleGetComponent; get_component_demo: typeof handleGetComponentDemo; get_component_docs: typeof handleGetComponentDocs; get_component_javascript: typeof handleGetComponentJavaScript; get_component_metadata: typeof handleGetComponentMetadata; list_components: typeof handleListComponents; check_updates: typeof handleCheckUpdates; refresh_cache: typeof handleRefreshCache; }; export declare const toolSchemas: { get_component: { componentName: { type: string; description: string; }; }; get_component_demo: { componentName: { type: string; description: string; }; }; get_component_docs: { componentName: { type: string; description: string; }; }; get_component_javascript: { componentName: { type: string; description: string; }; }; get_component_metadata: { componentName: { type: string; description: string; }; }; list_components: { category: { type: string; description: string; enum: string[]; }; useDynamic: { type: string; description: string; default: boolean; }; }; check_updates: {}; refresh_cache: { clearAll: { type: string; description: string; default: boolean; }; }; }; export declare const tools: { get_component: { name: string; description: string; inputSchema: { type: string; properties: { componentName: { type: string; description: string; }; }; required: string[]; }; }; get_component_demo: { name: string; description: string; inputSchema: { type: string; properties: { componentName: { type: string; description: string; }; }; required: string[]; }; }; get_component_docs: { name: string; description: string; inputSchema: { type: string; properties: { componentName: { type: string; description: string; }; }; required: string[]; }; }; get_component_javascript: { name: string; description: string; inputSchema: { type: string; properties: { componentName: { type: string; description: string; }; }; required: string[]; }; }; get_component_metadata: { name: string; description: string; inputSchema: { type: string; properties: { componentName: { type: string; description: string; }; }; required: string[]; }; }; list_components: { name: string; description: string; inputSchema: { type: string; properties: { category: { type: string; description: string; enum: string[]; }; useDynamic: { type: string; description: string; default: boolean; }; }; }; }; check_updates: { name: string; description: string; inputSchema: { type: string; properties: {}; }; }; refresh_cache: { name: string; description: string; inputSchema: { type: string; properties: { clearAll: { type: string; description: string; default: boolean; }; }; }; }; }; /** * Initialize all tools with required dependencies */ export declare function initializeTools(githubClient: GitHubClient, documentationParser: DocumentationParser): void;