@@ -33,44 +33,42 @@ const (
3333
3434// MCPServerSpec defines the desired state of MCPServer.
3535type MCPServerSpec struct {
36+ // Configuration to Deploy the MCP Server using a docker container
37+ Deployment MCPServerDeployment `json:"deployment"`
38+
3639 // TransportType defines the type of mcp server being run
3740 // +kubebuilder:validation:Enum=stdio;http
3841 TransportType TransportType `json:"transportType,omitempty"`
39-
40- // StdioTransport defines the configuration for a standard input/output transport.
41- // +optional
42- StdioTransport * StdioTransport `json:"stdioTransport,omitempty"`
43-
44- // HTTPTransport defines the configuration for a Streamable HTTP transport.
45- // +optional
46- HTTPTransport * HTTPTransport `json:"httpTransport,omitempty"`
47-
48- // Overrides for the deployment
49- DeploymentOverrides * DeploymentOverrides `json:"deploymentOverrides,omitempty"`
50-
51- // Port defines the port on which the MCP server will listen.
52- Port uint16 `json:"port,omitempty"`
5342}
5443
5544// StdioTransport defines the configuration for a standard input/output transport.
56- type StdioTransport struct {
57- Cmd string `json:"cmd,omitempty"`
58- Args []string `json:"args,omitempty"`
59- Env map [string ]string `json:"env,omitempty"`
60- }
45+ type StdioTransport struct {}
6146
6247// HTTPTransport defines the configuration for a Streamable HTTP transport.
63- type HTTPTransport struct {
64- }
48+ type HTTPTransport struct {}
6549
6650// MCPServerStatus defines the observed state of MCPServer.
6751type MCPServerStatus struct {
6852 // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
6953 // Important: Run "make" to regenerate code after modifying this file
7054}
7155
72- // DeploymentOverrides defines overrides for the MCP server deployment.
73- type DeploymentOverrides struct {
56+ // MCPServerDeployment
57+ type MCPServerDeployment struct {
58+ // Image defines the container image to to deploy the MCP server.
59+ Image string `json:"image,omitempty"`
60+
61+ // Port defines the port on which the MCP server will listen.
62+ Port uint16 `json:"port,omitempty"`
63+
64+ // Cmd defines the command to run in the container to start the mcp server.
65+ Cmd string `json:"cmd,omitempty"`
66+
67+ // Args defines the arguments to pass to the command.
68+ Args []string `json:"args,omitempty"`
69+
70+ // Env defines the environment variables to set in the container.
71+ Env map [string ]string `json:"env,omitempty"`
7472}
7573
7674// +kubebuilder:object:root=true
0 commit comments