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

Function IsMCPScriptsEnabled

pkg/workflow/mcp_scripts_parser.go:78–80  ·  view source on GitHub ↗

IsMCPScriptsEnabled checks if mcp-scripts are configured. MCP Scripts are enabled by default when configured in the workflow.

(mcpScripts *MCPScriptsConfig)

Source from the content-addressed store, hash-verified

76// IsMCPScriptsEnabled checks if mcp-scripts are configured.
77// MCP Scripts are enabled by default when configured in the workflow.
78func IsMCPScriptsEnabled(mcpScripts *MCPScriptsConfig) bool {
79 return HasMCPScripts(mcpScripts)
80}
81
82// parseMCPScriptToolConfig parses a single MCP script tool configuration from a map.
83// It initialises all fields to their defaults and populates them from toolMap.

Callers 15

getMCPCLIServerNamesFunction · 0.85
TestIsMCPScriptsEnabledFunction · 0.85
RenderMCPConfigMethod · 0.85
HasMCPServersFunction · 0.85
collectArtifactPathsMethod · 0.85
generateSummaryStepsMethod · 0.85
collectMCPToolsFunction · 0.85
generateMCPScriptsSetupFunction · 0.85

Calls 1

HasMCPScriptsFunction · 0.85

Tested by 2

TestIsMCPScriptsEnabledFunction · 0.68