MCPcopy
hub / github.com/RedPlanetHQ/core / getExecConfig

Function getExecConfig

packages/cli/src/server/tools/exec-tools.ts:208–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206// ============ Helper Functions ============
207
208function getExecConfig(): ExecConfig {
209 const prefs = getPreferences();
210 // Use gateway slots config for exec allow/deny patterns
211 const slotsExec = prefs.gateway?.slots?.exec;
212 if (slotsExec) {
213 return {
214 allow: slotsExec.allow,
215 deny: slotsExec.deny,
216 allowUnsafe: slotsExec.allowUnsafe,
217 defaultDir: prefs.exec?.defaultDir,
218 };
219 }
220 return prefs.exec || {};
221}
222
223/**
224 * Parse a Bash pattern like "Bash(npm run *)" and extract the glob pattern

Callers 2

isCommandAllowedFunction · 0.85
handleExecCommandFunction · 0.85

Calls 1

getPreferencesFunction · 0.90

Tested by

no test coverage detected