From 6e5a80973ed1294b05cf0a05f905541e75a6fb41 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 16 Feb 2026 18:13:57 +0530 Subject: [PATCH 1/8] fix: quote secret value in kubectl commands to prevent line continuation breakage --- .github/workflows/production.yml | 2 +- .github/workflows/staging.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 373b7ed..dc97903 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -68,7 +68,7 @@ jobs: - name: Create application secrets run: | kubectl -n mcp-for-docs create secret generic mcp-for-docs \ - --from-literal=openai-api-key=${{ secrets.OPENAI_API_KEY }} \ + --from-literal=openai-api-key="${{ secrets.OPENAI_API_KEY }}" \ --dry-run=client -o yaml | kubectl apply -f - - name: Deploy diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index c8383c1..458978a 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -69,7 +69,7 @@ jobs: - name: Create application secrets run: | kubectl -n mcp-for-docs create secret generic mcp-for-docs \ - --from-literal=openai-api-key=${{ secrets.OPENAI_API_KEY }} \ + --from-literal=openai-api-key="${{ secrets.OPENAI_API_KEY }}" \ --dry-run=client -o yaml | kubectl apply -f - - name: Deploy From 9ea38a2e44e7b7b4fa91006502aaaed0dba53843 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 16 Feb 2026 18:18:31 +0530 Subject: [PATCH 2/8] skip empty chunks --- scripts/init-vector-store.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/init-vector-store.ts b/scripts/init-vector-store.ts index 725e361..faba1e2 100644 --- a/scripts/init-vector-store.ts +++ b/scripts/init-vector-store.ts @@ -86,6 +86,10 @@ export async function processPage({ library?: string; }) { const chunks = await getChunks({ markdown }); + if (chunks.length === 0) { + console.log(`Skipping ${webPath}: no chunks generated`); + return { chunks, embeddings: [] }; + } const embeddings = await embedDocsPage(chunks); await upsertDocsPageEmbeddings({ webPath, From 4472bd463f66efb94a470be9405b37dfaf4a2ae7 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 16 Feb 2026 18:35:34 +0530 Subject: [PATCH 3/8] fix health check --- deploy/mcp-for-docs/templates/mcp-for-docs.yaml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/deploy/mcp-for-docs/templates/mcp-for-docs.yaml b/deploy/mcp-for-docs/templates/mcp-for-docs.yaml index de09b27..9fe805d 100644 --- a/deploy/mcp-for-docs/templates/mcp-for-docs.yaml +++ b/deploy/mcp-for-docs/templates/mcp-for-docs.yaml @@ -46,27 +46,21 @@ spec: ports: - containerPort: 1234 startupProbe: - httpGet: - path: / + tcpSocket: port: 1234 - scheme: HTTP periodSeconds: 5 timeoutSeconds: 3 failureThreshold: 12 livenessProbe: - httpGet: - path: / + tcpSocket: port: 1234 - scheme: HTTP periodSeconds: 10 timeoutSeconds: 3 failureThreshold: 3 successThreshold: 1 readinessProbe: - httpGet: - path: / + tcpSocket: port: 1234 - scheme: HTTP periodSeconds: 5 timeoutSeconds: 3 failureThreshold: 3 From 5eacda8c594c3c8bfd5aac45275e71f4e545b931 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 16 Feb 2026 18:36:54 +0530 Subject: [PATCH 4/8] remove auto deployment --- .github/workflows/staging.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 458978a..8c13ac5 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -2,9 +2,6 @@ name: Staging deployment on: workflow_dispatch: - push: - branches: - - main env: TAG: ${{ github.sha }} From ac1cf493fff82908e24cfece9e14cf5b8f403546 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 16 Feb 2026 18:48:35 +0530 Subject: [PATCH 5/8] fix gateway --- deploy/mcp-for-docs/templates/gateway.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/mcp-for-docs/templates/gateway.yaml b/deploy/mcp-for-docs/templates/gateway.yaml index 42507d6..9720c9f 100644 --- a/deploy/mcp-for-docs/templates/gateway.yaml +++ b/deploy/mcp-for-docs/templates/gateway.yaml @@ -8,14 +8,14 @@ spec: {{- $domains := required "domain must be set" .Values.domain }} {{- range $idx, $hostname := $domains }} - name: {{ printf "http-%d" $idx }} - port: 8000 + port: 80 protocol: HTTP hostname: {{ $hostname | quote }} allowedRoutes: namespaces: from: Same - name: {{ printf "https-%d" $idx }} - port: 8443 + port: 443 protocol: HTTPS hostname: {{ $hostname | quote }} allowedRoutes: From 582fdd68da76421de3634afe2442881bf2dc2b6a Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 16 Feb 2026 19:02:00 +0530 Subject: [PATCH 6/8] fix version --- deploy/mcp-for-docs/templates/gateway.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/mcp-for-docs/templates/gateway.yaml b/deploy/mcp-for-docs/templates/gateway.yaml index 9720c9f..549ccaa 100644 --- a/deploy/mcp-for-docs/templates/gateway.yaml +++ b/deploy/mcp-for-docs/templates/gateway.yaml @@ -1,4 +1,4 @@ -apiVersion: gateway.networking.k8s.io/v1beta1 +apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: mcp-for-docs @@ -8,14 +8,14 @@ spec: {{- $domains := required "domain must be set" .Values.domain }} {{- range $idx, $hostname := $domains }} - name: {{ printf "http-%d" $idx }} - port: 80 + port: 8000 protocol: HTTP hostname: {{ $hostname | quote }} allowedRoutes: namespaces: from: Same - name: {{ printf "https-%d" $idx }} - port: 443 + port: 8443 protocol: HTTPS hostname: {{ $hostname | quote }} allowedRoutes: @@ -47,7 +47,7 @@ spec: --- -apiVersion: gateway.networking.k8s.io/v1beta1 +apiVersion: gateway.networking.k8s.io/v1 kind: HTTPRoute metadata: name: mcp-for-docs From e7aa0de826b117aecfea1fe9baea58bf972b52e5 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 16 Feb 2026 21:18:04 +0530 Subject: [PATCH 7/8] quote --- .github/workflows/production.yml | 4 ++-- .github/workflows/staging.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index dc97903..788a006 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -60,8 +60,8 @@ jobs: run: | kubectl -n mcp-for-docs create secret docker-registry ghcr \ --docker-server=ghcr.io \ - --docker-username=${{ secrets.GHCR_USERNAME }} \ - --docker-password=${{ secrets.GHCR_TOKEN }} \ + --docker-username="${{ secrets.GHCR_USERNAME }}" \ + --docker-password="${{ secrets.GHCR_TOKEN }}" \ --docker-email=ci@appwrite.io \ --dry-run=client -o yaml | kubectl apply -f - diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 8c13ac5..5f9403b 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -58,8 +58,8 @@ jobs: run: | kubectl -n mcp-for-docs create secret docker-registry ghcr \ --docker-server=ghcr.io \ - --docker-username=${{ secrets.GHCR_USERNAME }} \ - --docker-password=${{ secrets.GHCR_TOKEN }} \ + --docker-username="${{ secrets.GHCR_USERNAME }}" \ + --docker-password="${{ secrets.GHCR_TOKEN }}" \ --docker-email=ci@appwrite.io \ --dry-run=client -o yaml | kubectl apply -f - From 62c410186cfc67a6850d55e022acbb85532be235 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Mon, 16 Feb 2026 21:40:07 +0530 Subject: [PATCH 8/8] try only 1 replica --- deploy/mcp-for-docs/values.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/mcp-for-docs/values.yaml b/deploy/mcp-for-docs/values.yaml index f0fbf1e..732330a 100644 --- a/deploy/mcp-for-docs/values.yaml +++ b/deploy/mcp-for-docs/values.yaml @@ -3,6 +3,6 @@ nodeSelector: imagePullPolicy: IfNotPresent -minReplicas: 2 -maxReplicas: 3 -maxUnavailable: 1 +minReplicas: 1 +maxReplicas: 1 +maxUnavailable: 0