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

Function HasMCPScripts

pkg/workflow/mcp_scripts_parser.go:72–74  ·  view source on GitHub ↗

HasMCPScripts checks if mcp-scripts are configured

(mcpScripts *MCPScriptsConfig)

Source from the content-addressed store, hash-verified

70
71// HasMCPScripts checks if mcp-scripts are configured
72func HasMCPScripts(mcpScripts *MCPScriptsConfig) bool {
73 return mcpScripts != nil && len(mcpScripts.Tools) > 0
74}
75
76// IsMCPScriptsEnabled checks if mcp-scripts are configured.
77// MCP Scripts are enabled by default when configured in the workflow.

Callers 3

TestHasMCPScriptsFunction · 0.85
appendMCPScriptsToolsFunction · 0.85
IsMCPScriptsEnabledFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestHasMCPScriptsFunction · 0.68