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

Function getCommandDirs

server/index.js:676–688  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

674};
675
676const getCommandDirs = () => {
677 const roots = getSearchRoots();
678 const dirs = [];
679
680 for (const root of roots) {
681 const cmdDir = path.join(root, 'command');
682 if (fs.existsSync(cmdDir)) {
683 dirs.push({ path: cmdDir, source: 'command-dir', root });
684 }
685 }
686
687 return dirs;
688};
689
690const getMcpDirs = () => {
691 const roots = getSearchRoots();

Callers 1

index.jsFile · 0.85

Calls 1

getSearchRootsFunction · 0.85

Tested by

no test coverage detected