Repository navigation
Support branches in the existing MCP tools - #272
Merged
Merged
Conversation
nathanjcochran
force-pushed
the
nathan/branches-4-existing-tools
branch
from
October 21, 2026 22:17
7a21733 to
d3af981
Compare
nathanjcochran
force-pushed
the
nathan/branches-4-existing-tools
branch
from
October 22, 2026 20:20
d3af981 to
39a0a86
Compare
nathanjcochran
force-pushed
the
nathan/branches-4-existing-tools
branch
from
October 22, 2026 21:41
39a0a86 to
d465879
Compare
nathanjcochran
force-pushed
the
nathan/branches-4-existing-tools
branch
3 times, most recently
from
October 26, 2026 21:01
4e5f6ce to
3065b07
Compare
nathanjcochran
force-pushed
the
nathan/branches-4-existing-tools
branch
3 times, most recently
from
October 26, 2026 21:58
78e1c9f to
aa07cc2
Compare
nathanjcochran
force-pushed
the
nathan/branches-4-existing-tools
branch
4 times, most recently
from
October 28, 2026 19:30
ccf68bf to
a4cad5c
Compare
nathanjcochran
force-pushed
the
nathan/branches-4-existing-tools
branch
from
October 28, 2026 19:49
a4cad5c to
ccf68bf
Compare
nathanjcochran
force-pushed
the
nathan/branches-4-existing-tools
branch
3 times, most recently
from
October 30, 2026 16:35
04584b3 to
e75ba43
Compare
nathanjcochran
force-pushed
the
nathan/branches-4-existing-tools
branch
2 times, most recently
from
October 30, 2026 16:57
d3ee5c0 to
6a5e0a4
Compare
nathanjcochran
force-pushed
the
nathan/branches-4-existing-tools
branch
2 times, most recently
from
October 30, 2026 20:08
a8dba77 to
770447b
Compare
nathanjcochran
marked this pull request as ready for review
October 30, 2026 21:26
areina
approved these changes
Nov 2, 2026
nathanjcochran
force-pushed
the
nathan/branches-4-existing-tools
branch
from
November 2, 2026 18:03
e4c9f78 to
bea9ad9
Compare
db_query and db_schema now resolve service_id through the API's resolve endpoint, so behind the experimental gate they accept a branch ID as well as a service or read replica set ID, and a paused or unready branch points at the branch tools. service_get returns a fluid service's branch count behind the gate. service_delete names the branches deleted along with a fluid service in its PROD prompt and its result, regardless of the gate.
TestResolveConnectionTargetByID tested the resolve through an httptest server, claiming the db tools couldn't reach its cases. They can: each stubs the call past the connection. Its cases now live in the db_query, db_schema, and db_extensions_list tables, which gain the ones they lacked (a name match, a ready branch, and the branch cases in db_schema). The db_query and db_schema stubs now also assert the connection target, as db_extensions_list's does, so a case can show which endpoint and credentials the tool connects with.
branch_count was a ServiceDetail field, so service_create's and service_fork's output schemas advertised it, though only service_get sets it. It now lives on ServiceGetDetail, which embeds ServiceDetail, and the description no longer has to say which tool returns it.
nathanjcochran
force-pushed
the
nathan/branches-4-existing-tools
branch
from
November 2, 2026 18:28
bea9ad9 to
cd2dcf0
Compare
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.
Updates existing MCP tools for branches, mirroring the CLI changes to the
dband service commands.db_query,db_schema, anddb_extensions_listresolveservice_idthrough the API's resolve endpoint. BehindTIGER_EXPERIMENTAL, they also accept a branch ID, and their descriptions say so. A paused or unready branch points atbranch_startorbranch_get.service_getreturns a fluid service'sbranch_countbehind the gate. Without the gate, the field is left out of its schema.service_deletenames the branches deleted along with a fluid service, in its PROD prompt and in its result message. This isn't gated, since the branches are deleted either way. Only the tool description mentions branches behind the gate.