Repository navigation
Give Claude Desktop's Code and Cowork sessions Bytebase's tools; release 0.1.1 (BYT-10611) - #6
Merged
Conversation
…ase 0.1.1 (BYT-10611) List the bundled snapshot until a session answers tools/list, because Claude Desktop's Code and Cowork process drops a server whose first list is empty and ignores tools/list_changed. Share one sign-in across Claude Desktop's Chat, Code and Cowork client names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
zchpeter
marked this pull request as ready for review
November 30, 2026 21:33
vsai12
approved these changes
Nov 30, 2026
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.
Problem
In Claude Desktop, Code-tab and Cowork sessions never get Bytebase's tools from 0.1.0, even after the user signs in through Chat. Settings shows the server as Failed: "Offered no tools to Cowork and Code sessions, so they can't use it." (BYT-10611)
Two causes:
tools/list_changed.claude-aiand the Code and Cowork process islocal-agent-mode-<server>, so Chat's sign-in never reaches it.Change
tools/list. The first tool call waits for the sign-in or starts one. After that, only the instance's own tools are listed. A call to a snapshot tool the instance does not serve gets an error result that says to reconnect.docs/DESIGN.mdrevision 3 records the decision (D2, D3, D6).The cost: before sign-in, an instance older than the snapshot (3.25.0, the latest release) shows tools it lacks. In Code and Cowork this lasts until Desktop reconnects.
The Claude Desktop bundle (
.mcpb) is not part of this PR.Tests
npm test: 42 pass. Withsrc/auth.tsreverted, 2 of the affected tests fail; withsrc/server.tsreverted, 6 fail.The packed tarball run through
npx, signed out, as both Desktop clients at once against a local Bytebase: 13 tools each, one sign-in prompt. The same Code and Cowork client got 0 tools from npm 0.1.0.Claude Desktop 6.28899.6 on macOS, signed out, with the packed tarball in
claude_desktop_config.json: the Code and Cowork process connected with 13 tools before sign-in, one sign-in prompt was logged and one sign-in was stored, and a Code session that was open before the sign-in then listed projects.Not tested: a tool call from Chat (it re-listed its tools after sign-in), Cowork (it shares the Code tab's process), and Windows.
Merging publishes 0.1.1 to npm and the MCP Registry.
🤖 Generated with Claude Code