()
| 601 | |
| 602 | // Get project-level MCP configuration path |
| 603 | private async getProjectMcpPath(): Promise<string | null> { |
| 604 | const workspacePath = this.providerRef.deref()?.cwd ?? getWorkspacePath() |
| 605 | const projectMcpDir = path.join(workspacePath, ".roo") |
| 606 | const projectMcpPath = path.join(projectMcpDir, "mcp.json") |
| 607 | |
| 608 | try { |
| 609 | await fs.access(projectMcpPath) |
| 610 | return projectMcpPath |
| 611 | } catch { |
| 612 | return null |
| 613 | } |
| 614 | } |
| 615 | |
| 616 | // Initialize project-level MCP servers |
| 617 | private async initializeProjectMcpServers(): Promise<void> { |
no test coverage detected