twenty-mcp-server
Version:
Easy-to-install Model Context Protocol server for Twenty CRM. Try instantly with 'npx twenty-mcp-server setup' or install globally for permanent use.
30 lines • 1.01 kB
TypeScript
export interface ExecutionContext {
type: 'global' | 'npx' | 'local';
isTemporary: boolean;
packageCached: boolean;
npmCacheDir?: string;
installLocation?: string;
}
export interface NPXEnvironment {
npmExecPath?: string;
npmCommand?: string;
npmConfigCache?: string;
initCwd?: string;
npmLifecycleEvent?: string;
}
/**
* Detects the execution context of the Twenty MCP Server CLI
* Determines if running via npx, global install, or local development
*/
export declare function detectExecutionContext(): ExecutionContext;
/**
* Get execution context summary for debugging
*/
export declare function getExecutionContextSummary(context: ExecutionContext): string;
/**
* Validate execution context detection
* Returns true if detection was successful and confident
*/
export declare function validateExecutionContext(context: ExecutionContext): boolean;
export declare function getExecutionContext(): ExecutionContext;
//# sourceMappingURL=execution-context.d.ts.map