MCPcopy Create free account
hub / github.com/github/gh-aw / getMountedCLIServerNamesIfBashRestricted

Function getMountedCLIServerNamesIfBashRestricted

pkg/workflow/mcp_cli_mount.go:164–169  ·  view source on GitHub ↗
(workflowData *WorkflowData, tools map[string]any, safeOutputs *SafeOutputsConfig, mcpScripts *MCPScriptsConfig)

Source from the content-addressed store, hash-verified

162}
163
164func getMountedCLIServerNamesIfBashRestricted(workflowData *WorkflowData, tools map[string]any, safeOutputs *SafeOutputsConfig, mcpScripts *MCPScriptsConfig) []string {
165 if !hasBashRestrictedAllowlist(tools) {
166 return nil
167 }
168 return getMCPCLIServerNames(buildCLIWorkflowDataForMounts(workflowData, tools, safeOutputs, mcpScripts))
169}
170
171func withMountedCLIShellCommandsInRestrictedBash(workflowData *WorkflowData) map[string]any {
172 if workflowData == nil {

Calls 3

getMCPCLIServerNamesFunction · 0.85

Tested by

no test coverage detected