Commit 45790cb
authored
MCP: Also match against schema names (#3956)
## Changes
`find_tables` does support filtering but right now it only filters table
names and not schemas.
Before:
catalog: `samples`
filter: `*taxi*`
result: nothing
After:
catalog: `samples`
filter: `*taxi*`
result: samples.nyctaxi.trips
Also contains a critical fix that prevented the find_tables command from
working
## Why
I noticed that claude did struggle to find the table and needed three
round trips to find the right table
## Tests
<!-- How have you tested the changes? -->
<!-- If your PR needs to be included in the release notes for next
release,
add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->1 parent 0534e38 commit 45790cb
File tree
2 files changed
+15
-4
lines changed- experimental/apps-mcp/lib/providers/databricks
2 files changed
+15
-4
lines changedLines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
638 | | - | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
639 | 641 | | |
640 | 642 | | |
641 | 643 | | |
| |||
712 | 714 | | |
713 | 715 | | |
714 | 716 | | |
715 | | - | |
| 717 | + | |
| 718 | + | |
716 | 719 | | |
717 | 720 | | |
718 | 721 | | |
| |||
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
119 | 127 | | |
120 | 128 | | |
121 | 129 | | |
| |||
0 commit comments