Skip to content

README: present the package as a companion to Bytebase - #5

Merged
adela-bytebase merged 15 commits into
mainfrom
readme-with-bytebase
Nov 25, 2026
Merged

adela-bytebase merged 15 commits into
mainfrom
readme-with-bytebase

Conversation

@adela-bytebase

@adela-bytebase adela-bytebase commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

The README explained how the package works but not what it is for. A reader arriving from npm or an MCP directory could not tell that it needs a Bytebase instance, what an assistant can do through it, or when to pick it over a direct connection. This adds a short top half and leaves the technical sections alone. 100 lines before, 122 after.

architecture

Changed

  • Top: a tagline, a links row, and a note that the package needs a running Bytebase instance (Bytebase Cloud or self-hosted), with a pointer to DBHub for readers who want a standalone server.
  • Architecture image (docs/images/architecture.svg) replaces the text diagram. It is referenced by an absolute raw.githubusercontent.com URL on main so it also renders on npm and Glama, which means it shows as broken in this PR's preview until merge. The copy above is pinned to the commit.
  • When to use this package replaces the paragraph saying most clients do not need it. Same fact (a client that can connect directly needs nothing installed), followed by the three cases the package is for.
  • What you can do: four bullets and the two bounds (workspace MCP access policy, the user's own permissions). Checked against the capability rows the console shows (mcpCapabilityRows.ts and the settings.mcp.ladder copy in en-US.json at tag 3.25.0).

Unchanged

Setup, Commands, Environment variables, Tools (the generated table and its markers), How it works, Development, License. Requirements gained the Cloud or self-hosted wording and a link for readers with no instance.

For @zchpeter to check

  1. When to use this package adds a case you did not list: a client that connects from the cloud cannot reach a private instance. Claude's custom connectors connect from Anthropic's cloud, per their doc.
  2. Bytebase Cloud. The README says the package works with Bytebase Cloud. Not tested.
  3. "You confirm each one in your client first" for approvals and administration. I did not trace what a client without form support gets.

README and one image only. node scripts/render-readme.mjs reports no change.

🤖 Generated with Claude Code

adela-bytebase and others added 2 commits November 24, 2026 18:15
Say up front that the package needs a Bytebase instance, link the main repository,
and point readers who want a standalone server to DBHub. Add what the instance
enforces, use cases drawn from the tool list, and a short comparison with DBHub.
Setup, commands, tools and design sections are unchanged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…base's control-plane image

docs/images/architecture.svg is drawn in the Bytebase docs style with the brand fonts
embedded. Images are referenced by absolute raw.githubusercontent.com URLs so they also
render on npm and in MCP directories, which show the README outside the repository.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@adela-bytebase

Copy link
Copy Markdown
Collaborator Author

Added two images in a second commit.

  • Architecture diagram replaces the text diagram at the top. New file docs/images/architecture.svg, drawn in the Bytebase docs style:

    architecture

  • Control-plane image under "What you get from Bytebase". It is docs/assets/middleware.svg from bytebase/bytebase, the same one the main README uses, referenced from there, not copied.

Both use absolute raw.githubusercontent.com URLs so they also render on npm and Glama. The architecture image points at main, so in this PR's README preview it shows as broken until the PR is merged; the copy above is pinned to the commit.

Query, change and time-boxed access each get a short pitch and a flow image
(what you ask, the tool the assistant calls, what Bytebase does). Fonts in the
images are subsetted, so each file is under 30 KB.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@adela-bytebase

Copy link
Copy Markdown
Collaborator Author

Third commit: a tagline and three illustrated scenarios under a new "What you can do" section (it replaces the "Use cases" bullets).

query
change
access

These are illustrations of the flow, not screenshots, and the README says so. @zchpeter the three I would most like checked against the product:

  • query: results come back with the masked column masked, and the query is in the audit log
  • change: propose_database_change creates a plan and an issue and runs plan checks, then approval and rollout follow the project's policy
  • access: request_access_grant is for one read-only statement on one database and the grant expires on its own

The architecture image was re-saved with subsetted fonts (98 KB down to 28 KB).

adela-bytebase and others added 7 commits November 24, 2026 18:24
…d) and that the scenarios are examples

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…le, move setup up

Section order is now: do you need this package, what you can do, why go through
Bytebase, requirements, setup, tools, comparison with DBHub, how it works. No
setup, command, environment or tool text changed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Drop the client names, protocol labels and environment variable. They are in the
decision table and Setup, and the image now reads as two paths into one server.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…configuration

Change comes first. Masking and just-in-time access sit together under access
control. A table lists what each area covers, so the two illustrated areas do not
read as the whole feature set.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ire it

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Replaces "Do you need this package?" with a comparison and the cases where the
package is the right choice: local-only clients, an instance on a private network,
a client that cannot complete sign-in, and MCP directories. The image's two paths
are relabelled to match.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@adela-bytebase

Copy link
Copy Markdown
Collaborator Author

@zchpeter one change here is a judgment call that is yours to make, so flagging it separately.

Your README said most clients do not need this package and should point at /mcp directly. I reframed that section as Two ways to connect: a neutral comparison, followed by the cases where the package is the right choice. The facts and the client list are yours, unchanged. "Connecting directly is the shorter path when it works" is still stated.

Why: read cold, the old wording sounded like "avoid this package", which is an odd thing for the package's own README and for directory listings to say. And there are cases where direct does not work at all:

  • Instance on a private network. Claude's custom connectors connect from Anthropic's cloud, not from the user's machine, so a self-hosted Bytebase behind a VPN or firewall is unreachable (Anthropic's doc, "Network requirements"). The package runs locally and reaches it. This looks like a real reason for self-hosted customers to want it.
  • The client cannot complete sign-in. Seen locally: the Claude desktop app refused OAuth against an http:// instance URL, and the package's own browser sign-in worked.

If you would rather keep steering people to direct HTTP first, say so and I will restore your wording and keep only the list of cases.

The list of what an assistant can do now follows the capability rows the console
shows for the MCP access policy (frontend/src/components/mcp/mcpCapabilityRows.ts
and its en-US copy at 3.25.0): four under Read-only, the rest under Read-write,
and what no mode allows. Corrections from that source: an access grant starts only
after approval, changes and grants need the Read-write policy, and Read-write also
allows direct DML and DDL through queries.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@adela-bytebase

Copy link
Copy Markdown
Collaborator Author

Reworked "What you can do" against the product instead of the tool descriptions.

Source: the capability rows the console shows for the MCP access policy, frontend/src/components/mcp/mcpCapabilityRows.ts and the settings.mcp.ladder copy in en-US.json, both read at tag 3.25.0 (same 16 rows as main), plus docs/design/mcp-capability-ladder.md.

What changed because of it:

  • The section now opens with the two bounds: the workspace MCP access policy (Read-only or Read-write) and the user's own permissions.
  • "The full list" replaces my three-row table. It lists what Read-only allows, what Read-write adds, and the "Never, in any mode" line, in the product's wording. The four administration rows are folded into one.
  • Just-in-time access: the grant starts only after it is approved, and it needs the Read-write policy and a project that allows access grants. The image said "granted"; it now says "approved".
  • Database change and access requests are marked as needing Read-write.
  • The DBHub comparison no longer implies every change is reviewed: Read-write also allows DML and DDL through queries, as far as the engine and the user's permissions allow.

The README pins the list to 3.25 and points at the MCP Integration page for the reader's own version.

adela-bytebase and others added 4 commits November 24, 2026 18:58
… from the cloud

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Removes the three illustrated scenarios, the control-plane image and the DBHub
comparison table (the note at the top already points to DBHub), and merges the
capability list into one table. 201 lines down to 153.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@adela-bytebase
adela-bytebase merged commit a6c14d0 into main Nov 25, 2026
2 checks passed
@adela-bytebase
adela-bytebase deleted the readme-with-bytebase branch November 25, 2026 11:01
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