Skip to content

Commit 4223bcd

Browse files
committed
MCP/DBHub: Adjust tools after update to 0.11.6
1 parent c8824ab commit 4223bcd

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

framework/mcp/example_dbhub.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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/")

framework/mcp/test.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)