Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 56a5c63994 | |||
| 92c8e1e41d | |||
| dd12c957f6 | |||
| 74e2ab2440 | |||
| d124144424 | |||
| 39259ef282 | |||
| 14a59fdff3 | |||
| 2f138e7539 | |||
| 2baacc0ae8 | |||
| 2c37ad165e |
@@ -85,4 +85,4 @@ jobs:
|
|||||||
NEXTCLOUD_USERNAME: "admin"
|
NEXTCLOUD_USERNAME: "admin"
|
||||||
NEXTCLOUD_PASSWORD: "admin"
|
NEXTCLOUD_PASSWORD: "admin"
|
||||||
run: |
|
run: |
|
||||||
uv run pytest -v --log-cli-level=WARN --ignore=tests/manual
|
uv run pytest -v --log-cli-level=WARN -m smoke
|
||||||
|
|||||||
@@ -1,3 +1,24 @@
|
|||||||
|
## v0.34.2 (2025-11-13)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- Use NEXTCLOUD_OIDC_CLIENT_ID/SECRET env vars consistently
|
||||||
|
|
||||||
|
## v0.34.1 (2025-11-13)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
|
||||||
|
- return all notes when search query is empty
|
||||||
|
|
||||||
|
## v0.34.0 (2025-11-13)
|
||||||
|
|
||||||
|
### Feat
|
||||||
|
|
||||||
|
- Complete Phase 5 - Instrument all 93 MCP tools
|
||||||
|
- Add instrumentation decorator and apply to notes tools (Phase 5)
|
||||||
|
- Add OAuth token and database metrics (Phases 3-4)
|
||||||
|
- Add metrics instrumentation for queue, health, and database operations
|
||||||
|
|
||||||
## v0.33.1 (2025-11-13)
|
## v0.33.1 (2025-11-13)
|
||||||
|
|
||||||
### Fix
|
### Fix
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ apiVersion: v2
|
|||||||
name: nextcloud-mcp-server
|
name: nextcloud-mcp-server
|
||||||
description: A Helm chart for Nextcloud MCP Server - enables AI assistants to interact with Nextcloud
|
description: A Helm chart for Nextcloud MCP Server - enables AI assistants to interact with Nextcloud
|
||||||
type: application
|
type: application
|
||||||
version: 0.33.1
|
version: 0.34.2
|
||||||
appVersion: "0.33.1"
|
appVersion: "0.34.2"
|
||||||
keywords:
|
keywords:
|
||||||
- nextcloud
|
- nextcloud
|
||||||
- mcp
|
- mcp
|
||||||
|
|||||||
+1
-1
@@ -156,7 +156,7 @@ services:
|
|||||||
- oauth-tokens:/app/data
|
- oauth-tokens:/app/data
|
||||||
|
|
||||||
keycloak:
|
keycloak:
|
||||||
image: quay.io/keycloak/keycloak:26.4.4@sha256:c6459d5fae1b759f5d667ebdc6237ab3121379c3494e213898569014ede1846d
|
image: quay.io/keycloak/keycloak:26.4.5@sha256:653852bfdea2be6e958b9e90a976eff1c6de34edd55f2f679bdc48ef16bc528e
|
||||||
command:
|
command:
|
||||||
- "start-dev"
|
- "start-dev"
|
||||||
- "--import-realm"
|
- "--import-realm"
|
||||||
|
|||||||
@@ -507,9 +507,9 @@ async def setup_oauth_config():
|
|||||||
- External IdP mode: OIDC_DISCOVERY_URL points to external provider
|
- External IdP mode: OIDC_DISCOVERY_URL points to external provider
|
||||||
→ External IdP for OAuth, Nextcloud user_oidc validates tokens and provides API access
|
→ External IdP for OAuth, Nextcloud user_oidc validates tokens and provides API access
|
||||||
|
|
||||||
Uses generic OIDC environment variables:
|
Uses OIDC environment variables:
|
||||||
- OIDC_DISCOVERY_URL: OIDC discovery endpoint (optional, defaults to NEXTCLOUD_HOST)
|
- OIDC_DISCOVERY_URL: OIDC discovery endpoint (optional, defaults to NEXTCLOUD_HOST)
|
||||||
- OIDC_CLIENT_ID / OIDC_CLIENT_SECRET: Static credentials (optional, uses DCR if not provided)
|
- NEXTCLOUD_OIDC_CLIENT_ID / NEXTCLOUD_OIDC_CLIENT_SECRET: Static credentials (optional, uses DCR if not provided)
|
||||||
- NEXTCLOUD_OIDC_SCOPES: Requested OAuth scopes
|
- NEXTCLOUD_OIDC_SCOPES: Requested OAuth scopes
|
||||||
|
|
||||||
This is done synchronously before FastMCP initialization because FastMCP
|
This is done synchronously before FastMCP initialization because FastMCP
|
||||||
@@ -633,19 +633,21 @@ async def setup_oauth_config():
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Load client credentials (static or dynamic registration)
|
# Load client credentials (static or dynamic registration)
|
||||||
client_id = os.getenv("OIDC_CLIENT_ID")
|
client_id = os.getenv("NEXTCLOUD_OIDC_CLIENT_ID")
|
||||||
client_secret = os.getenv("OIDC_CLIENT_SECRET")
|
client_secret = os.getenv("NEXTCLOUD_OIDC_CLIENT_SECRET")
|
||||||
|
|
||||||
if client_id and client_secret:
|
if client_id and client_secret:
|
||||||
logger.info(f"Using static OIDC client credentials: {client_id}")
|
logger.info(f"Using static OIDC client credentials: {client_id}")
|
||||||
elif registration_endpoint:
|
elif registration_endpoint:
|
||||||
logger.info("OIDC_CLIENT_ID not set, attempting Dynamic Client Registration")
|
logger.info(
|
||||||
|
"NEXTCLOUD_OIDC_CLIENT_ID not set, attempting Dynamic Client Registration"
|
||||||
|
)
|
||||||
client_id, client_secret = await load_oauth_client_credentials(
|
client_id, client_secret = await load_oauth_client_credentials(
|
||||||
nextcloud_host=nextcloud_host, registration_endpoint=registration_endpoint
|
nextcloud_host=nextcloud_host, registration_endpoint=registration_endpoint
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"OIDC_CLIENT_ID and OIDC_CLIENT_SECRET environment variables are required "
|
"NEXTCLOUD_OIDC_CLIENT_ID and NEXTCLOUD_OIDC_CLIENT_SECRET environment variables are required "
|
||||||
"when the OIDC provider does not support Dynamic Client Registration. "
|
"when the OIDC provider does not support Dynamic Client Registration. "
|
||||||
f"Discovery URL: {discovery_url}"
|
f"Discovery URL: {discovery_url}"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -288,8 +288,8 @@ def get_settings() -> Settings:
|
|||||||
return Settings(
|
return Settings(
|
||||||
# OAuth/OIDC settings
|
# OAuth/OIDC settings
|
||||||
oidc_discovery_url=os.getenv("OIDC_DISCOVERY_URL"),
|
oidc_discovery_url=os.getenv("OIDC_DISCOVERY_URL"),
|
||||||
oidc_client_id=os.getenv("OIDC_CLIENT_ID"),
|
oidc_client_id=os.getenv("NEXTCLOUD_OIDC_CLIENT_ID"),
|
||||||
oidc_client_secret=os.getenv("OIDC_CLIENT_SECRET"),
|
oidc_client_secret=os.getenv("NEXTCLOUD_OIDC_CLIENT_SECRET"),
|
||||||
oidc_issuer=os.getenv("OIDC_ISSUER"),
|
oidc_issuer=os.getenv("OIDC_ISSUER"),
|
||||||
# Nextcloud settings
|
# Nextcloud settings
|
||||||
nextcloud_host=os.getenv("NEXTCLOUD_HOST"),
|
nextcloud_host=os.getenv("NEXTCLOUD_HOST"),
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "nextcloud-mcp-server"
|
name = "nextcloud-mcp-server"
|
||||||
version = "0.33.1"
|
version = "0.34.2"
|
||||||
description = "Model Context Protocol (MCP) server for Nextcloud integration - enables AI assistants to interact with Nextcloud data"
|
description = "Model Context Protocol (MCP) server for Nextcloud integration - enables AI assistants to interact with Nextcloud data"
|
||||||
authors = [
|
authors = [
|
||||||
{name = "Chris Coutinho", email = "chris@coutinho.io"}
|
{name = "Chris Coutinho", email = "chris@coutinho.io"}
|
||||||
|
|||||||
@@ -1053,7 +1053,7 @@ wheels = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nextcloud-mcp-server"
|
name = "nextcloud-mcp-server"
|
||||||
version = "0.33.1"
|
version = "0.34.2"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "aiosqlite" },
|
{ name = "aiosqlite" },
|
||||||
|
|||||||
Reference in New Issue
Block a user