Skip to main content
Glama
cbcoutinho

Nextcloud MCP Server

by cbcoutinho
10-install-user_oidc-app.sh1.04 kB
#!/bin/bash set -euox pipefail echo "Installing and configuring user_oidc app for testing..." # Enable the user_oidc app (OIDC client for bearer token validation) php /var/www/html/occ app:enable user_oidc # Configure user_oidc to validate bearer tokens from the OIDC Identity Provider php /var/www/html/occ config:system:set user_oidc oidc_provider_bearer_validation --value=true --type=boolean php /var/www/html/occ config:system:set user_oidc httpclient.allowselfsigned --value=true --type=boolean # Allow Nextcloud to connect to local/internal servers (required for external IdP mode) # This enables user_oidc to fetch JWKS from internal Keycloak container php /var/www/html/occ config:system:set allow_local_remote_servers --value=true --type=boolean # Note: The user_oidc app_api session flag patch is NOT required when using the # CORSMiddleware Bearer token patch (20-apply-cors-bearer-token-patch.sh). # The CORSMiddleware patch fixes the root cause by allowing Bearer tokens to bypass # CORS/CSRF checks at the framework level.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cbcoutinho/nextcloud-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server