@@ -371,7 +371,7 @@ async def list_keyspaces(
371371 description = 'Lists all tables in a specified keyspace - args: keyspace' ,
372372)
373373async def list_tables (
374- input : KeyspaceInput ,
374+ input : KeyspaceInput , # pylint: disable=redefined-builtin
375375 ctx : Optional [Context ] = None ,
376376) -> str :
377377 """Lists all tables in a specified keyspace."""
@@ -384,7 +384,7 @@ async def list_tables(
384384 description = 'Gets detailed information about a keyspace - args: keyspace' ,
385385)
386386async def describe_keyspace (
387- input : KeyspaceInput ,
387+ input : KeyspaceInput , # pylint: disable=redefined-builtin
388388 ctx : Optional [Context ] = None ,
389389) -> str :
390390 """Gets detailed information about a keyspace."""
@@ -397,7 +397,7 @@ async def describe_keyspace(
397397 description = 'Gets detailed information about a table - args: keyspace, table' ,
398398)
399399async def describe_table (
400- input : TableInput ,
400+ input : TableInput , # pylint: disable=redefined-builtin
401401 ctx : Optional [Context ] = None ,
402402) -> str :
403403 """Gets detailed information about a table."""
@@ -410,7 +410,7 @@ async def describe_table(
410410 description = 'Executes a read-only SELECT query against the database - args: keyspace, query' ,
411411)
412412async def execute_query (
413- input : QueryInput ,
413+ input : QueryInput , # pylint: disable=redefined-builtin
414414 ctx : Optional [Context ] = None ,
415415) -> str :
416416 """Executes a read-only (SELECT) query against the database."""
@@ -423,7 +423,7 @@ async def execute_query(
423423 description = 'Analyzes the performance characteristics of a CQL query - args: keyspace, query' ,
424424)
425425async def analyze_query_performance (
426- input : QueryInput ,
426+ input : QueryInput , # pylint: disable=redefined-builtin
427427 ctx : Optional [Context ] = None ,
428428) -> str :
429429 """Analyzes the performance characteristics of a CQL query."""
@@ -732,17 +732,17 @@ async def _handle_analyze_query_performance(
732732
733733def main ():
734734 """Run the MCP server."""
735- import asyncio
736-
735+ import asyncio # pylint: disable=import-outside-toplevel
736+
737737 # Validate connection before starting server
738738 try :
739739 proxy = asyncio .run (get_proxy ())
740740 asyncio .run (proxy .schema_service .cassandra_client .get_session ())
741741 logger .success ('Successfully validated database connection' )
742- except Exception as e :
742+ except Exception as e : # pylint: disable=broad-exception-caught
743743 logger .error (f'Failed to connect to database: { e } ' )
744744 sys .exit (1 )
745-
745+
746746 mcp .run ()
747747
748748
0 commit comments