mcp-think-tank
Version:
Structured thinking and knowledge management tool for Model Context Protocol
51 lines • 1.55 kB
TypeScript
import { AxiosRequestConfig } from 'axios';
/**
* Read a file with content-based caching
*
* @param filePath Path to the file to read
* @param options Options for fs.readFile
* @returns The file contents
*/
export declare function readFile(filePath: string, options?: any): Promise<string | Buffer>;
/**
* Read a JSON file with content-based caching
*
* @param filePath Path to the JSON file
* @returns Parsed JSON object
*/
export declare function readJsonFile(filePath: string): Promise<any>;
/**
* Fetch content from a URL with content-based caching
*
* @param url URL to fetch
* @returns Response content as string
*/
export declare function fetchUrl(url: string): Promise<string>;
/**
* Fetch JSON from a URL with content-based caching
*
* @param url URL to fetch JSON from
* @param config Optional axios config
* @returns Parsed JSON object
*/
export declare function fetchJson(url: string, config?: AxiosRequestConfig): Promise<any>;
/**
* List files in a directory with caching based on directory stats
*
* @param dirPath Directory path to list
* @returns Array of file names
*/
export declare function listDirectory(dirPath: string): Promise<string[]>;
/**
* Check if the content cache is accessible and working
*
* @returns True if the content cache is available
*/
export declare function isContentCacheAvailable(): boolean;
/**
* Get stats about the content cache
*
* @returns Object with cache stats
*/
export declare function getContentCacheStats(): any;
//# sourceMappingURL=ContentCacheAdapter.d.ts.map