File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 3
3
## Iteration +1
4
4
- Builtin: Submit a CrateDB adapter, getting rid of the
5
5
` Could not roll back transaction: error `
6
- - JDBC: Tool ` list_tables ` currently blocks.
7
- - JDBC: Tool ` describe_table ` does not work.
8
- Problem with ` SELECT current_database() ` .
9
- https://github.com/crate/crate/issues/17393
10
6
- DBHub: Reading resource ` tables ` does not work,
11
7
because ` WHERE table_schema = 'public' `
12
8
- PG-MCP: Improve installation after packaging has been improved.
Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ async def run():
38
38
39
39
# Call a few tools.
40
40
await client .call_tool ("database_info" )
41
- # FIXME: This operation currently blocks.
42
- # await client.call_tool("list_tables", arguments={})
41
+ await client .call_tool ("list_tables" )
43
42
await client .call_tool ("describe_table" , arguments = {"schema" : "sys" , "table" : "summits" })
44
43
await client .call_tool ("read_query" , arguments = {"query" : "SELECT * FROM sys.summits ORDER BY height DESC LIMIT 3" })
45
44
await client .call_tool ("create_table" , arguments = {"query" : "CREATE TABLE IF NOT EXISTS testdrive.mcp_jdbc (id INT, data TEXT)" })
Original file line number Diff line number Diff line change @@ -69,10 +69,10 @@ def test_jdbc():
69
69
assert b"Calling tool: database_info" in p .stdout
70
70
assert b"database_product_name: PostgreSQL" in p .stdout
71
71
assert b"driver_name: PostgreSQL JDBC Driver" in p .stdout
72
+ assert b"Calling tool: list_tables" in p .stdout
73
+ assert b'TABLE_NAME: jobs_log' in p .stdout
72
74
assert b"Calling tool: describe_table" in p .stdout
73
- # FIXME: Problem with `SELECT current_database()`.
74
- # https://github.com/crate/crate/issues/17393
75
- assert b"Failed to describe table: The column name current_database was not found in this ResultSet." in p .stdout
75
+ assert b'coordinates' in p .stdout
76
76
assert b"Calling tool: read_query" in p .stdout
77
77
assert b'mountain: Mont Blanc' in p .stdout
78
78
You can’t perform that action at this time.
0 commit comments