check_webdav_login
Verify WebDAV authentication for Nextcloud Notes access to manage notes through natural language commands.
Instructions
Check if WebDAV login is successful. Returns a message indicating success or failure.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- nextcloud_notes_mcp/server.py:37-50 (handler)The handler function for the 'check_webdav_login' tool, decorated with @mcp.tool() for registration. It checks the WebDAV client connection and returns a success or failure message.@mcp.tool() def check_webdav_login() -> str: """ Check if WebDAV login is successful. Returns a message indicating success or failure. """ try: if client.check(): # returns True if login works return "✅ WebDAV login successful!" else: return "❌ WebDAV login failed!" except Exception as e: return f"❌ WebDAV login failed: {e}"