diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cf5a203..4243e03 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,10 +41,6 @@ jobs: done echo "Service is ready (returned 401)." - - name: Install notes app - run: | - docker compose exec app php occ app:enable notes - # Add subsequent steps here, e.g., running tests - name: Run tests env: diff --git a/app-hooks/post-installation/install-notes-app.sh b/app-hooks/post-installation/install-notes-app.sh new file mode 100755 index 0000000..f32392e --- /dev/null +++ b/app-hooks/post-installation/install-notes-app.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +php /var/www/html/occ app:enable notes diff --git a/docker-compose.yml b/docker-compose.yml index 4075404..e509b2a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,6 +34,7 @@ services: - db volumes: - nextcloud:/var/www/html + - ./app-hooks/post-installation:/docker-entrypoint-hooks.d/post-installation:ro environment: - NEXTCLOUD_TRUSTED_DOMAINS=app - NEXTCLOUD_ADMIN_USER=admin diff --git a/nextcloud_mcp_server/client.py b/nextcloud_mcp_server/client.py index f066723..d891a31 100644 --- a/nextcloud_mcp_server/client.py +++ b/nextcloud_mcp_server/client.py @@ -211,7 +211,7 @@ class NextcloudClient: score = self.calculate_score(query_tokens, title_tokens, content_tokens) # Only include notes with a non-zero score - if score > 0: + if score >= 0.5: search_results.append({ "id": note.get("id"), "title": note.get("title"),