Upgrade local web gateway with structured YouTube support

This commit is contained in:
Mikei386
2026-08-23 22:42:27 +02:00
parent a3297dbdd9
commit 11aefea5a3
12 changed files with 615 additions and 42 deletions
+5 -1
View File
@@ -1,7 +1,11 @@
FROM python:3.13-slim
ARG MCP_PROXY_VERSION=0.12.0
RUN pip install --no-cache-dir "mcp-proxy==${MCP_PROXY_VERSION}" "mcp>=1.17,<2"
ARG YT_DLP_VERSION=2026.7.4
RUN pip install --no-cache-dir \
"mcp-proxy==${MCP_PROXY_VERSION}" \
"mcp>=1.17,<2" \
"yt-dlp==${YT_DLP_VERSION}"
RUN useradd --system --uid 10001 --create-home --home-dir /app mcp
COPY web-search/web_search_mcp.py /app/web_search_mcp.py
+8 -1
View File
@@ -30,10 +30,17 @@ services:
environment:
TINYSEARCH_MCP_URL: http://tinysearch:8000/mcp
SEARXNG_URL: http://searxng:8080
WEB_SEARCH_BUDGET_MAX_RELATED: "6"
WEB_SEARCH_BUDGET_MAX_RELATED: "3"
YOUTUBE_TIMEOUT: "45"
depends_on:
tinysearch:
condition: service_started
healthcheck:
test: ["CMD", "python", "-c", "import socket; s=socket.create_connection(('127.0.0.1', 8000), 2); s.close()"]
interval: 30s
timeout: 5s
retries: 5
start_period: 15s
searxng:
<<: *tool-common