feat: merged data_studio__list_connections tool + AGENTS.md TS style alignment (0.1.3) - #19
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implement the merged
data_studio__list_connectionstool (epic #9) — lets AI agents discover all database connections across both backends before calling tools — and align the codebase with the AGENTS.md TypeScript style guidelines.Changes
Feature:
data_studio__list_connectionssrc/connections.ts(new):listConnections()— fetches connections from all backends in parallel, tags each with its backend, skips unreachable backendssrc/backends.ts:listTools()now returns{ tools, connections }— previously discarded the connections field from bridge responsessrc/index.ts: synthesizesdata_studio__list_connections— injected intotools/listand handled inCallToolbefore the routing tabletests/connections.test.ts) — merge across backends, skip unreachable, empty resultStyle: AGENTS.md alignment
functiondeclarations ->const fn = (...) => ...(10 occurrences across src + tests)interface->typewheretypesuffices (9 definitions)class/forloops / in-place mutation in the packageRelease
npm civerified)Why
Before this, agents had no way to discover available connections via MCP — they had to guess connection names from tool descriptions. With this tool, the agent flow is:
list_connections-> pickconnection_id-> call database tools.Companion PR: geek-fun/sqlkit#128 (sqlkit bridge now returns real connections instead of
[]).Verification
tsc --noEmit+lint:checkcleannpm civerified on regenerated lockfile