Initial commit: Gitea code search with MeiliSearch + MCP

Go indexer (full re-index + webhook), MeiliSearch integration,
MCP server exposing gitea_search tool for LLM agents.
K8s manifests for MeiliSearch + indexer CronJob.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Raymond Scott Pert
2026-04-08 01:27:42 +00:00
commit 61574855bf
11 changed files with 1318 additions and 0 deletions

94
k8s/meilisearch.yaml Normal file
View File

@@ -0,0 +1,94 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: meilisearch-data
namespace: gitea-search
spec:
accessModes:
- ReadWriteOnce
storageClassName: local-path
resources:
requests:
storage: 2Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: meilisearch
namespace: gitea-search
labels:
app: meilisearch
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: meilisearch
template:
metadata:
labels:
app: meilisearch
spec:
containers:
- name: meilisearch
image: getmeili/meilisearch:v1.11
ports:
- containerPort: 7700
env:
- name: MEILI_ENV
value: production
- name: MEILI_MASTER_KEY
valueFrom:
secretKeyRef:
name: meilisearch-secret
key: master-key
- name: MEILI_DB_PATH
value: /meili_data/data.ms
volumeMounts:
- name: data
mountPath: /meili_data
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
livenessProbe:
httpGet:
path: /health
port: 7700
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /health
port: 7700
initialDelaySeconds: 5
periodSeconds: 10
volumes:
- name: data
persistentVolumeClaim:
claimName: meilisearch-data
---
apiVersion: v1
kind: Service
metadata:
name: meilisearch
namespace: gitea-search
spec:
selector:
app: meilisearch
ports:
- port: 7700
targetPort: 7700
---
apiVersion: v1
kind: Secret
metadata:
name: meilisearch-secret
namespace: gitea-search
type: Opaque
stringData:
master-key: "CHANGE-ME-generate-with-openssl-rand-base64-32"