@toolprint/hypertool-mcp
Version:
HyperTool MCP proxy server for routing requests between clients and multiple underlying MCP servers
31 lines • 1.17 kB
TypeScript
/**
* Persona directory configuration
*
* Provides centralized management of the persona directory path with proper precedence:
* 1. Environment variable HYPERTOOL_PERSONA_DIR (highest priority)
* 2. Config file personaDir setting
* 3. Default ~/.toolprint/hypertool-mcp/personas (fallback)
*/
/**
* Get the configured persona directory with proper precedence
*
* @returns Resolved absolute path to the persona directory
*/
export declare function getPersonaDirectory(): Promise<string>;
/**
* Get the configured persona directory synchronously using cached config
*
* Note: This is a synchronous version that works with environment variables
* and cached config, but may not reflect the latest config file changes.
* Use getPersonaDirectory() for the most up-to-date path.
*
* @returns Resolved absolute path to the persona directory
*/
export declare function getPersonaDirectorySync(): string;
/**
* Get configuration source for transparency/debugging
*
* @returns String indicating how the persona directory was configured
*/
export declare function getPersonaDirectorySource(): Promise<string>;
//# sourceMappingURL=personaConfig.d.ts.map