feat(webdav): add complete file system support

- Add nc_webdav_list_directory tool for browsing any NextCloud directory
  - Add nc_webdav_read_file tool with automatic text/binary content handling
  - Add nc_webdav_write_file tool supporting text and base64 binary content
  - Add nc_webdav_create_directory tool for creating directories
  - Add nc_webdav_delete_resource tool for deleting files and directories
  - Extend WebDAV client beyond Notes attachments to general file operations
  - Add XML parsing for WebDAV PROPFIND responses with metadata extraction
  - Improve type annotations throughout codebase for better IDE support
  - Add comprehensive documentation with usage examples

  This transforms the NextCloud MCP server from a limited Notes/Tables tool
  into a full-featured file system interface, enabling complete NextCloud
  file management through LLM interactions.
This commit is contained in:
Neovasky
2025-07-25 03:15:52 -04:00
parent e983693534
commit 9e96999f02
5 changed files with 389 additions and 5 deletions
+23
View File
@@ -1,3 +1,26 @@
## [Unreleased]
### Feat
- **webdav**: Add complete file system support with directory browsing, file read/write, and resource management
- **webdav**: Add `nc_webdav_list_directory` tool for browsing any NextCloud directory
- **webdav**: Add `nc_webdav_read_file` tool with automatic text/binary content handling
- **webdav**: Add `nc_webdav_write_file` tool supporting text and base64 binary content
- **webdav**: Add `nc_webdav_create_directory` tool for creating directories
- **webdav**: Add `nc_webdav_delete_resource` tool for deleting files and directories
- **webdav**: Add XML parsing for WebDAV PROPFIND responses with metadata extraction
### Fix
- **types**: Improve type annotations throughout codebase for better IDE support
- **types**: Fix Context parameter ordering in MCP tools (required before optional)
- **types**: Add proper type hints for WebDAV client methods
### Refactor
- **webdav**: Extend WebDAV client beyond Notes attachments to general file operations
- **server**: Enhance error handling and logging for WebDAV operations
## v0.4.1 (2025-07-10)
### Fix