Skip to content

Give Claude Desktop's Code and Cowork sessions Bytebase's tools; release 0.1.1 (BYT-10611) - #6

Merged
zchpeter merged 1 commit into
mainfrom
pz/byt-10611-desktop-code-cowork-tools
Nov 30, 2026
Merged

zchpeter merged 1 commit into
mainfrom
pz/byt-10611-desktop-code-cowork-tools

Conversation

@zchpeter

@zchpeter zchpeter commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • Before sign-in, 0.1.0 lists no tools. The Code and Cowork process reads the list once, drops a server whose list is empty, and ignores tools/list_changed.
  • 0.1.0 keeps one sign-in per client name. Chat is claude-ai and the Code and Cowork process is local-agent-mode-<server>, so Chat's sign-in never reaches it.

Change

  • List the bundled snapshot until a session answers 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.
  • Share one sign-in across Claude Desktop's client names. Existing Chat sign-ins keep working, because the stored key is unchanged. New ones appear on the consent page as "Claude via Bytebase MCP".
  • Bump to 0.1.1. docs/DESIGN.md revision 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. With src/auth.ts reverted, 2 of the affected tests fail; with src/server.ts reverted, 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

…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
zchpeter marked this pull request as ready for review November 30, 2026 21:33
@zchpeter
zchpeter requested a review from vsai12 November 30, 2026 21:35
@zchpeter
zchpeter merged commit 47fff5c into main Nov 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants