mirror of
https://github.com/containers/kubernetes-mcp-server.git
synced 2025-10-23 01:22:57 +03:00
feat: print error message instead of panic
This commit is contained in:
@@ -47,7 +47,8 @@ Kubernetes Model Context Protocol (MCP) server
|
||||
}
|
||||
mcpServer, err := mcp.NewSever()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
fmt.Printf("Failed to initialize MCP server: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
defer mcpServer.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user