Skip to content
Merged
Show file tree
Hide file tree
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
21 changes: 21 additions & 0 deletions api/v1alpha1/mcpserver_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,27 @@ type HTTPTransport struct {

// the target path where MCP is served
TargetPath string `json:"path,omitempty"`

// TLS defines the TLS configuration for HTTPS access to the MCP server.
// +optional
TLS *HTTPTransportTLS `json:"tls,omitempty"`
}

// HTTPTransportTLS defines the TLS configuration for HTTP transport.
type HTTPTransportTLS struct {
// SecretRef is a reference to a Kubernetes Secret containing
// the client certificate (tls.crt), key (tls.key), and optionally
// the CA certificate (ca.crt) for mTLS authentication.
// The Secret must be in the same namespace as the MCPServer.
// +optional
SecretRef string `json:"secretRef,omitempty"`

// InsecureSkipVerify disables SSL certificate verification.
// WARNING: This should ONLY be used in development/testing environments.
// Production deployments MUST use proper certificates.
// +optional
// +kubebuilder:default=false
InsecureSkipVerify bool `json:"insecureSkipVerify,omitempty"`
}

// MCPServerStatus defines the observed state of MCPServer.
Expand Down
18 changes: 18 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions config/crd/bases/kagent.dev_mcpservers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3471,6 +3471,25 @@ spec:
server.over HTTP
format: int32
type: integer
tls:
description: TLS defines the TLS configuration for HTTPS access
to the MCP server.
properties:
insecureSkipVerify:
default: false
description: |-
InsecureSkipVerify disables SSL certificate verification.
WARNING: This should ONLY be used in development/testing environments.
Production deployments MUST use proper certificates.
type: boolean
secretRef:
description: |-
SecretRef is a reference to a Kubernetes Secret containing
the client certificate (tls.crt), key (tls.key), and optionally
the CA certificate (ca.crt) for mTLS authentication.
The Secret must be in the same namespace as the MCPServer.
type: string
type: object
type: object
stdioTransport:
description: StdioTransport defines the configuration for a standard
Expand Down
19 changes: 19 additions & 0 deletions helm/kmcp-crds/templates/mcpserver-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1990,6 +1990,25 @@ spec:
server.over HTTP
format: int32
type: integer
tls:
description: TLS defines the TLS configuration for HTTPS access
to the MCP server.
properties:
insecureSkipVerify:
default: false
description: |-
InsecureSkipVerify disables SSL certificate verification.
WARNING: This should ONLY be used in development/testing environments.
Production deployments MUST use proper certificates.
type: boolean
secretRef:
description: |-
SecretRef is a reference to a Kubernetes Secret containing
the client certificate (tls.crt), key (tls.key), and optionally
the CA certificate (ca.crt) for mTLS authentication.
The Secret must be in the same namespace as the MCPServer.
type: string
type: object
type: object
stdioTransport:
description: StdioTransport defines the configuration for a standard
Expand Down
Loading