mirror of
https://github.com/Dasemu/nextcloud-mcp.git
synced 2026-11-26 07:16:09 +00:00
1.5 KiB
1.5 KiB
CLAUDE.md
Overview
MCP server exposing a Nextcloud instance (files, calendars, address books,
Talk) as tools for an MCP-compatible AI agent. Single file: server.py.
Commands
- Install:
pip install -r requirements.txt - Run:
python server.py(readsNEXTCLOUD_HOST,NEXTCLOUD_USERNAME,NEXTCLOUD_PASSWORDfrom the environment; see.env.example) - Test: none yet.
- Lint: none yet.
- Build: none (no packaging step; Nixpacks runs
python server.pydirectly, seenixpacks.toml). - Sanity check:
python -m py_compile server.py
Architecture
See docs/architecture.md.
Conventions
- One
@mcp.tool()function per Nextcloud operation; docstring = tool description shown to the agent. - Parsing/formatting helpers are private (
_-prefixed) and live near the tools that use them.
Workflow quirks
- No
developmentbranch yet; branch frommain, PR intomaindirectly untildevelopmentis created. - No automated tests or linter are configured yet (no pytest/ruff/flake8 in
requirements.txt). CI only runspython -m py_compile server.pyas a sanity check.
Deployment
See docs/deployment.md. Currently deployed via
Nixpacks, not the org's standard LXC/VPS + systemd setup.
Gotchas
NEXTCLOUD_HOST,NEXTCLOUD_USERNAME,NEXTCLOUD_PASSWORDare required env vars; the process raisesKeyErroron import if any is missing.- Recurring calendar events are expanded server-side (
c:expand) inlist_events, so each occurrence is a separate item, unlikeget_event.