From 0b02fc17962e413db6a6faa78ea83765f0cf49a5 Mon Sep 17 00:00:00 2001 From: martinyde Date: Mon, 23 Mar 2026 10:21:44 +0100 Subject: [PATCH 1/4] Added tools folder and updated Taskfile and docker --- Taskfile.yml | 22 ++++++++++++++++++++++ docker-compose.yml | 10 ++++++++++ 2 files changed, 32 insertions(+) diff --git a/Taskfile.yml b/Taskfile.yml index 18981ca..e1f9b8e 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 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 8ed4e83..726afc6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -469,3 +469,13 @@ 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} \ No newline at end of file From 60db4719834c32e38066c14b8396fd178e8c5a90 Mon Sep 17 00:00:00 2001 From: martinyde Date: Mon, 23 Mar 2026 10:46:36 +0100 Subject: [PATCH 2/4] Removed tools --- Taskfile.yml | 2 +- tools/.gitkeep | 0 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 tools/.gitkeep diff --git a/Taskfile.yml b/Taskfile.yml index e1f9b8e..2b12c95 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -361,4 +361,4 @@ tasks: dir: "{{ .MCP_RETSINFORMATION_DIR }}" cmds: - git pull - silent: true \ No newline at end of file + silent: true diff --git a/tools/.gitkeep b/tools/.gitkeep new file mode 100644 index 0000000..e69de29 From 7f90bb2b4d1ac65f004abe309f4cdd63a14b91c7 Mon Sep 17 00:00:00 2001 From: martinyde Date: Mon, 23 Mar 2026 10:47:01 +0100 Subject: [PATCH 3/4] Added tools to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) 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 From 39acde0ca103ce93e357bc2a3044def9661d6ce7 Mon Sep 17 00:00:00 2001 From: martinyde Date: Tue, 24 Mar 2026 09:01:14 +0100 Subject: [PATCH 4/4] Added healthcheck --- docker-compose.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 726afc6..5c3f7b4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -469,7 +469,6 @@ 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 @@ -478,4 +477,10 @@ services: ports: - "8000" environment: - RETSINFORMATION_BASE_URL: ${RETSINFORMATION_BASE_URL:-https://retsinformation-api.dk} \ No newline at end of file + 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