MCPcopy Create free account
hub / github.com/Microck/opencode-studio / getMcpDirs

Function getMcpDirs

server/index.js:690–702  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

688};
689
690const getMcpDirs = () => {
691 const roots = getSearchRoots();
692 const dirs = [];
693
694 for (const root of roots) {
695 const mcpDir = path.join(root, 'mcp');
696 if (fs.existsSync(mcpDir)) {
697 dirs.push({ path: mcpDir, source: 'mcp-dir', root });
698 }
699 }
700
701 return dirs;
702};
703
704const getPluginDirs = () => {
705 const roots = getSearchRoots();

Callers 1

index.jsFile · 0.85

Calls 1

getSearchRootsFunction · 0.85

Tested by

no test coverage detected