MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getProjectMcpPath

Method getProjectMcpPath

src/services/mcp/McpHub.ts:603–614  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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> {

Callers 9

initializeMcpServersMethod · 0.95
fetchToolsListMethod · 0.95
refreshAllConnectionsMethod · 0.95
updateServerConfigMethod · 0.95
deleteServerMethod · 0.95
updateServerToolListMethod · 0.95

Calls 1

getWorkspacePathFunction · 0.90

Tested by

no test coverage detected