bc-code-intelligence-mcp
Version:
BC Code Intelligence MCP Server - Complete Specialist Bundle with AI-driven expert consultation, seamless handoffs, and context-preserving workflows
14 lines • 607 B
JavaScript
import { join } from 'path';
/**
* Get the embedded knowledge path, handling different runtime environments
*/
export function getEmbeddedKnowledgePath() {
// Handle test environment where import.meta.url might not work
if (process.env.NODE_ENV === 'test' || process.env.JEST_WORKER_ID !== undefined) {
return join(process.cwd(), 'embedded-knowledge');
}
// For non-test environments, use a more traditional approach
// Get the current directory and go up to find embedded-knowledge
return join(process.cwd(), 'embedded-knowledge');
}
//# sourceMappingURL=path-utils.js.map