Skip to content

Commit 37b1057

Browse files
author
Chris Coutinho
committed
feat(contacts): Initialize Contacts App
1 parent ad95140 commit 37b1057

File tree

5 files changed

+19
-1
lines changed

5 files changed

+19
-1
lines changed

nextcloud_mcp_server/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
configure_notes_tools,
1313
configure_tables_tools,
1414
configure_webdav_tools,
15+
configure_contacts_tools,
1516
)
1617

1718
setup_logging()
@@ -56,6 +57,7 @@ async def nc_get_capabilities():
5657
configure_tables_tools(mcp)
5758
configure_webdav_tools(mcp)
5859
configure_calendar_tools(mcp)
60+
configure_contacts_tools(mcp)
5961

6062

6163
def run():

nextcloud_mcp_server/client/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from ..controllers.notes_search import NotesSearchController
77
from .calendar import CalendarClient
8+
from .contacts import ContactsClient
89
from .notes import NotesClient
910
from .tables import TablesClient
1011
from .webdav import WebDAVClient
@@ -43,6 +44,7 @@ def __init__(self, base_url: str, username: str, auth: Auth | None = None):
4344
self.webdav = WebDAVClient(self._client, username)
4445
self.tables = TablesClient(self._client, username)
4546
self.calendar = CalendarClient(self._client, username)
47+
self.contacts = ContactsClient(self._client, username)
4648

4749
# Initialize controllers
4850
self._notes_search = NotesSearchController()

nextcloud_mcp_server/server/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
from .notes import configure_notes_tools
33
from .tables import configure_tables_tools
44
from .webdav import configure_webdav_tools
5+
from .contacts import configure_contacts_tools
56

67
__all__ = [
78
"configure_calendar_tools",
89
"configure_notes_tools",
910
"configure_tables_tools",
1011
"configure_webdav_tools",
12+
"configure_contacts_tools",
1113
]

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ dependencies = [
1111
"mcp[cli] (>=1.10,<1.11)",
1212
"httpx (>=0.28.1,<0.29.0)",
1313
"pillow (>=11.2.1,<12.0.0)",
14-
"icalendar (>=6.0.0,<7.0.0)"
14+
"icalendar (>=6.0.0,<7.0.0)",
15+
"pythonvcard4>=0.2.0",
1516
]
1617

1718
[tool.pytest.ini_options]

uv.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)