From 7b94d600c47a87df5c49474d346e418b624471ce Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 5 Feb 2026 13:44:11 +0530 Subject: [PATCH] fix: rename --tables-db flag to --tablesdb --- README.md | 2 +- src/mcp_server_appwrite/server.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f9a3243..fd5aac3 100644 --- a/README.md +++ b/README.md @@ -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 | diff --git a/src/mcp_server_appwrite/server.py b/src/mcp_server_appwrite/server.py index 3ce12d2..3b81ec5 100644 --- a/src/mcp_server_appwrite/server.py +++ b/src/mcp_server_appwrite/server.py @@ -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') @@ -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")) @@ -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")) @@ -143,4 +143,4 @@ async def _run(): ) if __name__ == "__main__": - asyncio.run(_run()) \ No newline at end of file + asyncio.run(_run())