feat(contacts): Initialize Contacts App

This commit is contained in:
Chris Coutinho
2025-08-03 14:15:37 +02:00
parent ad95140416
commit 37b1057d2a
5 changed files with 19 additions and 1 deletions
+2
View File
@@ -12,6 +12,7 @@ from nextcloud_mcp_server.server import (
configure_notes_tools,
configure_tables_tools,
configure_webdav_tools,
configure_contacts_tools,
)
setup_logging()
@@ -56,6 +57,7 @@ configure_notes_tools(mcp)
configure_tables_tools(mcp)
configure_webdav_tools(mcp)
configure_calendar_tools(mcp)
configure_contacts_tools(mcp)
def run():
+2
View File
@@ -5,6 +5,7 @@ from httpx import AsyncClient, Auth, BasicAuth, Request, Response
from ..controllers.notes_search import NotesSearchController
from .calendar import CalendarClient
from .contacts import ContactsClient
from .notes import NotesClient
from .tables import TablesClient
from .webdav import WebDAVClient
@@ -43,6 +44,7 @@ class NextcloudClient:
self.webdav = WebDAVClient(self._client, username)
self.tables = TablesClient(self._client, username)
self.calendar = CalendarClient(self._client, username)
self.contacts = ContactsClient(self._client, username)
# Initialize controllers
self._notes_search = NotesSearchController()
+2
View File
@@ -2,10 +2,12 @@ from .calendar import configure_calendar_tools
from .notes import configure_notes_tools
from .tables import configure_tables_tools
from .webdav import configure_webdav_tools
from .contacts import configure_contacts_tools
__all__ = [
"configure_calendar_tools",
"configure_notes_tools",
"configure_tables_tools",
"configure_webdav_tools",
"configure_contacts_tools",
]