Skip to content

Commit 6c64ad2

Browse files
committed
create foundation for kmcp translator
1 parent 0de6500 commit 6c64ad2

8 files changed

+1120
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
apiVersion: v1
2+
data:
3+
local.yaml: |
4+
config: {}
5+
binds:
6+
- listeners:
7+
- name: default
8+
protocol: HTTP
9+
routes:
10+
- backends:
11+
- backend:
12+
mcp:
13+
name: test-server
14+
targets:
15+
- name: test-server
16+
spec:
17+
stdio:
18+
args:
19+
- -y
20+
- '@modelcontextprotocol/server-filesystem'
21+
- /
22+
cmd: npx
23+
weight: 100
24+
matches:
25+
- path:
26+
pathPrefix: /sse
27+
- path:
28+
pathPrefix: /mcp
29+
name: mcp
30+
port: 3000
31+
kind: ConfigMap
32+
metadata:
33+
creationTimestamp: null
34+
name: test-server
35+
namespace: default
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
creationTimestamp: null
5+
name: test-server
6+
namespace: default
7+
spec:
8+
selector:
9+
matchLabels:
10+
app.kubernetes.io/instance: test-server
11+
app.kubernetes.io/name: test-server
12+
strategy: {}
13+
template:
14+
metadata:
15+
creationTimestamp: null
16+
labels:
17+
app.kubernetes.io/instance: test-server
18+
app.kubernetes.io/managed-by: kmcp
19+
app.kubernetes.io/name: test-server
20+
spec:
21+
containers:
22+
- command:
23+
- sh
24+
- -c
25+
- /agentbin/agentgateway -f /config/local.yaml
26+
image: docker.io/mcp/everything
27+
name: tool
28+
resources: {}
29+
volumeMounts:
30+
- mountPath: /config
31+
name: config
32+
- mountPath: /agentbin
33+
name: binary
34+
initContainers:
35+
- args:
36+
- -c
37+
- cp /usr/bin/agentgateway /agentbin/agentgateway
38+
command:
39+
- sh
40+
image: ttl.sh/h1751392143:24h
41+
name: copy-binary
42+
resources: {}
43+
volumeMounts:
44+
- mountPath: /agentbin
45+
name: binary
46+
volumes:
47+
- configMap:
48+
name: test-server
49+
name: config
50+
- emptyDir: {}
51+
name: binary
52+
status: {}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
creationTimestamp: null
5+
name: test-server
6+
namespace: default
7+
spec:
8+
ports:
9+
- name: http
10+
port: 3000
11+
protocol: TCP
12+
targetPort: 3000
13+
selector:
14+
app.kubernetes.io/instance: test-server
15+
app.kubernetes.io/name: test-server
16+
status:
17+
loadBalancer: {}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package agentgateway_test
2+
3+
import (
4+
"testing"
5+
6+
. "github.com/onsi/ginkgo/v2"
7+
. "github.com/onsi/gomega"
8+
)
9+
10+
func TestAgentgateway(t *testing.T) {
11+
RegisterFailHandler(Fail)
12+
RunSpecs(t, "Agentgateway Suite")
13+
}

0 commit comments

Comments
 (0)