Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 85b9a14fc6 | |||
| e53f4dc2dc | |||
| 8147f237cd | |||
| d4966fc925 | |||
| f173e957f3 | |||
| 78fd4eb54c | |||
| 93092a94cc | |||
| 914aef2861 | |||
| fab0f3ef05 | |||
| 0e6ff3bdda | |||
| 37f031d13e | |||
| 02e05dc8d0 | |||
| 21019c6cff | |||
| 050d236312 |
@@ -15,18 +15,18 @@ jobs:
|
|||||||
packages: write
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
- name: Check out
|
- name: Check out
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: "${{ secrets.GITHUB_TOKEN }}"
|
token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
- name: Create bump and changelog
|
- name: Create bump and changelog
|
||||||
uses: commitizen-tools/commitizen-action@0.24.0
|
uses: commitizen-tools/commitizen-action@5b0848cd060263e24602d1eba03710e056ef7711 # 0.24.0
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
changelog_increment_filename: body.md
|
changelog_increment_filename: body.md
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2
|
||||||
with:
|
with:
|
||||||
body_path: "body.md"
|
body_path: "body.md"
|
||||||
tag_name: ${{ env.REVISION }}
|
tag_name: v${{ env.REVISION }}
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||||
@@ -22,7 +21,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# list of Docker images to use as base name for tags
|
# list of Docker images to use as base name for tags
|
||||||
images: |
|
images: |
|
||||||
#cbcoutinho/nextcloud-mcp-server
|
|
||||||
ghcr.io/cbcoutinho/nextcloud-mcp-server
|
ghcr.io/cbcoutinho/nextcloud-mcp-server
|
||||||
# generate Docker tags based on the following events/attributes
|
# generate Docker tags based on the following events/attributes
|
||||||
tags: |
|
tags: |
|
||||||
|
|||||||
@@ -17,6 +17,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
compose-file: "./docker-compose.yml"
|
compose-file: "./docker-compose.yml"
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt update -y && sudo apt install -y pipx
|
||||||
|
pipx install uv
|
||||||
|
uv sync --locked
|
||||||
|
env:
|
||||||
|
DEBIAN_FRONTEND: "noninteractive"
|
||||||
|
|
||||||
- name: Wait for service to be ready
|
- name: Wait for service to be ready
|
||||||
run: |
|
run: |
|
||||||
echo "Waiting for service at http://localhost:8080/ocs/v2.php/apps/serverinfo/api/v1/info to return 401..."
|
echo "Waiting for service at http://localhost:8080/ocs/v2.php/apps/serverinfo/api/v1/info to return 401..."
|
||||||
@@ -33,18 +41,6 @@ jobs:
|
|||||||
done
|
done
|
||||||
echo "Service is ready (returned 401)."
|
echo "Service is ready (returned 401)."
|
||||||
|
|
||||||
- name: Install notes app
|
|
||||||
run: |
|
|
||||||
docker compose exec app php occ app:enable notes
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt update -y && sudo apt install -y pipx
|
|
||||||
pipx install uv
|
|
||||||
uv sync --frozen
|
|
||||||
env:
|
|
||||||
DEBIAN_FRONTEND: "noninteractive"
|
|
||||||
|
|
||||||
# Add subsequent steps here, e.g., running tests
|
# Add subsequent steps here, e.g., running tests
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -1,3 +1,23 @@
|
|||||||
|
## v0.2.3 (2025-05-25)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- Limit search results to notes with score > 0.5
|
||||||
|
|
||||||
|
## v0.2.2 (2025-05-24)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- Install deps before checking service
|
||||||
|
|
||||||
|
## v0.2.1 (2025-05-24)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- Install deps before checking service
|
||||||
|
|
||||||
|
## v0.2.1 (2025-05-24)
|
||||||
|
|
||||||
## v0.2.0 (2025-05-24)
|
## v0.2.0 (2025-05-24)
|
||||||
|
|
||||||
### Feat
|
### Feat
|
||||||
|
|||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
php /var/www/html/occ app:enable notes
|
||||||
@@ -34,6 +34,7 @@ services:
|
|||||||
- db
|
- db
|
||||||
volumes:
|
volumes:
|
||||||
- nextcloud:/var/www/html
|
- nextcloud:/var/www/html
|
||||||
|
- ./app-hooks/post-installation:/docker-entrypoint-hooks.d/post-installation:ro
|
||||||
environment:
|
environment:
|
||||||
- NEXTCLOUD_TRUSTED_DOMAINS=app
|
- NEXTCLOUD_TRUSTED_DOMAINS=app
|
||||||
- NEXTCLOUD_ADMIN_USER=admin
|
- NEXTCLOUD_ADMIN_USER=admin
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ class NextcloudClient:
|
|||||||
score = self.calculate_score(query_tokens, title_tokens, content_tokens)
|
score = self.calculate_score(query_tokens, title_tokens, content_tokens)
|
||||||
|
|
||||||
# Only include notes with a non-zero score
|
# Only include notes with a non-zero score
|
||||||
if score > 0:
|
if score >= 0.5:
|
||||||
search_results.append({
|
search_results.append({
|
||||||
"id": note.get("id"),
|
"id": note.get("id"),
|
||||||
"title": note.get("title"),
|
"title": note.get("title"),
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "nextcloud-mcp-server"
|
name = "nextcloud-mcp-server"
|
||||||
version = "0.2.0"
|
version = "0.2.3"
|
||||||
description = ""
|
description = ""
|
||||||
authors = [
|
authors = [
|
||||||
{name = "Chris Coutinho",email = "chris@coutinho.io"}
|
{name = "Chris Coutinho",email = "chris@coutinho.io"}
|
||||||
|
|||||||
@@ -492,7 +492,7 @@ wheels = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nextcloud-mcp-server"
|
name = "nextcloud-mcp-server"
|
||||||
version = "0.2.0"
|
version = "0.2.3"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "httpx" },
|
{ name = "httpx" },
|
||||||
|
|||||||
Reference in New Issue
Block a user