diff --git a/.gitignore b/.gitignore index b05ecb0..b077a5d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ open-webui/ .env.docker.local .env litellm_config.yaml +tools/* \ No newline at end of file diff --git a/Taskfile.yml b/Taskfile.yml index 18981ca..2b12c95 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -12,6 +12,12 @@ vars: OPEN_WEBUI_VERSION: 'v0.8.10' PROD_OPEN_WEBUI_VERSION: 'v0.8.10-2' TARGET_DIR: 'open-webui' + + # MCP Retsinformation + MCP_RETSINFORMATION_REPO: 'https://github.com/itk-dev/mcp-retsinformation.git' + MCP_RETSINFORMATION_BRANCH: 'feature/first-release' + MCP_RETSINFORMATION_DIR: 'tools/mcp-retsinformation' + PATCHES: - name: 'Pinned info banner' url: 'https://patch-diff.githubusercontent.com/raw/AarhusAI/open-webui/pull/32.diff' @@ -340,3 +346,19 @@ tasks: vars: IMAGE_NAME: ghcr.io/os2ai/open-webui PATCH_TASK: patch:base + + #### + ## MCP tools + #### + mcp:retsinformation:install: + desc: "Clone mcp-retsinformation into tools folder" + cmds: + - git clone --branch {{ .MCP_RETSINFORMATION_BRANCH }} --single-branch {{ .MCP_RETSINFORMATION_REPO }} {{ .MCP_RETSINFORMATION_DIR }} + silent: true + + mcp:retsinformation:update: + desc: "Update mcp-retsinformation to latest on {{ .MCP_RETSINFORMATION_BRANCH }}" + dir: "{{ .MCP_RETSINFORMATION_DIR }}" + cmds: + - git pull + silent: true diff --git a/docker-compose.yml b/docker-compose.yml index 8ed4e83..5c3f7b4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -469,3 +469,18 @@ services: - ./.docker/data/searxng/data/:/var/cache/searxng/ - ./.docker/searxng/aarhus.py:/usr/local/searxng/searx/engines/aarhus.py + mcp-retsinformation: + build: + context: tools/mcp-retsinformation + networks: + - app + ports: + - "8000" + environment: + RETSINFORMATION_BASE_URL: ${RETSINFORMATION_BASE_URL:-https://retsinformation-api.dk} + healthcheck: + test: ["CMD", "python", "-c", "import socket; s=socket.socket(); s.connect(('localhost',8000)); s.close()"] + interval: 10s + timeout: 5s + retries: 5 + start_period: 15s diff --git a/tools/.gitkeep b/tools/.gitkeep new file mode 100644 index 0000000..e69de29