add mcpserverse

This commit is contained in:
2026-05-30 19:20:25 +01:00
parent d6f607c8e1
commit 234958d448
6 changed files with 136 additions and 0 deletions
@@ -0,0 +1,39 @@
apiVersion: toolhive.stacklok.dev/v1beta1
kind: MCPServer
metadata:
name: gitea-mcp
namespace: toolhive-system
spec:
# Upstream Gitea MCP server. Speaks stdio; ToolHive's proxy runner wraps it and
# exposes streamable-http at http://mcp-gitea-mcp-proxy.mcp-services:8080/mcp.
image: docker.gitea.com/gitea-mcp-server:nightly
transport: stdio
proxyMode: streamable-http
proxyPort: 8080
# No args: the image's default command already runs the binary in stdio mode.
# (Passing "-t stdio" replaced the command and execed "-t" directly.)
env:
- name: GITEA_HOST
value: http://gitea-ha-http.apps:3000
# NOTE: ToolHive 0.28.3 does not translate spec.secrets into the workload, so
# inject the token natively on the `mcp` container via podTemplateSpec.
podTemplateSpec:
spec:
containers:
- name: mcp
env:
- name: GITEA_ACCESS_TOKEN
valueFrom:
secretKeyRef:
name: gitea-mcp-secret
key: token
permissionProfile:
type: builtin
name: network
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 300m
memory: 256Mi