mcp-server-appwrite 0.2.7__py3-none-any.whl → 0.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mcp_server_appwrite/server.py +14 -10
- {mcp_server_appwrite-0.2.7.dist-info → mcp_server_appwrite-0.3.0.dist-info}/METADATA +4 -3
- mcp_server_appwrite-0.3.0.dist-info/RECORD +10 -0
- {mcp_server_appwrite-0.2.7.dist-info → mcp_server_appwrite-0.3.0.dist-info}/WHEEL +1 -1
- mcp_server_appwrite-0.2.7.dist-info/RECORD +0 -10
- {mcp_server_appwrite-0.2.7.dist-info → mcp_server_appwrite-0.3.0.dist-info}/entry_points.txt +0 -0
- {mcp_server_appwrite-0.2.7.dist-info → mcp_server_appwrite-0.3.0.dist-info}/licenses/LICENSE +0 -0
mcp_server_appwrite/server.py
CHANGED
|
@@ -10,6 +10,7 @@ from mcp.shared.exceptions import McpError
|
|
|
10
10
|
from dotenv import load_dotenv
|
|
11
11
|
from appwrite.client import Client
|
|
12
12
|
from appwrite.services.databases import Databases
|
|
13
|
+
from appwrite.services.tables_db import TablesDB
|
|
13
14
|
from appwrite.services.users import Users
|
|
14
15
|
from appwrite.services.teams import Teams
|
|
15
16
|
from appwrite.services.storage import Storage
|
|
@@ -24,7 +25,7 @@ from .service import Service
|
|
|
24
25
|
|
|
25
26
|
def parse_args():
|
|
26
27
|
parser = argparse.ArgumentParser(description='Appwrite MCP Server')
|
|
27
|
-
parser.add_argument('--
|
|
28
|
+
parser.add_argument('--tablesdb', action='store_true', help='Enable TablesDB service')
|
|
28
29
|
parser.add_argument('--users', action='store_true', help='Enable Users service')
|
|
29
30
|
parser.add_argument('--teams', action='store_true', help='Enable Teams service')
|
|
30
31
|
parser.add_argument('--storage', action='store_true', help='Enable Storage service')
|
|
@@ -33,6 +34,7 @@ def parse_args():
|
|
|
33
34
|
parser.add_argument('--locale', action='store_true', help='Enable Locale service')
|
|
34
35
|
parser.add_argument('--avatars', action='store_true', help='Enable Avatars service')
|
|
35
36
|
parser.add_argument('--sites', action='store_true', help='Enable Sites service')
|
|
37
|
+
parser.add_argument('--databases', action='store_true', help='Enable Legacy Databases service')
|
|
36
38
|
parser.add_argument('--all', action='store_true', help='Enable all services')
|
|
37
39
|
return parser.parse_args()
|
|
38
40
|
|
|
@@ -60,13 +62,13 @@ tools_manager = ToolManager()
|
|
|
60
62
|
def register_services(args):
|
|
61
63
|
# If --all is specified, enable all services
|
|
62
64
|
if args.all:
|
|
63
|
-
args.
|
|
65
|
+
args.tablesdb = args.users = args.teams = args.storage = True
|
|
64
66
|
args.functions = args.messaging = args.locale = args.avatars = True
|
|
65
67
|
args.sites = True
|
|
66
68
|
|
|
67
69
|
# Register services based on CLI arguments
|
|
68
|
-
if args.
|
|
69
|
-
tools_manager.register_service(Service(
|
|
70
|
+
if args.tablesdb:
|
|
71
|
+
tools_manager.register_service(Service(TablesDB(client), "tables_db"))
|
|
70
72
|
if args.users:
|
|
71
73
|
tools_manager.register_service(Service(Users(client), "users"))
|
|
72
74
|
if args.teams:
|
|
@@ -83,12 +85,14 @@ def register_services(args):
|
|
|
83
85
|
tools_manager.register_service(Service(Avatars(client), "avatars"))
|
|
84
86
|
if args.sites:
|
|
85
87
|
tools_manager.register_service(Service(Sites(client), "sites"))
|
|
86
|
-
|
|
87
|
-
# If no services were specified, enable databases by default
|
|
88
|
-
if not any([args.databases, args.users, args.teams, args.storage,
|
|
89
|
-
args.functions, args.messaging, args.locale, args.avatars]):
|
|
88
|
+
if args.databases:
|
|
90
89
|
tools_manager.register_service(Service(Databases(client), "databases"))
|
|
91
90
|
|
|
91
|
+
# If no services were specified, enable TablesDB by default
|
|
92
|
+
if not any([args.databases, args.tablesdb, args.users, args.teams, args.storage,
|
|
93
|
+
args.functions, args.messaging, args.locale, args.avatars, args.sites]):
|
|
94
|
+
tools_manager.register_service(Service(TablesDB(client), "tables_db"))
|
|
95
|
+
|
|
92
96
|
async def serve() -> Server:
|
|
93
97
|
server = Server("Appwrite MCP Server")
|
|
94
98
|
|
|
@@ -130,7 +134,7 @@ async def _run():
|
|
|
130
134
|
write_stream,
|
|
131
135
|
InitializationOptions(
|
|
132
136
|
server_name="appwrite",
|
|
133
|
-
server_version="0.
|
|
137
|
+
server_version="0.3.0",
|
|
134
138
|
capabilities=server.get_capabilities(
|
|
135
139
|
notification_options=NotificationOptions(),
|
|
136
140
|
experimental_capabilities={},
|
|
@@ -139,4 +143,4 @@ async def _run():
|
|
|
139
143
|
)
|
|
140
144
|
|
|
141
145
|
if __name__ == "__main__":
|
|
142
|
-
asyncio.run(_run())
|
|
146
|
+
asyncio.run(_run())
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcp-server-appwrite
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: MCP (Model Context Protocol) server for Appwrite
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Requires-Python: >=3.12
|
|
7
|
-
Requires-Dist: appwrite>=
|
|
7
|
+
Requires-Dist: appwrite>=13.4.1
|
|
8
8
|
Requires-Dist: docstring-parser>=0.16
|
|
9
9
|
Requires-Dist: mcp[cli]>=1.3.0
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
@@ -99,7 +99,7 @@ Both the `uv` and `pip` setup processes require certain arguments to enable MCP
|
|
|
99
99
|
|
|
100
100
|
| Argument | Description |
|
|
101
101
|
| --- | --- |
|
|
102
|
-
| `--
|
|
102
|
+
| `--tablesdb` | Enables the TablesDB API |
|
|
103
103
|
| `--users` | Enables the Users API |
|
|
104
104
|
| `--teams` | Enables the Teams API |
|
|
105
105
|
| `--storage` | Enables the Storage API |
|
|
@@ -109,6 +109,7 @@ Both the `uv` and `pip` setup processes require certain arguments to enable MCP
|
|
|
109
109
|
| `--avatars` | Enables the Avatars API |
|
|
110
110
|
| `--sites` | Enables the Sites API |
|
|
111
111
|
| `--all` | Enables all Appwrite APIs |
|
|
112
|
+
| `--databases` | Enables the Legacy Databases API |
|
|
112
113
|
|
|
113
114
|
## Usage with Claude Desktop
|
|
114
115
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
mcp_server_appwrite/__init__.py,sha256=Od9oaUg_ckgJ4jIGa2HijocyauWDPjIC7cBRiV0P4s8,214
|
|
2
|
+
mcp_server_appwrite/__main__.py,sha256=bdaX6xMmFugzSR2QMdXJqanRx_Jh25jACJDqjE9cKEc,75
|
|
3
|
+
mcp_server_appwrite/server.py,sha256=f3Ycws7DBMGLGVL4ZRPXWZk3e_svy9NPIOtQMhKVPSY,6030
|
|
4
|
+
mcp_server_appwrite/service.py,sha256=H_Qr8bYFyXuJVwsPsWFi1xx12-aPM75yblKj11L4V2c,4640
|
|
5
|
+
mcp_server_appwrite/tool_manager.py,sha256=AfRjLyMpplYjF2VJna7frXDiDUZKRN8WQu9R8j3dxPc,718
|
|
6
|
+
mcp_server_appwrite-0.3.0.dist-info/METADATA,sha256=w-8P8cDVrN1A_HhOdhb6pfCe0NsS4bFUE7Bu4umRaQk,7984
|
|
7
|
+
mcp_server_appwrite-0.3.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
8
|
+
mcp_server_appwrite-0.3.0.dist-info/entry_points.txt,sha256=-FBKUOp-Qmo9FldmiT3JUyF7djSeo8lLhxljOosuHkQ,74
|
|
9
|
+
mcp_server_appwrite-0.3.0.dist-info/licenses/LICENSE,sha256=PXzk1HbuQMAkLdHzwnBLTBIHFmgDZM0Ez2lw2gX2UQs,1096
|
|
10
|
+
mcp_server_appwrite-0.3.0.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
mcp_server_appwrite/__init__.py,sha256=Od9oaUg_ckgJ4jIGa2HijocyauWDPjIC7cBRiV0P4s8,214
|
|
2
|
-
mcp_server_appwrite/__main__.py,sha256=bdaX6xMmFugzSR2QMdXJqanRx_Jh25jACJDqjE9cKEc,75
|
|
3
|
-
mcp_server_appwrite/server.py,sha256=KxLXrqIHllcRt_bF6QQ5FJIcDNIuc-XGaGk2qbK6BPU,5757
|
|
4
|
-
mcp_server_appwrite/service.py,sha256=H_Qr8bYFyXuJVwsPsWFi1xx12-aPM75yblKj11L4V2c,4640
|
|
5
|
-
mcp_server_appwrite/tool_manager.py,sha256=AfRjLyMpplYjF2VJna7frXDiDUZKRN8WQu9R8j3dxPc,718
|
|
6
|
-
mcp_server_appwrite-0.2.7.dist-info/METADATA,sha256=IpkV4-ezXhA_aGTmblar1agL6Gm8CqVEmPAIUfVgHSA,7933
|
|
7
|
-
mcp_server_appwrite-0.2.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8
|
-
mcp_server_appwrite-0.2.7.dist-info/entry_points.txt,sha256=-FBKUOp-Qmo9FldmiT3JUyF7djSeo8lLhxljOosuHkQ,74
|
|
9
|
-
mcp_server_appwrite-0.2.7.dist-info/licenses/LICENSE,sha256=PXzk1HbuQMAkLdHzwnBLTBIHFmgDZM0Ez2lw2gX2UQs,1096
|
|
10
|
-
mcp_server_appwrite-0.2.7.dist-info/RECORD,,
|
{mcp_server_appwrite-0.2.7.dist-info → mcp_server_appwrite-0.3.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{mcp_server_appwrite-0.2.7.dist-info → mcp_server_appwrite-0.3.0.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|