Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions pkg/cli/mcp_add.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,8 @@ func AddMCPTool(workflowFile string, mcpServerID string, registryURL string, tra
mcpAddLog.Print("Compiling workflow after adding MCP tool")
compiler := workflow.NewCompiler(verbose, "", "")
if err := compiler.CompileWorkflow(workflowPath); err != nil {
// Log generic error message to avoid exposing sensitive information
mcpAddLog.Print("Workflow compilation failed")
fmt.Println(console.FormatWarningMessage("Workflow compilation failed. Please check your workflow configuration."))
mcpAddLog.Printf("Workflow compilation failed: %v", err)
fmt.Fprintln(os.Stderr, err)
fmt.Println(console.FormatInfoMessage("You can fix the issues and run 'gh aw compile' manually"))
} else {
mcpAddLog.Print("Workflow compiled successfully")
Expand Down