UNPKG

mcp-quickbase

Version:

Work with Quickbase via Model Context Protocol

82 lines (81 loc) 1.91 kB
import { BaseTool } from "./base"; import { QuickbaseClient } from "../client/quickbase"; import { CacheService } from "../utils/cache"; /** * Configure cache parameters */ export interface ConfigureCacheParams { /** * Whether to enable caching */ enabled?: boolean; /** * Whether to clear the cache */ clear?: boolean; /** * TTL for cache entries in seconds */ ttl?: number; } /** * Configure cache result */ export interface ConfigureCacheResult { /** * Whether caching is enabled */ cacheEnabled: boolean; /** * Whether the cache was cleared */ cacheCleared: boolean; /** * Current TTL setting (in seconds) */ cacheTtl?: number; } /** * Tool for configuring the caching behavior of the Quickbase connector */ export declare class ConfigureCacheTool extends BaseTool<ConfigureCacheParams, ConfigureCacheResult> { name: string; description: string; /** * Parameter schema for configure_cache */ paramSchema: { type: string; properties: { enabled: { type: string; description: string; }; clear: { type: string; description: string; }; ttl: { type: string; description: string; }; }; required: never[]; }; /** * Cache service instance */ private cacheService; /** * Constructor * @param client Quickbase client * @param cacheService Cache service */ constructor(client: QuickbaseClient, cacheService: CacheService); /** * Run the configure_cache tool * @param params Tool parameters * @returns Configuration result */ protected run(params: ConfigureCacheParams): Promise<ConfigureCacheResult>; }