Skip to content

Commit 426499b

Browse files
committed
add kustomization files for jira mcp
1 parent 763fc2b commit 426499b

File tree

5 files changed

+81
-36
lines changed

5 files changed

+81
-36
lines changed

kustomize/base/configmap-mcp.yaml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,8 @@ data:
1010
{
1111
"mcp_servers": {
1212
"jira_mcp_server": {
13-
"command": "python3",
14-
"args": [
15-
"-m",
16-
"bugzooka.integrations.jira_client"
17-
],
18-
"env": {
19-
"PYTHONPATH": "/app-packages",
20-
"JIRA_BASE_URL": "${JIRA_BASE_URL}",
21-
"JIRA_TOKEN": "${JIRA_TOKEN}",
22-
"JIRA_ALLOWED_PROJECTS": "${JIRA_ALLOWED_PROJECTS}"
23-
},
24-
"transport": "stdio"
13+
"url": "http://jira-mcp.${BUGZOOKA_NAMESPACE}:3031/mcp",
14+
"transport": "streamable_http"
2515
}
2616
}
2717
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
labels:
5+
app.kubernetes.io/instance: jira-mcp
6+
name: jira-mcp
7+
namespace: ${BUGZOOKA_NAMESPACE}
8+
spec:
9+
progressDeadlineSeconds: 600
10+
replicas: 1
11+
selector:
12+
matchLabels:
13+
app.kubernetes.io/instance: jira-mcp
14+
app.kubernetes.io/name: jira-mcp
15+
strategy:
16+
rollingUpdate:
17+
maxSurge: 1
18+
maxUnavailable: 0
19+
type: RollingUpdate
20+
template:
21+
metadata:
22+
annotations:
23+
alpha.image.policy.openshift.io/resolve-names: '*'
24+
labels:
25+
app.kubernetes.io/instance: jira-mcp
26+
app.kubernetes.io/name: jira-mcp
27+
spec:
28+
containers:
29+
- image: ${JIRA_MCP_IMAGE}
30+
imagePullPolicy: Always
31+
name: mcp
32+
env:
33+
- name: JIRA_BASE_URL
34+
valueFrom:
35+
secretKeyRef:
36+
name: bugzooka-jira
37+
key: JIRA_BASE_URL
38+
- name: JIRA_TOKEN
39+
valueFrom:
40+
secretKeyRef:
41+
name: bugzooka-jira
42+
key: JIRA_TOKEN
43+
- name: JIRA_ALLOWED_PROJECTS
44+
valueFrom:
45+
secretKeyRef:
46+
name: bugzooka-jira
47+
key: JIRA_ALLOWED_PROJECTS
48+
ports:
49+
- containerPort: 3031
50+
protocol: TCP
51+
resources: {}
52+
terminationMessagePath: /dev/termination-log
53+
terminationMessagePolicy: File
54+
dnsPolicy: ClusterFirst
55+
restartPolicy: Always
56+
schedulerName: default-scheduler
57+
securityContext: {}
58+
terminationGracePeriodSeconds: 30

kustomize/base/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ resources:
1212
- configmap-prompts.yaml
1313
- configmap-mcp.yaml
1414
- deploymentconfig.yaml
15+
- deployment-jira-mcp.yaml
16+
- service-jira-mcp.yaml
1517

1618
generatorOptions:
1719
disableNameSuffixHash: true
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+
labels:
5+
app.kubernetes.io/instance: jira-mcp
6+
name: jira-mcp
7+
namespace: ${BUGZOOKA_NAMESPACE}
8+
spec:
9+
ports:
10+
- name: http
11+
port: 3031
12+
protocol: TCP
13+
targetPort: 3031
14+
selector:
15+
app.kubernetes.io/instance: jira-mcp
16+
app.kubernetes.io/name: jira-mcp
17+
type: ClusterIP

mcp_config.json

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,8 @@
11
{
22
"mcp_servers": {
3-
"github_analysis_tools": {
4-
"command": "docker",
5-
"args": [
6-
"run",
7-
"-i",
8-
"--rm",
9-
"-e", "GITHUB_PERSONAL_ACCESS_TOKEN=<YOUR_PERSONAL_ACCESS_TOKEN>",
10-
"-e", "GITHUB_TOOLSETS=repos,issues,pull_requests,actions,code_security,experiments",
11-
"ghcr.io/github/github-mcp-server"
12-
],
13-
"transport": "stdio"
14-
},
153
"jira_mcp_server": {
16-
"command": "python3",
17-
"args": [
18-
"-m",
19-
"bugzooka.integrations.jira_client"
20-
],
21-
"env": {
22-
"PYTHONPATH": "/app-packages",
23-
"JIRA_BASE_URL": "<YOUR_JIRA_BASE_URL>",
24-
"JIRA_TOKEN": "<YOUR_JIRA_TOKEN>",
25-
"JIRA_ALLOWED_PROJECTS": "<YOUR_JIRA_ALLOWED_PROJECTS>"
26-
},
27-
"transport": "stdio"
4+
"url": "http://localhost:3031/mcp",
5+
"transport": "streamable_http"
286
}
297
}
308
}

0 commit comments

Comments
 (0)