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
4 changes: 3 additions & 1 deletion pkg/cli/mcp_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ Examples:
// runMCPServer starts the MCP server on stdio or HTTP transport
func runMCPServer(port int, cmdPath string) error {
// Validate that the CLI and secrets are properly configured
// Note: Validation failures are logged as warnings but don't prevent server startup
// This allows the server to start in test environments or non-repository directories
if err := validateMCPServerConfiguration(cmdPath); err != nil {
return fmt.Errorf("configuration validation failed: %w", err)
fmt.Fprintln(os.Stderr, console.FormatWarningMessage(fmt.Sprintf("Configuration validation warning: %v", err)))
}

// Create the server configuration
Expand Down