MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getDefaultMcpConfigDirs

Function getDefaultMcpConfigDirs

sdk/src/agents/load-mcp-config.ts:95–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93 * Matches the agent loading directories for consistency.
94 */
95const getDefaultMcpConfigDirs = (): string[] => {
96 const cwdAgents = path.join(process.cwd(), '.agents')
97 const parentAgents = path.join(process.cwd(), '..', '.agents')
98 const homeAgents = path.join(os.homedir(), '.agents')
99 return [cwdAgents, parentAgents, homeAgents]
100}
101
102/**
103 * Load MCP configuration from `mcp.json` files in `.agents` directories.

Callers 2

loadMCPConfigFunction · 0.85
loadMCPConfigSyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected