File tree Expand file tree Collapse file tree 7 files changed +181
-15
lines changed
Expand file tree Collapse file tree 7 files changed +181
-15
lines changed Original file line number Diff line number Diff line change 11# Build the manager binary
2- FROM docker.io/golang:1.23 AS builder
2+ FROM docker.io/golang:1.24 AS builder
33ARG TARGETOS
44ARG TARGETARCH
55
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : apiextensions.k8s.io/v1
3+ kind : CustomResourceDefinition
4+ metadata :
5+ annotations :
6+ controller-gen.kubebuilder.io/version : v0.17.1
7+ name : mcpservers.kagent.dev
8+ spec :
9+ group : kagent.dev
10+ names :
11+ kind : MCPServer
12+ listKind : MCPServerList
13+ plural : mcpservers
14+ singular : mcpserver
15+ scope : Namespaced
16+ versions :
17+ - name : v1alpha1
18+ schema :
19+ openAPIV3Schema :
20+ description : MCPServer is the Schema for the mcpservers API.
21+ properties :
22+ apiVersion :
23+ description : |-
24+ APIVersion defines the versioned schema of this representation of an object.
25+ Servers should convert recognized schemas to the latest internal value, and
26+ may reject unrecognized values.
27+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
28+ type : string
29+ kind :
30+ description : |-
31+ Kind is a string value representing the REST resource this object represents.
32+ Servers may infer this from the endpoint the client submits requests to.
33+ Cannot be updated.
34+ In CamelCase.
35+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
36+ type : string
37+ metadata :
38+ type : object
39+ spec :
40+ description : MCPServerSpec defines the desired state of MCPServer.
41+ properties :
42+ deployment :
43+ description : Configuration to Deploy the MCP Server using a docker
44+ container
45+ properties :
46+ args :
47+ description : Args defines the arguments to pass to the command.
48+ items :
49+ type : string
50+ type : array
51+ cmd :
52+ description : Cmd defines the command to run in the container to
53+ start the mcp server.
54+ type : string
55+ env :
56+ additionalProperties :
57+ type : string
58+ description : Env defines the environment variables to set in the
59+ container.
60+ type : object
61+ image :
62+ description : Image defines the container image to to deploy the
63+ MCP server.
64+ type : string
65+ port :
66+ description : Port defines the port on which the MCP server will
67+ listen.
68+ type : integer
69+ type : object
70+ transportType :
71+ description : TransportType defines the type of mcp server being run
72+ enum :
73+ - stdio
74+ - http
75+ type : string
76+ required :
77+ - deployment
78+ type : object
79+ status :
80+ description : MCPServerStatus defines the observed state of MCPServer.
81+ type : object
82+ type : object
83+ served : true
84+ storage : true
85+ subresources :
86+ status : {}
Original file line number Diff line number Diff line change 11resources :
22- manager.yaml
3+ apiVersion : kustomize.config.k8s.io/v1beta1
4+ kind : Kustomization
5+ images :
6+ - name : controller
7+ newName : example.com/kmcp
8+ newTag : v0.0.1
Original file line number Diff line number Diff line change 1+ ---
12apiVersion : rbac.authorization.k8s.io/v1
23kind : ClusterRole
34metadata :
4- labels :
5- app.kubernetes.io/name : kmcp
6- app.kubernetes.io/managed-by : kustomize
75 name : manager-role
86rules :
9- - apiGroups : [""]
10- resources : ["pods"]
11- verbs : ["get", "list", "watch"]
7+ - apiGroups :
8+ - kagent.dev
9+ resources :
10+ - mcpservers
11+ verbs :
12+ - create
13+ - delete
14+ - get
15+ - list
16+ - patch
17+ - update
18+ - watch
19+ - apiGroups :
20+ - kagent.dev
21+ resources :
22+ - mcpservers/finalizers
23+ verbs :
24+ - update
25+ - apiGroups :
26+ - kagent.dev
27+ resources :
28+ - mcpservers/status
29+ verbs :
30+ - get
31+ - patch
32+ - update
Original file line number Diff line number Diff line change @@ -7,12 +7,13 @@ toolchain go1.24.3
77godebug default=go1.23
88
99require (
10- github.com/agentgateway/agentgateway v0.0.0-00010101000000-000000000000
1110 github.com/onsi/ginkgo/v2 v2.21.0
1211 github.com/onsi/gomega v1.35.1
12+ k8s.io/api v0.32.0
1313 k8s.io/apimachinery v0.32.0
1414 k8s.io/client-go v0.32.0
1515 sigs.k8s.io/controller-runtime v0.20.0
16+ sigs.k8s.io/yaml v1.4.0
1617)
1718
1819require (
@@ -89,7 +90,6 @@ require (
8990 gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect
9091 gopkg.in/inf.v0 v0.9.1 // indirect
9192 gopkg.in/yaml.v3 v3.0.1 // indirect
92- k8s.io/api v0.32.0 // indirect
9393 k8s.io/apiextensions-apiserver v0.32.0 // indirect
9494 k8s.io/apiserver v0.32.0 // indirect
9595 k8s.io/component-base v0.32.0 // indirect
@@ -99,7 +99,4 @@ require (
9999 sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.0 // indirect
100100 sigs.k8s.io/json v0.0.0-20241010143419-9aa6b5e7a4b3 // indirect
101101 sigs.k8s.io/structured-merge-diff/v4 v4.4.2 // indirect
102- sigs.k8s.io/yaml v1.4.0 // indirect
103102)
104-
105- replace github.com/agentgateway/agentgateway => github.com/solo-io/agentgateway-enterprise v0.0.0-20250626235044-bb6ced925fc3
Original file line number Diff line number Diff line change @@ -113,8 +113,6 @@ github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoG
113113github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8 =
114114github.com/rogpeppe/go-internal v1.12.0 /go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4 =
115115github.com/russross/blackfriday/v2 v2.1.0 /go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM =
116- github.com/solo-io/agentgateway-enterprise v0.0.0-20250626235044-bb6ced925fc3 h1:n/r6SAYyKQ8AcH8I6mLwDSNuk9nxmgyR94GVfwSbO14 =
117- github.com/solo-io/agentgateway-enterprise v0.0.0-20250626235044-bb6ced925fc3 /go.mod h1:geHd31xH5d8OrCRuRyvnDxBeqSZ9+O9VhL8VJAfcA+E =
118116github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM =
119117github.com/spf13/cobra v1.8.1 /go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y =
120118github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA =
You can’t perform that action at this time.
0 commit comments