File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ async def run():
3838 print ()
3939
4040 # Call a few tools.
41- await client .call_tool ("run_query" , arguments = {"query" : "SELECT * FROM sys.summits ORDER BY height DESC LIMIT 3" })
42- await client .call_tool ("list_connectors" , arguments = {})
41+ await client .call_tool ("execute_sql" , arguments = {"sql" : "SELECT * FROM sys.summits ORDER BY height DESC LIMIT 3" })
4342
4443 # Validate database content.
4544 db = DatabaseAdapter ("crate://crate@localhost:4200/" )
Original file line number Diff line number Diff line change @@ -103,12 +103,9 @@ def test_dbhub():
103103 assert b"Universal Database MCP Server" in p .stderr
104104
105105 # Validate output specific to CrateDB.
106- assert b"Calling tool: run_query " in p .stdout
106+ assert b"Calling tool: execute_sql " in p .stdout
107107 assert b"mountain: Mont Blanc" in p .stdout
108108
109- assert b"Calling tool: list_connectors" in p .stdout
110- assert b"dsn: postgres://postgres" in p .stdout
111-
112109 assert b"Reading resource: db://schemas" in p .stdout
113110 assert b"- doc" in p .stdout
114111 assert b"- sys" in p .stdout
You can’t perform that action at this time.
0 commit comments