Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Both the `uv` and `pip` setup processes require certain arguments to enable MCP

| Argument | Description |
| --- | --- |
| `--tables-db` | Enables the TablesDB API |
| `--tablesdb` | Enables the TablesDB API |
| `--users` | Enables the Users API |
| `--teams` | Enables the Teams API |
| `--storage` | Enables the Storage API |
Expand Down
12 changes: 6 additions & 6 deletions src/mcp_server_appwrite/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

def parse_args():
parser = argparse.ArgumentParser(description='Appwrite MCP Server')
parser.add_argument('--tables-db', action='store_true', help='Enable TablesDB service')
parser.add_argument('--tablesdb', action='store_true', help='Enable TablesDB service')
parser.add_argument('--users', action='store_true', help='Enable Users service')
parser.add_argument('--teams', action='store_true', help='Enable Teams service')
parser.add_argument('--storage', action='store_true', help='Enable Storage service')
Expand Down Expand Up @@ -62,12 +62,12 @@ def parse_args():
def register_services(args):
# If --all is specified, enable all services
if args.all:
args.tables_db = args.users = args.teams = args.storage = True
args.tablesdb = args.users = args.teams = args.storage = True
args.functions = args.messaging = args.locale = args.avatars = True
args.sites = True

# Register services based on CLI arguments
if args.tables_db:
if args.tablesdb:
tools_manager.register_service(Service(TablesDB(client), "tables_db"))
if args.users:
tools_manager.register_service(Service(Users(client), "users"))
Expand All @@ -88,8 +88,8 @@ def register_services(args):
if args.databases:
tools_manager.register_service(Service(Databases(client), "databases"))

# If no services were specified, enable tables_db by default
if not any([args.databases, args.tables_db, args.users, args.teams, args.storage,
# If no services were specified, enable TablesDB by default
if not any([args.databases, args.tablesdb, args.users, args.teams, args.storage,
args.functions, args.messaging, args.locale, args.avatars, args.sites]):
tools_manager.register_service(Service(TablesDB(client), "tables_db"))

Expand Down Expand Up @@ -143,4 +143,4 @@ async def _run():
)

if __name__ == "__main__":
asyncio.run(_run())
asyncio.run(_run())