From e86a776e70f116792dc77388386e171614c80a80 Mon Sep 17 00:00:00 2001 From: Adela Date: Tue, 24 Nov 2026 18:15:01 +0100 Subject: [PATCH 01/15] README: present the package as a companion to Bytebase 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 --- README.md | 42 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 080a4d5..6ba84c4 100644 --- a/README.md +++ b/README.md @@ -3,19 +3,55 @@ [![npm](https://img.shields.io/npm/v/@bytebase/bytebase-mcp)](https://www.npmjs.com/package/@bytebase/bytebase-mcp) [![Bytebase MCP server](https://glama.ai/mcp/servers/bytebase/bytebase-mcp/badges/score.svg)](https://glama.ai/mcp/servers/bytebase/bytebase-mcp) -The official npm package for the [Bytebase](https://www.bytebase.com) MCP server. It lets AI assistants that can only run MCP servers as local commands use the MCP server built into your Bytebase instance: query data, inspect schemas, and propose database changes, all under Bytebase's approvals, access control, data masking, and audit logging. +> [!NOTE] +> Bytebase MCP works with a [Bytebase](https://github.com/bytebase/bytebase) instance and does nothing without one. If you want a standalone database MCP server that connects straight to a database, see [DBHub](https://github.com/bytebase/dbhub). + +The official npm package for the MCP server built into [Bytebase](https://github.com/bytebase/bytebase), the open-source database governance platform. It lets AI assistants that can only run MCP servers as local commands use your Bytebase instance: query data, inspect schemas, and propose database changes, all under Bytebase's approvals, access control, data masking, and audit logging. ``` - AI assistant --stdio--> bytebase-mcp --HTTPS + OAuth--> /mcp --> your databases + MCP client (HTTP) --------------------------------+ + v + MCP client (stdio only) --> bytebase-mcp --> Bytebase /mcp --> your databases + this package your instance ``` The package contains no Bytebase logic. Once you sign in, it lists your instance's own tools and forwards every call to the instance, where permissions, the workspace MCP access policy, approvals and audit apply exactly as in the console. Nothing is stored locally except the OAuth token. > Most clients, including Claude Code, Claude Desktop, Cursor, Codex, Copilot CLI, Gemini CLI and VS Code, connect to remote MCP servers over HTTP. They do not need this package: point them straight at `/mcp`. See the [MCP integration docs](https://docs.bytebase.com/integrations/mcp). This package is for clients that only start local commands, and for MCP directories. +## What you get from Bytebase + +Bytebase sits between your users, people and AI agents alike, and your databases. An assistant connected through this package works inside the same rules as everyone else on the instance: + +- **Change management**: a change the assistant proposes becomes a plan and an issue in Bytebase. Plan checks run on it, and approval and rollout follow the project's policy. +- **Access control**: the assistant acts as the account that signed in and can do only what that account can. Queries return data with the project's masking applied, and it can request time-boxed access instead of holding standing permissions. +- **Compliance**: what the assistant does is recorded in Bytebase's audit log, as it is for the console. + +Bytebase supports PostgreSQL, MySQL, SQL Server, Oracle, MongoDB and [more](https://docs.bytebase.com/introduction/supported-databases). + +## Use cases + +- **Explore and query**: read a database's schema and run SQL without handing the assistant a database password. +- **Propose a change**: draft a migration in the chat and send it into your team's review flow. +- **Ask for access**: request permission to run one read-only statement for a limited time. +- **Review**: approve or reject an issue waiting at your approval step. +- **Administer**: manage masking exemptions and just-in-time access for a project, or call any other Bytebase API operation. + +## Bytebase MCP or DBHub? + +| | Bytebase MCP | [DBHub](https://github.com/bytebase/dbhub) | +| --- | --- | --- | +| Connects to | Your Bytebase instance | Databases directly, with a connection string | +| Needs Bytebase | Yes | No | +| Sign-in | Your Bytebase account, through OAuth | Database credentials | +| Changes | Go through the project's review and approval | Run on the database directly; a read-only mode is available | +| Best for | Teams that govern database access and changes | Local development and lightweight read access | + ## Requirements -- A Bytebase instance, 3.22 or later, with its [external URL](https://docs.bytebase.com/get-started/self-host/external-url) configured and the workspace MCP access policy not set to **Disabled**. +No Bytebase instance yet? See [self-host or cloud](https://docs.bytebase.com/get-started/self-host-vs-cloud) to start one. + +- A [Bytebase](https://github.com/bytebase/bytebase) instance, 3.22 or later, with its [external URL](https://docs.bytebase.com/get-started/self-host/external-url) configured and the workspace MCP access policy not set to **Disabled**. - Node.js 20 or later, on macOS or Linux. Windows has not been tested yet. If your browser does not open at sign-in there, find the sign-in URL in the server's output (your client's MCP log) and open it yourself. - A Bytebase account. The package signs you in through Bytebase's own OAuth; it never sees your password. From 8f15a28c1e0f958bbc48d2efa1f066687879964a Mon Sep 17 00:00:00 2001 From: Adela Date: Tue, 24 Nov 2026 18:18:43 +0100 Subject: [PATCH 02/15] README: replace the text diagram with an architecture image, add Bytebase'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 --- README.md | 13 +++---- docs/images/architecture.svg | 71 ++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+), 7 deletions(-) create mode 100644 docs/images/architecture.svg diff --git a/README.md b/README.md index 6ba84c4..3ee0473 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,7 @@ The official npm package for the MCP server built into [Bytebase](https://github.com/bytebase/bytebase), the open-source database governance platform. It lets AI assistants that can only run MCP servers as local commands use your Bytebase instance: query data, inspect schemas, and propose database changes, all under Bytebase's approvals, access control, data masking, and audit logging. -``` - MCP client (HTTP) --------------------------------+ - v - MCP client (stdio only) --> bytebase-mcp --> Bytebase /mcp --> your databases - this package your instance -``` +![Two ways into the MCP server built into Bytebase: HTTP clients connect straight to it, stdio-only clients go through this package, and Bytebase applies approval, access control, masking and audit in front of your databases](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/architecture.svg) The package contains no Bytebase logic. Once you sign in, it lists your instance's own tools and forwards every call to the instance, where permissions, the workspace MCP access policy, approvals and audit apply exactly as in the console. Nothing is stored locally except the OAuth token. @@ -21,7 +16,11 @@ The package contains no Bytebase logic. Once you sign in, it lists your instance ## What you get from Bytebase -Bytebase sits between your users, people and AI agents alike, and your databases. An assistant connected through this package works inside the same rules as everyone else on the instance: +Bytebase sits between your users, people and AI agents alike, and your databases. + +![Bytebase as one control plane between people, AI agents and applications on one side and your databases on the other](https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/middleware.svg) + +An assistant connected through this package works inside the same rules as everyone else on the instance: - **Change management**: a change the assistant proposes becomes a plan and an issue in Bytebase. Plan checks run on it, and approval and rollout follow the project's policy. - **Access control**: the assistant acts as the account that signed in and can do only what that account can. Queries return data with the project's masking applied, and it can request time-boxed access instead of holding standing permissions. diff --git a/docs/images/architecture.svg b/docs/images/architecture.svg new file mode 100644 index 0000000..527cf1f --- /dev/null +++ b/docs/images/architecture.svg @@ -0,0 +1,71 @@ + + + + + Two ways into the MCP server built into Bytebase + HTTP clients connect straight to the MCP server in Bytebase. Stdio-only clients run the bytebase-mcp package, which forwards to the same server. Approval, access control, masking and audit happen in Bytebase, in front of the databases. + + + Two ways into the MCP server built into Bytebase + + + Streamable HTTP + OAuth + stdio + HTTPS + OAuth + + + + MCP CLIENTS + + + HTTP clients + Claude Code, Cursor, Codex, + VS Code, Gemini CLI + + + + Stdio-only clients + start a local command; + also MCP directories + + + + + + THIS PACKAGE + npx -y @bytebase/bytebase-mcp + BYTEBASE_URL=<external URL> + Forwards every call. Adds no logic. + + + + + + + + + + + + + MCP server + /mcp + Approval flowAccess controlData maskingAudit logging + + + + + + + + + DATABASES + + PostgreSQLMySQLOracleSQL Server + + + more + + From a89b3b13b359b35c6444fa28bebbba4132c7fd52 Mon Sep 17 00:00:00 2001 From: Adela Date: Tue, 24 Nov 2026 18:22:06 +0100 Subject: [PATCH 03/15] README: add a tagline and three illustrated scenarios 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 --- README.md | 29 +++++++++++++++++++---- docs/images/architecture.svg | 6 ++--- docs/images/scenario-access.svg | 42 +++++++++++++++++++++++++++++++++ docs/images/scenario-change.svg | 42 +++++++++++++++++++++++++++++++++ docs/images/scenario-query.svg | 42 +++++++++++++++++++++++++++++++++ 5 files changed, 154 insertions(+), 7 deletions(-) create mode 100644 docs/images/scenario-access.svg create mode 100644 docs/images/scenario-change.svg create mode 100644 docs/images/scenario-query.svg diff --git a/README.md b/README.md index 3ee0473..5c95233 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ [![npm](https://img.shields.io/npm/v/@bytebase/bytebase-mcp)](https://www.npmjs.com/package/@bytebase/bytebase-mcp) [![Bytebase MCP server](https://glama.ai/mcp/servers/bytebase/bytebase-mcp/badges/score.svg)](https://glama.ai/mcp/servers/bytebase/bytebase-mcp) +**Let AI assistants work with your databases under the same review, access control and audit as your team.** + > [!NOTE] > Bytebase MCP works with a [Bytebase](https://github.com/bytebase/bytebase) instance and does nothing without one. If you want a standalone database MCP server that connects straight to a database, see [DBHub](https://github.com/bytebase/dbhub). @@ -28,11 +30,30 @@ An assistant connected through this package works inside the same rules as every Bytebase supports PostgreSQL, MySQL, SQL Server, Oracle, MongoDB and [more](https://docs.bytebase.com/introduction/supported-databases). -## Use cases +## What you can do + +### Query data without handing out a database password + +The assistant signs in as you, through Bytebase. It reaches the databases your account can reach, and the columns your project masks come back masked. + +![You ask which customers signed up last week. The assistant calls query_database. Bytebase checks access, masks the email column, logs the query and returns the rows.](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/scenario-query.svg) + +### Send a change into review + +Describe the change in the chat. Bytebase turns it into a plan and an issue and runs the plan checks. Approval and rollout follow the project's policy. + +![You ask to add a phone column to the customer table. The assistant calls propose_database_change. Bytebase creates a plan and an issue, runs checks, and waits for approval before rollout.](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/scenario-change.svg) + +### Get access for a limited time + +When the assistant needs to read something your account cannot, it requests a grant to run one read-only statement on one database. The grant ends on its own. + +![You ask to look at one order in production. The assistant calls request_access_grant. Bytebase grants access for a limited window, after which there is no access.](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/scenario-access.svg) + +The images illustrate the flow. What you see depends on your instance's policies. + +### And more -- **Explore and query**: read a database's schema and run SQL without handing the assistant a database password. -- **Propose a change**: draft a migration in the chat and send it into your team's review flow. -- **Ask for access**: request permission to run one read-only statement for a limited time. - **Review**: approve or reject an issue waiting at your approval step. - **Administer**: manage masking exemptions and just-in-time access for a project, or call any other Bytebase API operation. diff --git a/docs/images/architecture.svg b/docs/images/architecture.svg index 527cf1f..4ba57f9 100644 --- a/docs/images/architecture.svg +++ b/docs/images/architecture.svg @@ -1,9 +1,9 @@ + @font-face { font-family: 'APK Protocol'; font-weight: 500; src: url(data:font/woff2;base64,d09GMk9UVE8AABVAAAwAAAAAIWAAABTyAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAADaRCGhYbknocbgZgAIEWATYCJAOBdAQGBYNaByAbgyCjEI8DoNZxUZSkSRT8VQI3h7aAK0cVD3jHq/3sPbPhstfLKZfKOkDYalPZAANxWWiHm5GMm/mv+whJZuHj/77NnXl/xTzCtOPF68YBRZJ5ptH683Ra7/+ZjCNWk6ZCVHCl3F62C5deATl0ASBdY7XmvFgKp6ucD8+3Fnvz904P1lYM3WBJZsEr3d7MhqJ0wTz+96TOtyL27cw+/v75elnNjJW3a1OFab2Z3iRMmv7voPSi/Dilm1JTmolwaXTbMTIQN4gF/TzlLpP79lshBUKjBFFPnJgiOieY7wcfTPfhR3OfdvdY3hUAjARSZVtVY5LZ0MuWaDJll8sdqxzC/l9yLExthQRA4+pD+836UG00QoTe7h94cp8l8NsPaTWLNkTbxKJ56QutmrTZXGKAFWyiaSgivbr95quvrd3HmCEKlpszVnhE5i4Na34hXk4a+VAa8ngeHj5tYudPDx3t/FtBFP69LCVPq/X3qICHlL4FhbT0Hm7ZYhiNfETjf3TTRtecvx5+xPzRd74z729p83j4wzK8b9n27VvCWzIeEjMtKW1dFFyxqEN9po9ORb+4br4DPmjilu07Ni3b3MXQ/k+O7/i7QuHtQQXw8pZd21+6jP/nvM2Z4dMmZqQhyXihsicGED+BQsVwSlJfC630MsA403mst8MBJ5wrAhkJxUkL8ujBUCbiYT7LWMcLPiCFTayzv8u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1+LU2U/olzL+9QUgQ+6elk8BHyhfNwx2hb4WTahZOomu+rT5cgD5S27US7XYqaxypbVfyWGJ3WfohMjKkv/TwGeSw4/kR2FZIM2VG9Pj6zFBl5ImKSViYTt7mudTgwXFVQaj2v02nSM4oYV3COUUAQVxOiyIElVyBJnFDojhnKISyucj9bSkZFTcNAW2HpgugZ3P4maj58+VVe7W8DokscTbcSQUZ6Nb5MIMXLDJ4MS6YtLN7yDmmgtkVOAaVbraai9Xi4jkAPwPAIbLvtS/dTUU4tsiSpBWGKMBine3NSMiyxTJFJRXCknAJHi6aeScj8xWdY/TLeHQTQovsQoJvsRQLgKSFJOLc7Qm/cfRj2E/Ubc/+JAfFDw0RdjFd8sr+IAIBBv1aDgIQ0POF/UyAwRLHS1dVMOx1lKVGtX4vDkVKAufW0WJWjTPeg4r/zz8KnD2+uuLfVFomH6fi3H45n5RDLziZJgkR4Pwa37p2vLpWnvhgv8VwA8Oi/KtL9YOKfW4rxxB0B0DAMJmUGyRVSW8YA8wcAkJZBSvUY4LeM2a7GearoXIvo61XDU4PJ1fluJYA7xyrdBrmiL61XKjoerKPyWjkyUpZczb5klYxZLHliFZnWSk2UAvlicOy+V3WUf5p23VM9kpgEXnVP+uhKoZNpghD3VA30vX+DWIXyD/+MnwzDV4Y4ZIxRGm+ltl1qhdRVI03p0W04FZ2+meol6a1uydgid9PikxpU2geB1gkBLSwArAbdeiTE6vWYzMX1hFT3Z5LU9RLp5TuYElKdtIL9EfyXiOrppacqRbrLUa24anErQIGyqAWSd9dDhUmlGCbKHUTevESRYj3Ji4JIXPTuNp+h3VIgJ0xE8iGfpUovidylRJ7UVtKxLSJLgYqgx4jp4tYipnRXpVjyVOmwf8mhRLhCBqEo4XI5VNjEsF44nhIn7t3REbeMVu1M2i0lqmaLJ61NlOuHyiQOBwBnbAnjgHXjVoRLnSGcO9IfYREAAA==) format('woff2'); } + @font-face { font-family: 'Modern Era Mono'; font-weight: 400; src: url(data:font/woff2;base64,d09GMgABAAAAAB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iFMgm7/2xYQP9V41ZdwjaVZmT9xDdR59XjZ8Bv/X5qv/SVCz7s5nMDrLQ==) format('woff2'); } + Two ways into the MCP server built into Bytebase HTTP clients connect straight to the MCP server in Bytebase. Stdio-only clients run the bytebase-mcp package, which forwards to the same server. Approval, access control, masking and audit happen in Bytebase, in front of the databases. diff --git a/docs/images/scenario-access.svg b/docs/images/scenario-access.svg new file mode 100644 index 0000000..dfd3f7a --- /dev/null +++ b/docs/images/scenario-access.svg @@ -0,0 +1,42 @@ + + + + + Request time-boxed access through Bytebase + The assistant calls request_access_grant. Bytebase grants permission to run one read-only statement for a limited time, after which access ends. + + + + + + + YOU ASK + + + I need to look at order 1042in production. + + + + + THE ASSISTANT CALLS + + request_access_grant + SELECT * FROM ordersWHERE id = 1042; + + Sent to your Bytebase, as your account + + + + + + + + + + + One read-only statement, one databaseACCESS WINDOWrequestedgrantedexpiresno accessThe grant ends on its own. + + diff --git a/docs/images/scenario-change.svg b/docs/images/scenario-change.svg new file mode 100644 index 0000000..fbef49f --- /dev/null +++ b/docs/images/scenario-change.svg @@ -0,0 +1,42 @@ + + + + + Propose a database change through Bytebase + The assistant calls propose_database_change. Bytebase creates a plan and an issue, runs plan checks, and waits for approval before rollout. + + + + + + + YOU ASK + + + Add a phone column to thecustomer table. + + + + + THE ASSISTANT CALLS + + propose_database_change + ALTER TABLE customer ADD COLUMN phone TEXT; + + Sent to your Bytebase, as your account + + + + + + + + + + + Issue: Add phone to customerPlancreatedChecksrunApprovalwaitingRolloutnextApproval and rollout follow the project's policy. + + diff --git a/docs/images/scenario-query.svg b/docs/images/scenario-query.svg new file mode 100644 index 0000000..902e213 --- /dev/null +++ b/docs/images/scenario-query.svg @@ -0,0 +1,42 @@ + + + + + Query data through Bytebase + The assistant calls query_database. Bytebase checks access, masks the email column, records the query, and returns the rows. + + + + + + + YOU ASK + + + Which customers signed uplast week? + + + + + THE ASSISTANT CALLS + + query_database + SELECT name, email, created_atFROM customerWHERE created_at > now() - interval '7 days' + + Sent to your Bytebase, as your account + + + + + + + + + + + access checkedemail maskedaudit loggednameemailcreated_atAda Park******2026-11-17Li Wei******2026-11-19 + + From c50456421c760bfb93eab374825116156b570417 Mon Sep 17 00:00:00 2001 From: Adela Date: Tue, 24 Nov 2026 18:24:20 +0100 Subject: [PATCH 04/15] README: say the package needs a running instance (Cloud or self-hosted) and that the scenarios are examples Co-Authored-By: Claude Fable 5.2 --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5c95233..81deb52 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ **Let AI assistants work with your databases under the same review, access control and audit as your team.** > [!NOTE] -> Bytebase MCP works with a [Bytebase](https://github.com/bytebase/bytebase) instance and does nothing without one. If you want a standalone database MCP server that connects straight to a database, see [DBHub](https://github.com/bytebase/dbhub). +> Bytebase MCP needs a running [Bytebase](https://github.com/bytebase/bytebase) instance, either Bytebase Cloud or self-hosted. It does nothing without one. If you want a standalone database MCP server that connects straight to a database, see [DBHub](https://github.com/bytebase/dbhub). The official npm package for the MCP server built into [Bytebase](https://github.com/bytebase/bytebase), the open-source database governance platform. It lets AI assistants that can only run MCP servers as local commands use your Bytebase instance: query data, inspect schemas, and propose database changes, all under Bytebase's approvals, access control, data masking, and audit logging. @@ -32,6 +32,8 @@ Bytebase supports PostgreSQL, MySQL, SQL Server, Oracle, MongoDB and [more](http ## What you can do +Three examples of what an assistant can do through Bytebase. They are not the full list: the assistant can use every tool your instance serves, listed under [Tools](#tools). + ### Query data without handing out a database password The assistant signs in as you, through Bytebase. It reaches the databases your account can reach, and the columns your project masks come back masked. @@ -54,6 +56,8 @@ The images illustrate the flow. What you see depends on your instance's policies ### And more +A few of the other things the tools cover: + - **Review**: approve or reject an issue waiting at your approval step. - **Administer**: manage masking exemptions and just-in-time access for a project, or call any other Bytebase API operation. @@ -69,9 +73,7 @@ The images illustrate the flow. What you see depends on your instance's policies ## Requirements -No Bytebase instance yet? See [self-host or cloud](https://docs.bytebase.com/get-started/self-host-vs-cloud) to start one. - -- A [Bytebase](https://github.com/bytebase/bytebase) instance, 3.22 or later, with its [external URL](https://docs.bytebase.com/get-started/self-host/external-url) configured and the workspace MCP access policy not set to **Disabled**. +- A running [Bytebase](https://github.com/bytebase/bytebase) instance, 3.22 or later, on Bytebase Cloud or self-hosted. No instance yet? See [self-host or cloud](https://docs.bytebase.com/get-started/self-host-vs-cloud) to start one. The instance needs its [external URL](https://docs.bytebase.com/get-started/self-host/external-url) configured and the workspace MCP access policy not set to **Disabled**. - Node.js 20 or later, on macOS or Linux. Windows has not been tested yet. If your browser does not open at sign-in there, find the sign-in URL in the server's output (your client's MCP log) and open it yourself. - A Bytebase account. The package signs you in through Bytebase's own OAuth; it never sees your password. From ed13d625946f8dcf3b7f4dcba078c8b624bd5f73 Mon Sep 17 00:00:00 2001 From: Adela Date: Tue, 24 Nov 2026 18:25:58 +0100 Subject: [PATCH 05/15] README: lead with scenarios, turn the client note into a decision table, 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 --- README.md | 55 +++++++++++++++++++++++++++++++++---------------------- 1 file changed, 33 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 81deb52..98941fc 100644 --- a/README.md +++ b/README.md @@ -5,30 +5,26 @@ **Let AI assistants work with your databases under the same review, access control and audit as your team.** +[Docs](https://docs.bytebase.com/integrations/mcp) · [npm](https://www.npmjs.com/package/@bytebase/bytebase-mcp) · [Bytebase](https://github.com/bytebase/bytebase) · [Install Bytebase](https://docs.bytebase.com/get-started/self-host-vs-cloud) + > [!NOTE] > Bytebase MCP needs a running [Bytebase](https://github.com/bytebase/bytebase) instance, either Bytebase Cloud or self-hosted. It does nothing without one. If you want a standalone database MCP server that connects straight to a database, see [DBHub](https://github.com/bytebase/dbhub). -The official npm package for the MCP server built into [Bytebase](https://github.com/bytebase/bytebase), the open-source database governance platform. It lets AI assistants that can only run MCP servers as local commands use your Bytebase instance: query data, inspect schemas, and propose database changes, all under Bytebase's approvals, access control, data masking, and audit logging. +The official npm package for the MCP server built into [Bytebase](https://github.com/bytebase/bytebase), the open-source database governance platform. AI assistants query data, inspect schemas and propose database changes through your Bytebase instance, under its approvals, access control, data masking and audit logging. ![Two ways into the MCP server built into Bytebase: HTTP clients connect straight to it, stdio-only clients go through this package, and Bytebase applies approval, access control, masking and audit in front of your databases](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/architecture.svg) The package contains no Bytebase logic. Once you sign in, it lists your instance's own tools and forwards every call to the instance, where permissions, the workspace MCP access policy, approvals and audit apply exactly as in the console. Nothing is stored locally except the OAuth token. -> Most clients, including Claude Code, Claude Desktop, Cursor, Codex, Copilot CLI, Gemini CLI and VS Code, connect to remote MCP servers over HTTP. They do not need this package: point them straight at `/mcp`. See the [MCP integration docs](https://docs.bytebase.com/integrations/mcp). This package is for clients that only start local commands, and for MCP directories. - -## What you get from Bytebase - -Bytebase sits between your users, people and AI agents alike, and your databases. - -![Bytebase as one control plane between people, AI agents and applications on one side and your databases on the other](https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/middleware.svg) +## Do you need this package? -An assistant connected through this package works inside the same rules as everyone else on the instance: - -- **Change management**: a change the assistant proposes becomes a plan and an issue in Bytebase. Plan checks run on it, and approval and rollout follow the project's policy. -- **Access control**: the assistant acts as the account that signed in and can do only what that account can. Queries return data with the project's masking applied, and it can request time-boxed access instead of holding standing permissions. -- **Compliance**: what the assistant does is recorded in Bytebase's audit log, as it is for the console. +Most MCP clients do not. Bytebase already serves MCP over HTTP, so check how your client connects: -Bytebase supports PostgreSQL, MySQL, SQL Server, Oracle, MongoDB and [more](https://docs.bytebase.com/introduction/supported-databases). +| Your MCP client | What to use | +| --- | --- | +| Connects to remote MCP servers over HTTP. Claude Code, Claude Desktop, Cursor, Codex, Copilot CLI, Gemini CLI and VS Code all do. | No package. Point the client at `/mcp`. See the [MCP integration docs](https://docs.bytebase.com/integrations/mcp). | +| Only starts MCP servers as local commands | This package | +| An MCP directory that lists servers by package | This package | ## What you can do @@ -59,17 +55,22 @@ The images illustrate the flow. What you see depends on your instance's policies A few of the other things the tools cover: - **Review**: approve or reject an issue waiting at your approval step. +- **Set up GitOps**: get the workflow files that set up GitOps for a project. - **Administer**: manage masking exemptions and just-in-time access for a project, or call any other Bytebase API operation. -## Bytebase MCP or DBHub? +## Why go through Bytebase -| | Bytebase MCP | [DBHub](https://github.com/bytebase/dbhub) | -| --- | --- | --- | -| Connects to | Your Bytebase instance | Databases directly, with a connection string | -| Needs Bytebase | Yes | No | -| Sign-in | Your Bytebase account, through OAuth | Database credentials | -| Changes | Go through the project's review and approval | Run on the database directly; a read-only mode is available | -| Best for | Teams that govern database access and changes | Local development and lightweight read access | +Bytebase sits between your users, people and AI agents alike, and your databases. + +![Bytebase as one control plane between people, AI agents and applications on one side and your databases on the other](https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/middleware.svg) + +An assistant connected through this package works inside the same rules as everyone else on the instance: + +- **Change management**: a change the assistant proposes becomes a plan and an issue in Bytebase. Plan checks run on it, and approval and rollout follow the project's policy. +- **Access control**: the assistant acts as the account that signed in and can do only what that account can. Queries return data with the project's masking applied, and it can request time-boxed access instead of holding standing permissions. +- **Compliance**: what the assistant does is recorded in Bytebase's audit log, as it is for the console. + +Bytebase supports PostgreSQL, MySQL, SQL Server, Oracle, MongoDB and [more](https://docs.bytebase.com/introduction/supported-databases). ## Requirements @@ -140,6 +141,16 @@ Generated from Bytebase 3.25.0. | `set_just_in_time_access` | Turn just-in-time access on or off for one Bytebase project. | +## Bytebase MCP or DBHub? + +| | Bytebase MCP | [DBHub](https://github.com/bytebase/dbhub) | +| --- | --- | --- | +| Connects to | Your Bytebase instance | Databases directly, with a connection string | +| Needs Bytebase | Yes | No | +| Sign-in | Your Bytebase account, through OAuth | Database credentials | +| Changes | Go through the project's review and approval | Run on the database directly; a read-only mode is available | +| Best for | Teams that govern database access and changes | Local development and lightweight read access | + ## How it works 1. With `BYTEBASE_URL` set, the server answers `initialize` at once. If you have signed in before, it opens a session first and passes on your instance's own instructions; otherwise it starts the browser sign-in, and announces your instance's tools with `tools/list_changed` once you have signed in. From e34c51207f23cb8a4e7dc92c04649445f395724b Mon Sep 17 00:00:00 2001 From: Adela Date: Tue, 24 Nov 2026 18:28:00 +0100 Subject: [PATCH 06/15] Simplify the architecture image 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 --- docs/images/architecture.svg | 47 ++++++++++++------------------------ 1 file changed, 15 insertions(+), 32 deletions(-) diff --git a/docs/images/architecture.svg b/docs/images/architecture.svg index 4ba57f9..2a30a97 100644 --- a/docs/images/architecture.svg +++ b/docs/images/architecture.svg @@ -1,44 +1,28 @@ + @font-face { font-family: 'APK Protocol'; font-weight: 500; src: url(data:font/woff2;base64,d09GMk9UVE8AABGsAAsAAAAAGgAAABFfAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAADZ14G4wWHCoGYACBFAE2AiQDgTQEBgWDWgcgGzkZo5Bmk9ZLSvEXCbYhWvvBwoQHwjN8xjRtWSiu5FSdLNVRrnFRNzvQtOl2/2MfIcksz/O/3/9+rrXPue9hEvGuoat00QQlEiIlkiKjUxk0swT/7+NJt/5tNvsi+3DhsiYqcbOEGnrVjgoiloYnYqtYQa5wsVxFr3Su5lrHhrVgoZ5YwOOCDWxE+yx/4r8AKID/+99mKISYlwmN0Mgz1fu432PHr/2q72G+kGje+aEhIWlIlMSszg5m8weTM/XQaBeyiCZRSUlDyqL1TmeOBFRucJD0e4Qg42/DGTKTOseCXGqpb++65xC9jnAc12dwQW7US4cqoj4oCLQXKVzzIZqF0wbotL56DPHmd3rrB+GmAQL730phgP6Zz84B7IbRdhz8HNFx3PTlz9vnPB92+YUXRjnvqG6+xnum3JJVq5fNWh79i9Wscjm/R8iuLExwbSVrVz0w6f6Pef2DC3L98x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H+csbpSablTYWlSztv8ecCZUTBdXGhBoTybAnYGx/VYQh1fNBWTeGAwAA) format('woff2'); } + @font-face { font-family: 'Modern Era Mono'; font-weight: 400; src: url(data:font/woff2;base64,d09GMgABAAAAABRQABEAAAAAKpQAABPyAAIC0AAAAAAAAAAAAAAAAAAAAAAAAAAAGigbIByBSgZgAIEUCIEYCZoWEQgKrACmIAE2AiQDgUALYgAEIAWCVAcgDIEjGywmVUaFjQMI41dFiv+/HHBjKNSw7HeQxEJ3JJ1D3anpQRuLoEm4Mbyp1tQU1Q7Ft1LPfSvxt/4dWRl3ir1nXr2YZjBhYTAX/9j11zE5Frb/yGVlBvgk+rQ1ih6Dnq0jJJn1/3uned/MSJZHchAVQlyZT+tkAeAvaTlb5s9lKqOTArMJyNu3TSDT1qxwUBLQIOHIwi4JNNJEMlCnnSQDJRYYQVbBeSBUp5/aYdme/Wjt9cHM7ie6INkYnU0KrK6nfmscO1mpOjze/l9+ALJvba4zhNtW7QLeo7G+hN77Bvw/2vpZUYKnueHhuxnE/ofBsoZKgma+FTVFna46Gbz/AWALW2o2+2Mk5dX4w05TMbJ6REW+qB6aEgXnbLTZJhQBHLgHcmOTewVGmP7/Ol/Xe6+kYyclu4A4LMBjx8xdFvtdyV96kpwv6YNifZIdVs/5hsQBcoBgL+JIhBPQhjjMHcYuU9exa08fYwucGWxZOnKvViVCmAmjpdbXjaOAAAYiy4jaeCRRssqmSs9mKBTgJyilSEOld9iCRgAQCuGigw5Zaw/YNYe16a3rkQC9B2Xw9ZjIHCOWicJpluPZygrv2VgjQ8XOemQ0NNKYxqcVlLZhyVqYKyVXKVYqo3qAiqnCFSg0yCiMq/6mUUNUDFibjAcP3aCmBzuYB8BQ40i0obvLXZW5nJs8nbFqTmhn2hUjQ0qAv+TEXvSxc7bpFjLROCQGR1lh5vmniMAZTEVKlGnXY8AEyyob7bCLzRbIbXfoM2SRaWtshsShjwrtvf3re496xMMuOOKovMgORy7WsIAeEcie7KavbyVU6mf//0/Ph35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gjL1iZFBJDFOC7o3Vb4ab98Me2CViZFaxBGJGOE77NKHLGVnUWt1av0heFF5DuRzPnUNMmRCSL2IuJ7sv7z0o1P0hYbsGz3nCR9o+9GNACy8cpe1PSwQ3vybxvmXALzxV8I/ABC89MaW/9YzdS2/H4ANAwAE/8XhsSXA81sAuYwrDx5UGgTmu21Pcdz1PHGHZtiFPrdqhs2us6E14RS2YA9WLNoGxKlFJ+9watFuAFa4vYh4sVs/xz4sRC/OFA86V4FQSlhvbrlxNt0EJluN3QAuPcSBIYCND0fJDiAFnhxG0qQcxoRpPIxr13+YUOqqwxRJTrz6qkKv4ESlchXqmMaMWKSHaZil24gNllpms/VMPQNOi3fW+saaPB91hW3Wmo4qlaJlKzRds8VkasLhVdtqCSXT+TG4JHNtu+DRFqtAi5guLCizAXe5wNBLFXc89OCZyXSY6DrvIfrT123uh2HLx/qqRqOwZfqTjVquFqVxbXuMbrVcTVFvXeZzYY/YHxGPILIrcARov/L0lo3uK5uumvAcar/Ks4KllFt1RpsBpVRaYnkErTU/kpPNWr4Wo3Gj8BRDu7j2MNvX38pSFd0FAA==) format('woff2'); } + Two ways into the MCP server built into Bytebase - HTTP clients connect straight to the MCP server in Bytebase. Stdio-only clients run the bytebase-mcp package, which forwards to the same server. Approval, access control, masking and audit happen in Bytebase, in front of the databases. - + HTTP clients connect straight to the MCP server in Bytebase. Stdio-only clients go through the Bytebase MCP package, which forwards to the same server. Approval, access control, masking and audit happen in Bytebase, in front of the databases. + Two ways into the MCP server built into Bytebase - - - Streamable HTTP + OAuth - stdio - HTTPS + OAuth - + - MCP CLIENTS - - - HTTP clients - Claude Code, Cursor, Codex, - VS Code, Gemini CLI - - - - Stdio-only clients - start a local command; - also MCP directories - + MCP CLIENTS + HTTP clients + Stdio-only clients - - - THIS PACKAGE - npx -y @bytebase/bytebase-mcp - BYTEBASE_URL=<external URL> - Forwards every call. Adds no logic. + + + THIS PACKAGE + Bytebase MCP + @bytebase/bytebase-mcp @@ -55,9 +39,8 @@ /mcp Approval flowAccess controlData maskingAudit logging - - + From 2560c332049350376854610eec3b4f9b4544650f Mon Sep 17 00:00:00 2001 From: Adela Date: Tue, 24 Nov 2026 18:36:07 +0100 Subject: [PATCH 07/15] README: say the package also works in HTTP-capable clients Co-Authored-By: Claude Fable 5.2 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 98941fc..f64ba16 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,8 @@ Most MCP clients do not. Bytebase already serves MCP over HTTP, so check how you | Only starts MCP servers as local commands | This package | | An MCP directory that lists servers by package | This package | +The package also works in clients that support HTTP. It reaches the same server, so use it there only when the direct connection is not an option. + ## What you can do Three examples of what an assistant can do through Bytebase. They are not the full list: the assistant can use every tool your instance serves, listed under [Tools](#tools). From eda051725b915bc1035eb6454e83f4e02a3a3892 Mon Sep 17 00:00:00 2001 From: Adela Date: Tue, 24 Nov 2026 18:37:53 +0100 Subject: [PATCH 08/15] README: group what you can do by database change, access control and 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 --- README.md | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index f64ba16..1acab62 100644 --- a/README.md +++ b/README.md @@ -30,35 +30,37 @@ The package also works in clients that support HTTP. It reaches the same server, ## What you can do -Three examples of what an assistant can do through Bytebase. They are not the full list: the assistant can use every tool your instance serves, listed under [Tools](#tools). +The assistant can use every tool your Bytebase instance serves. They fall into three areas: database change, access control, and configuration. The images below show two of them in action, and the table after them covers the rest. -### Query data without handing out a database password +### Database change -The assistant signs in as you, through Bytebase. It reaches the databases your account can reach, and the columns your project masks come back masked. +Describe the change in the chat. Bytebase turns it into a plan and an issue and runs the plan checks. Approval and rollout follow the project's policy, so nothing reaches the database unreviewed. -![You ask which customers signed up last week. The assistant calls query_database. Bytebase checks access, masks the email column, logs the query and returns the rows.](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/scenario-query.svg) +![You ask to add a phone column to the customer table. The assistant calls propose_database_change. Bytebase creates a plan and an issue, runs checks, and waits for approval before rollout.](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/scenario-change.svg) -### Send a change into review +### Access control -Describe the change in the chat. Bytebase turns it into a plan and an issue and runs the plan checks. Approval and rollout follow the project's policy. +The assistant signs in as you, through Bytebase, and never holds a database password. Two controls apply to what it reads. -![You ask to add a phone column to the customer table. The assistant calls propose_database_change. Bytebase creates a plan and an issue, runs checks, and waits for approval before rollout.](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/scenario-change.svg) +**Dynamic data masking.** It reaches the databases your account can reach, and the columns your project masks come back masked. -### Get access for a limited time +![You ask which customers signed up last week. The assistant calls query_database. Bytebase checks access, masks the email column, logs the query and returns the rows.](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/scenario-query.svg) -When the assistant needs to read something your account cannot, it requests a grant to run one read-only statement on one database. The grant ends on its own. +**Just-in-time access.** When it needs to read something your account cannot, it requests a grant to run one read-only statement on one database. The grant ends on its own. ![You ask to look at one order in production. The assistant calls request_access_grant. Bytebase grants access for a limited window, after which there is no access.](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/scenario-access.svg) The images illustrate the flow. What you see depends on your instance's policies. -### And more +### Everything it covers -A few of the other things the tools cover: +| Area | What the assistant can do | +| --- | --- | +| Database change | Propose schema and data changes. Approve or reject an issue at your approval step. Inspect a database's schema. Get the workflow files that set up GitOps for a project. | +| Access control | Query with masking applied. Request time-boxed access. Turn just-in-time access on or off for a project. Grant or revoke a member's masking exemption. | +| Configuration | Make a workspace administration change, which you confirm in your client first. Find and call any other Bytebase API operation. | -- **Review**: approve or reject an issue waiting at your approval step. -- **Set up GitOps**: get the workflow files that set up GitOps for a project. -- **Administer**: manage masking exemptions and just-in-time access for a project, or call any other Bytebase API operation. +The exact tools are listed under [Tools](#tools). ## Why go through Bytebase From 2c6f48d3461eb63f42cd2252f94e4aa3182c0daf Mon Sep 17 00:00:00 2001 From: Adela Date: Tue, 24 Nov 2026 18:38:03 +0100 Subject: [PATCH 09/15] README: do not promise review where the project's policy may not require it Co-Authored-By: Claude Fable 5.2 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1acab62..63da23b 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ The assistant can use every tool your Bytebase instance serves. They fall into t ### Database change -Describe the change in the chat. Bytebase turns it into a plan and an issue and runs the plan checks. Approval and rollout follow the project's policy, so nothing reaches the database unreviewed. +Describe the change in the chat. Bytebase turns it into a plan and an issue and runs the plan checks. Approval and rollout follow the project's policy, the same as a change raised in the console. ![You ask to add a phone column to the customer table. The assistant calls propose_database_change. Bytebase creates a plan and an issue, runs checks, and waits for approval before rollout.](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/scenario-change.svg) From b656c90cefd6f61001f72b2fb2f57108e5521eeb Mon Sep 17 00:00:00 2001 From: Adela Date: Tue, 24 Nov 2026 18:43:56 +0100 Subject: [PATCH 10/15] README: present direct HTTP and this package as two ways to connect 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 --- README.md | 23 ++++++++++++++--------- docs/images/architecture.svg | 10 +++++----- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 63da23b..a4e32c3 100644 --- a/README.md +++ b/README.md @@ -12,21 +12,26 @@ The official npm package for the MCP server built into [Bytebase](https://github.com/bytebase/bytebase), the open-source database governance platform. AI assistants query data, inspect schemas and propose database changes through your Bytebase instance, under its approvals, access control, data masking and audit logging. -![Two ways into the MCP server built into Bytebase: HTTP clients connect straight to it, stdio-only clients go through this package, and Bytebase applies approval, access control, masking and audit in front of your databases](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/architecture.svg) +![Two ways into the MCP server built into Bytebase: a client connects straight to it or runs this package locally, and Bytebase applies approval, access control, masking and audit in front of your databases](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/architecture.svg) The package contains no Bytebase logic. Once you sign in, it lists your instance's own tools and forwards every call to the instance, where permissions, the workspace MCP access policy, approvals and audit apply exactly as in the console. Nothing is stored locally except the OAuth token. -## Do you need this package? +## Two ways to connect -Most MCP clients do not. Bytebase already serves MCP over HTTP, so check how your client connects: +Bytebase serves MCP over HTTP at `/mcp`. A client can connect to it directly, or run this package on your machine and let it forward. Both reach the same server, with the same tools and the same permissions. -| Your MCP client | What to use | -| --- | --- | -| Connects to remote MCP servers over HTTP. Claude Code, Claude Desktop, Cursor, Codex, Copilot CLI, Gemini CLI and VS Code all do. | No package. Point the client at `/mcp`. See the [MCP integration docs](https://docs.bytebase.com/integrations/mcp). | -| Only starts MCP servers as local commands | This package | -| An MCP directory that lists servers by package | This package | +| | Connect directly | Use this package | +| --- | --- | --- | +| How | Add `/mcp` as a remote MCP server. See the [MCP integration docs](https://docs.bytebase.com/integrations/mcp). | Add the `npx` command under [Setup](#setup). | +| Works with | Clients that connect to remote MCP servers over HTTP. Claude Code, Claude Desktop, Cursor, Codex, Copilot CLI, Gemini CLI and VS Code all do. | Any client that can start an MCP server as a local command | +| On your machine | Nothing to install | Node.js, and a small local process that signs in through your browser | + +Connecting directly is the shorter path when it works. Use this package when: -The package also works in clients that support HTTP. It reaches the same server, so use it there only when the direct connection is not an option. +- **Your client only starts local MCP servers.** +- **Your Bytebase instance is on a private network.** Some clients connect to remote servers from the vendor's cloud, not from your machine, so an instance behind a VPN or firewall is out of their reach. Claude's custom connectors [work this way](https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp). This package runs on your machine and reaches whatever your machine can. +- **The client cannot complete the sign-in with your instance.** +- **You are installing from an MCP directory** that lists servers by package. ## What you can do diff --git a/docs/images/architecture.svg b/docs/images/architecture.svg index 2a30a97..017a6b9 100644 --- a/docs/images/architecture.svg +++ b/docs/images/architecture.svg @@ -1,12 +1,12 @@ Two ways into the MCP server built into Bytebase - HTTP clients connect straight to the MCP server in Bytebase. Stdio-only clients go through the Bytebase MCP package, which forwards to the same server. Approval, access control, masking and audit happen in Bytebase, in front of the databases. + A client can connect straight to the MCP server in Bytebase, or run the Bytebase MCP package locally, which forwards to the same server. Approval, access control, masking and audit happen in Bytebase, in front of the databases. Two ways into the MCP server built into Bytebase @@ -14,8 +14,8 @@ MCP CLIENTS - HTTP clients - Stdio-only clients + Connect directly + Run a local command From daa7ffd99c6f2dff53049e4a08484a8336e827b3 Mon Sep 17 00:00:00 2001 From: Adela Date: Tue, 24 Nov 2026 18:49:27 +0100 Subject: [PATCH 11/15] README: take the capability list from Bytebase's own MCP access policy 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 --- README.md | 47 ++++++++++++++++++++++++--------- docs/images/scenario-access.svg | 8 +++--- 2 files changed, 39 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index a4e32c3..455775a 100644 --- a/README.md +++ b/README.md @@ -35,11 +35,11 @@ Connecting directly is the shorter path when it works. Use this package when: ## What you can do -The assistant can use every tool your Bytebase instance serves. They fall into three areas: database change, access control, and configuration. The images below show two of them in action, and the table after them covers the rest. +Two things bound what the assistant can do: the MCP access policy an admin sets for the workspace (**Read-only** or **Read-write**), and your own Bytebase permissions. Below are three flows in pictures, then the full list. ### Database change -Describe the change in the chat. Bytebase turns it into a plan and an issue and runs the plan checks. Approval and rollout follow the project's policy, the same as a change raised in the console. +Describe the change in the chat. Bytebase turns it into a plan and an issue and runs the plan checks. The project's approval policy decides whether it needs approval, the same as a change raised in the console. Needs the Read-write policy. ![You ask to add a phone column to the customer table. The assistant calls propose_database_change. Bytebase creates a plan and an issue, runs checks, and waits for approval before rollout.](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/scenario-change.svg) @@ -51,21 +51,44 @@ The assistant signs in as you, through Bytebase, and never holds a database pass ![You ask which customers signed up last week. The assistant calls query_database. Bytebase checks access, masks the email column, logs the query and returns the rows.](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/scenario-query.svg) -**Just-in-time access.** When it needs to read something your account cannot, it requests a grant to run one read-only statement on one database. The grant ends on its own. +**Just-in-time access.** When it needs to read something your account cannot, it requests a time-boxed grant to run one specific read statement. The grant starts only once it is approved, and ends on its own. Needs the Read-write policy and a project that allows access grants. -![You ask to look at one order in production. The assistant calls request_access_grant. Bytebase grants access for a limited window, after which there is no access.](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/scenario-access.svg) +![You ask to look at one order in production. The assistant calls request_access_grant. Once the request is approved, Bytebase allows that statement for a limited window, after which there is no access.](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/scenario-access.svg) The images illustrate the flow. What you see depends on your instance's policies. -### Everything it covers +### The full list -| Area | What the assistant can do | +This is what each policy allows in Bytebase 3.25, in the product's own words. The MCP Integration page in your Bytebase console shows the list for your version. + +**Read-only allows** + +| Capability | Includes | | --- | --- | -| Database change | Propose schema and data changes. Approve or reject an issue at your approval step. Inspect a database's schema. Get the workflow files that set up GitOps for a project. | -| Access control | Query with masking applied. Request time-boxed access. Turn just-in-time access on or off for a project. Grant or revoke a member's masking exemption. | -| Configuration | Make a workspace administration change, which you confirm in your client first. Find and call any other Bytebase API operation. | +| Read schemas and metadata | Schemas, databases and instances, projects and database groups, changelogs, SQL review configs | +| Read data by running queries | Read-only queries, your own query history, saved queries you have access to | +| Read the change workflow | Issues and comments, plans and plan checks, rollouts and their logs, releases | +| Read members, roles and policies | Roles and groups, masking rules and exemptions, approval rules, access grants | + +**Read-write adds** + +| Capability | Includes | +| --- | --- | +| Propose changes | Create and edit plans and issues, run plan checks and reviews, generate schema diffs | +| Request access grants | A time-boxed grant to run a specific read statement, optionally with results unmasked or exported | +| Grant or revoke masking exemptions | For a database, a schema, a table or a column, with an optional expiry | +| Approve or reject issues | The approval rules and the project's self-approval setting apply, as in the console | +| Run rollouts and tasks | Create a rollout, then run, skip or cancel its tasks, under the project's approval policy | +| Run DML and DDL statements | Through queries, as far as the engine and your own permissions allow | +| Export query results | Export results as files | +| Administer the workspace | Add a PostgreSQL instance to a project, create a CI identity for GitOps, manage the approval rules for database changes, set masking rules | +| Housekeeping | Sync instances and databases, manage saved queries | + +Approvals, masking exemptions and administration changes are each confirmed in your MCP client before they are made. + +**Never, in any mode:** raise this policy, create a service account key, change a person's password, email or MFA, show a stored secret, open an Admin mode session, or read anyone else's query history. -The exact tools are listed under [Tools](#tools). +The tools behind these are listed under [Tools](#tools). ## Why go through Bytebase @@ -76,7 +99,7 @@ Bytebase sits between your users, people and AI agents alike, and your databases An assistant connected through this package works inside the same rules as everyone else on the instance: - **Change management**: a change the assistant proposes becomes a plan and an issue in Bytebase. Plan checks run on it, and approval and rollout follow the project's policy. -- **Access control**: the assistant acts as the account that signed in and can do only what that account can. Queries return data with the project's masking applied, and it can request time-boxed access instead of holding standing permissions. +- **Access control**: the assistant acts as the account that signed in and can do only what that account can. An admin sets the ceiling for every MCP session in the workspace: Disabled, Read-only or Read-write. Queries return data with the project's masking applied, and the assistant can request time-boxed access instead of holding standing permissions. - **Compliance**: what the assistant does is recorded in Bytebase's audit log, as it is for the console. Bytebase supports PostgreSQL, MySQL, SQL Server, Oracle, MongoDB and [more](https://docs.bytebase.com/introduction/supported-databases). @@ -157,7 +180,7 @@ Generated from Bytebase 3.25.0. | Connects to | Your Bytebase instance | Databases directly, with a connection string | | Needs Bytebase | Yes | No | | Sign-in | Your Bytebase account, through OAuth | Database credentials | -| Changes | Go through the project's review and approval | Run on the database directly; a read-only mode is available | +| Changes | Proposed as plans and issues under the project's approval policy. Direct writes only where the workspace policy and your permissions allow | Run on the database directly; a read-only mode is available | | Best for | Teams that govern database access and changes | Local development and lightweight read access | ## How it works diff --git a/docs/images/scenario-access.svg b/docs/images/scenario-access.svg index dfd3f7a..b63ab45 100644 --- a/docs/images/scenario-access.svg +++ b/docs/images/scenario-access.svg @@ -1,12 +1,12 @@ Request time-boxed access through Bytebase - The assistant calls request_access_grant. Bytebase grants permission to run one read-only statement for a limited time, after which access ends. + The assistant calls request_access_grant. Once the request is approved, Bytebase allows one read-only statement for a limited time, after which access ends. @@ -37,6 +37,6 @@ - One read-only statement, one databaseACCESS WINDOWrequestedgrantedexpiresno accessThe grant ends on its own. + One read-only statement, one databaseACCESS WINDOWrequestedapprovedexpiresno accessStarts once approved. Ends on its own. From 0292a1694cacc24b5d3856e51f0651642a272cfa Mon Sep 17 00:00:00 2001 From: Adela Date: Tue, 24 Nov 2026 18:58:58 +0100 Subject: [PATCH 12/15] README: the private-network case applies only to clients that connect from the cloud Co-Authored-By: Claude Fable 5.2 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 455775a..1994d14 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Bytebase serves MCP over HTTP at `/mcp`. A client can connect Connecting directly is the shorter path when it works. Use this package when: - **Your client only starts local MCP servers.** -- **Your Bytebase instance is on a private network.** Some clients connect to remote servers from the vendor's cloud, not from your machine, so an instance behind a VPN or firewall is out of their reach. Claude's custom connectors [work this way](https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp). This package runs on your machine and reaches whatever your machine can. +- **Your instance is on a private network, or on your own machine, and your client connects from the cloud.** A client that connects from your machine, such as Claude Code, reaches a local or private instance directly and does not need this. Claude Desktop and claude.ai do not: their custom connectors [connect from Anthropic's cloud](https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp), so an instance on `localhost` or behind a VPN or firewall is out of their reach. This package runs on your machine and reaches whatever your machine can. - **The client cannot complete the sign-in with your instance.** - **You are installing from an MCP directory** that lists servers by package. From a2a0caea550721c5d0ad536dfc6ba6ae9b9b0c34 Mon Sep 17 00:00:00 2001 From: Adela Date: Tue, 24 Nov 2026 19:01:11 +0100 Subject: [PATCH 13/15] README: state the bounds on queries and say the list is condensed Co-Authored-By: Claude Fable 5.2 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1994d14..403d07a 100644 --- a/README.md +++ b/README.md @@ -59,14 +59,14 @@ The images illustrate the flow. What you see depends on your instance's policies ### The full list -This is what each policy allows in Bytebase 3.25, in the product's own words. The MCP Integration page in your Bytebase console shows the list for your version. +This is what each policy allows in Bytebase 3.25, condensed from the list the console shows. The MCP Integration page in your Bytebase console shows the list for your version. **Read-only allows** | Capability | Includes | | --- | --- | | Read schemas and metadata | Schemas, databases and instances, projects and database groups, changelogs, SQL review configs | -| Read data by running queries | Read-only queries, your own query history, saved queries you have access to | +| Read data by running queries | Read-only queries, as far as the engine can show a statement is a read. Your own query history, saved queries you have access to | | Read the change workflow | Issues and comments, plans and plan checks, rollouts and their logs, releases | | Read members, roles and policies | Roles and groups, masking rules and exemptions, approval rules, access grants | @@ -79,7 +79,7 @@ This is what each policy allows in Bytebase 3.25, in the product's own words. Th | Grant or revoke masking exemptions | For a database, a schema, a table or a column, with an optional expiry | | Approve or reject issues | The approval rules and the project's self-approval setting apply, as in the console | | Run rollouts and tasks | Create a rollout, then run, skip or cancel its tasks, under the project's approval policy | -| Run DML and DDL statements | Through queries, as far as the engine and your own permissions allow | +| Run DML and DDL statements | Through queries, as far as the engine and your own permissions allow. Where your client supports confirmations, a statement that is not a read runs only after you confirm it | | Export query results | Export results as files | | Administer the workspace | Add a PostgreSQL instance to a project, create a CI identity for GitOps, manage the approval rules for database changes, set masking rules | | Housekeeping | Sync instances and databases, manage saved queries | From 318c69451223295e71cd4aedf7d7a4aef100664f Mon Sep 17 00:00:00 2001 From: Adela Date: Tue, 24 Nov 2026 19:05:10 +0100 Subject: [PATCH 14/15] README: cut the scenario images and repeated sections 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 --- README.md | 92 ++++++++------------------------- docs/images/scenario-access.svg | 42 --------------- docs/images/scenario-change.svg | 42 --------------- docs/images/scenario-query.svg | 42 --------------- 4 files changed, 22 insertions(+), 196 deletions(-) delete mode 100644 docs/images/scenario-access.svg delete mode 100644 docs/images/scenario-change.svg delete mode 100644 docs/images/scenario-query.svg diff --git a/README.md b/README.md index 403d07a..ea9ace4 100644 --- a/README.md +++ b/README.md @@ -29,78 +29,40 @@ Bytebase serves MCP over HTTP at `/mcp`. A client can connect Connecting directly is the shorter path when it works. Use this package when: - **Your client only starts local MCP servers.** -- **Your instance is on a private network, or on your own machine, and your client connects from the cloud.** A client that connects from your machine, such as Claude Code, reaches a local or private instance directly and does not need this. Claude Desktop and claude.ai do not: their custom connectors [connect from Anthropic's cloud](https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp), so an instance on `localhost` or behind a VPN or firewall is out of their reach. This package runs on your machine and reaches whatever your machine can. +- **Your client connects from the cloud and your instance is private.** Claude Desktop and claude.ai reach remote servers [from Anthropic's cloud](https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp), so an instance on `localhost` or behind a VPN or firewall is out of their reach. A client that connects from your machine, such as Claude Code, does not have this limit. - **The client cannot complete the sign-in with your instance.** - **You are installing from an MCP directory** that lists servers by package. ## What you can do -Two things bound what the assistant can do: the MCP access policy an admin sets for the workspace (**Read-only** or **Read-write**), and your own Bytebase permissions. Below are three flows in pictures, then the full list. +Two things bound what the assistant can do: the MCP access policy an admin sets for the workspace, and your own Bytebase permissions. This is what each policy allows in Bytebase 3.25, condensed from the list the console shows on its MCP Integration page. -### Database change - -Describe the change in the chat. Bytebase turns it into a plan and an issue and runs the plan checks. The project's approval policy decides whether it needs approval, the same as a change raised in the console. Needs the Read-write policy. - -![You ask to add a phone column to the customer table. The assistant calls propose_database_change. Bytebase creates a plan and an issue, runs checks, and waits for approval before rollout.](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/scenario-change.svg) - -### Access control - -The assistant signs in as you, through Bytebase, and never holds a database password. Two controls apply to what it reads. - -**Dynamic data masking.** It reaches the databases your account can reach, and the columns your project masks come back masked. - -![You ask which customers signed up last week. The assistant calls query_database. Bytebase checks access, masks the email column, logs the query and returns the rows.](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/scenario-query.svg) - -**Just-in-time access.** When it needs to read something your account cannot, it requests a time-boxed grant to run one specific read statement. The grant starts only once it is approved, and ends on its own. Needs the Read-write policy and a project that allows access grants. - -![You ask to look at one order in production. The assistant calls request_access_grant. Once the request is approved, Bytebase allows that statement for a limited window, after which there is no access.](https://raw.githubusercontent.com/bytebase/bytebase-mcp/main/docs/images/scenario-access.svg) - -The images illustrate the flow. What you see depends on your instance's policies. - -### The full list - -This is what each policy allows in Bytebase 3.25, condensed from the list the console shows. The MCP Integration page in your Bytebase console shows the list for your version. - -**Read-only allows** - -| Capability | Includes | -| --- | --- | -| Read schemas and metadata | Schemas, databases and instances, projects and database groups, changelogs, SQL review configs | -| Read data by running queries | Read-only queries, as far as the engine can show a statement is a read. Your own query history, saved queries you have access to | -| Read the change workflow | Issues and comments, plans and plan checks, rollouts and their logs, releases | -| Read members, roles and policies | Roles and groups, masking rules and exemptions, approval rules, access grants | - -**Read-write adds** - -| Capability | Includes | -| --- | --- | -| Propose changes | Create and edit plans and issues, run plan checks and reviews, generate schema diffs | -| Request access grants | A time-boxed grant to run a specific read statement, optionally with results unmasked or exported | -| Grant or revoke masking exemptions | For a database, a schema, a table or a column, with an optional expiry | -| Approve or reject issues | The approval rules and the project's self-approval setting apply, as in the console | -| Run rollouts and tasks | Create a rollout, then run, skip or cancel its tasks, under the project's approval policy | -| Run DML and DDL statements | Through queries, as far as the engine and your own permissions allow. Where your client supports confirmations, a statement that is not a read runs only after you confirm it | -| Export query results | Export results as files | -| Administer the workspace | Add a PostgreSQL instance to a project, create a CI identity for GitOps, manage the approval rules for database changes, set masking rules | -| Housekeeping | Sync instances and databases, manage saved queries | - -Approvals, masking exemptions and administration changes are each confirmed in your MCP client before they are made. +| Policy | Capability | Includes | +| --- | --- | --- | +| Read-only | Read schemas and metadata | Schemas, databases and instances, projects, changelogs, SQL review configs | +| Read-only | Read data by running queries | Read-only queries, as far as the engine can show a statement is a read. Masked columns come back masked | +| Read-only | Read the change workflow | Issues, plans and plan checks, rollouts and their logs, releases | +| Read-only | Read members, roles and policies | Roles and groups, masking rules and exemptions, approval rules, access grants | +| Read-write | Propose changes | Create plans and issues and run plan checks. The project's approval policy decides whether a change needs approval | +| Read-write | Request just-in-time access | A time-boxed grant to run one specific read statement. It starts only once approved, and ends on its own | +| Read-write | Grant or revoke masking exemptions | For a database, a schema, a table or a column, with an optional expiry | +| Read-write | Approve or reject issues | The approval rules and the project's self-approval setting apply, as in the console | +| Read-write | Run rollouts and tasks | Create a rollout, then run, skip or cancel its tasks, under the project's approval policy | +| Read-write | Run DML and DDL statements | Through queries, as far as the engine and your own permissions allow. Where your client supports confirmations, you confirm each one first | +| Read-write | Export query results | Export results as files | +| Read-write | Administer the workspace | Add a PostgreSQL instance to a project, create a CI identity for GitOps, manage approval rules for database changes, set masking rules | + +Read-write includes everything under Read-only. Approvals, masking exemptions and administration changes are each confirmed in your MCP client before they are made. **Never, in any mode:** raise this policy, create a service account key, change a person's password, email or MFA, show a stored secret, open an Admin mode session, or read anyone else's query history. -The tools behind these are listed under [Tools](#tools). - ## Why go through Bytebase -Bytebase sits between your users, people and AI agents alike, and your databases. - -![Bytebase as one control plane between people, AI agents and applications on one side and your databases on the other](https://raw.githubusercontent.com/bytebase/bytebase/main/docs/assets/middleware.svg) - -An assistant connected through this package works inside the same rules as everyone else on the instance: +The assistant works inside the same rules as everyone else on the instance: -- **Change management**: a change the assistant proposes becomes a plan and an issue in Bytebase. Plan checks run on it, and approval and rollout follow the project's policy. -- **Access control**: the assistant acts as the account that signed in and can do only what that account can. An admin sets the ceiling for every MCP session in the workspace: Disabled, Read-only or Read-write. Queries return data with the project's masking applied, and the assistant can request time-boxed access instead of holding standing permissions. -- **Compliance**: what the assistant does is recorded in Bytebase's audit log, as it is for the console. +- **Change management**: a change it proposes becomes a plan and an issue, with plan checks, approval and rollout under the project's policy. +- **Access control**: it signs in as you and never holds a database password. It can do only what your account can, masked data stays masked, and it requests time-boxed access instead of holding standing permissions. +- **Compliance**: what it does is recorded in Bytebase's audit log. Bytebase supports PostgreSQL, MySQL, SQL Server, Oracle, MongoDB and [more](https://docs.bytebase.com/introduction/supported-databases). @@ -173,16 +135,6 @@ Generated from Bytebase 3.25.0. | `set_just_in_time_access` | Turn just-in-time access on or off for one Bytebase project. | -## Bytebase MCP or DBHub? - -| | Bytebase MCP | [DBHub](https://github.com/bytebase/dbhub) | -| --- | --- | --- | -| Connects to | Your Bytebase instance | Databases directly, with a connection string | -| Needs Bytebase | Yes | No | -| Sign-in | Your Bytebase account, through OAuth | Database credentials | -| Changes | Proposed as plans and issues under the project's approval policy. Direct writes only where the workspace policy and your permissions allow | Run on the database directly; a read-only mode is available | -| Best for | Teams that govern database access and changes | Local development and lightweight read access | - ## How it works 1. With `BYTEBASE_URL` set, the server answers `initialize` at once. If you have signed in before, it opens a session first and passes on your instance's own instructions; otherwise it starts the browser sign-in, and announces your instance's tools with `tools/list_changed` once you have signed in. diff --git a/docs/images/scenario-access.svg b/docs/images/scenario-access.svg deleted file mode 100644 index b63ab45..0000000 --- a/docs/images/scenario-access.svg +++ /dev/null @@ -1,42 +0,0 @@ - - - - - Request time-boxed access through Bytebase - The assistant calls request_access_grant. Once the request is approved, Bytebase allows one read-only statement for a limited time, after which access ends. - - - - - - - YOU ASK - - - I need to look at order 1042in production. - - - - - THE ASSISTANT CALLS - - request_access_grant - SELECT * FROM ordersWHERE id = 1042; - - Sent to your Bytebase, as your account - - - - - - - - - - - One read-only statement, one databaseACCESS WINDOWrequestedapprovedexpiresno accessStarts once approved. Ends on its own. - - diff --git a/docs/images/scenario-change.svg b/docs/images/scenario-change.svg deleted file mode 100644 index fbef49f..0000000 --- a/docs/images/scenario-change.svg +++ /dev/null @@ -1,42 +0,0 @@ - - - - - Propose a database change through Bytebase - The assistant calls propose_database_change. Bytebase creates a plan and an issue, runs plan checks, and waits for approval before rollout. - - - - - - - YOU ASK - - - Add a phone column to thecustomer table. - - - - - THE ASSISTANT CALLS - - propose_database_change - ALTER TABLE customer ADD COLUMN phone TEXT; - - Sent to your Bytebase, as your account - - - - - - - - - - - Issue: Add phone to customerPlancreatedChecksrunApprovalwaitingRolloutnextApproval and rollout follow the project's policy. - - diff --git a/docs/images/scenario-query.svg b/docs/images/scenario-query.svg deleted file mode 100644 index 902e213..0000000 --- a/docs/images/scenario-query.svg +++ /dev/null @@ -1,42 +0,0 @@ - - - - - Query data through Bytebase - The assistant calls query_database. Bytebase checks access, masks the email column, records the query, and returns the rows. - - - - - - - YOU ASK - - - Which customers signed uplast week? - - - - - THE ASSISTANT CALLS - - query_database - SELECT name, email, created_atFROM customerWHERE created_at > now() - interval '7 days' - - Sent to your Bytebase, as your account - - - - - - - - - - - access checkedemail maskedaudit loggednameemailcreated_atAda Park******2026-11-17Li Wei******2026-11-19 - - From ac79ecf88abbd56e08d548547e3fbb478c79214a Mon Sep 17 00:00:00 2001 From: Adela Date: Tue, 24 Nov 2026 19:12:54 +0100 Subject: [PATCH 15/15] README: shorten the new sections to two short lists Co-Authored-By: Claude Fable 5.2 --- README.md | 53 +++++++++++------------------------------------------ 1 file changed, 11 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index ea9ace4..327c64c 100644 --- a/README.md +++ b/README.md @@ -16,55 +16,24 @@ The official npm package for the MCP server built into [Bytebase](https://github The package contains no Bytebase logic. Once you sign in, it lists your instance's own tools and forwards every call to the instance, where permissions, the workspace MCP access policy, approvals and audit apply exactly as in the console. Nothing is stored locally except the OAuth token. -## Two ways to connect +## When to use this package -Bytebase serves MCP over HTTP at `/mcp`. A client can connect to it directly, or run this package on your machine and let it forward. Both reach the same server, with the same tools and the same permissions. +Bytebase serves MCP over HTTP at `/mcp`, and a client that can connect to it directly needs nothing installed. See the [MCP integration docs](https://docs.bytebase.com/integrations/mcp). This package is for the other cases: -| | Connect directly | Use this package | -| --- | --- | --- | -| How | Add `/mcp` as a remote MCP server. See the [MCP integration docs](https://docs.bytebase.com/integrations/mcp). | Add the `npx` command under [Setup](#setup). | -| Works with | Clients that connect to remote MCP servers over HTTP. Claude Code, Claude Desktop, Cursor, Codex, Copilot CLI, Gemini CLI and VS Code all do. | Any client that can start an MCP server as a local command | -| On your machine | Nothing to install | Node.js, and a small local process that signs in through your browser | - -Connecting directly is the shorter path when it works. Use this package when: - -- **Your client only starts local MCP servers.** -- **Your client connects from the cloud and your instance is private.** Claude Desktop and claude.ai reach remote servers [from Anthropic's cloud](https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp), so an instance on `localhost` or behind a VPN or firewall is out of their reach. A client that connects from your machine, such as Claude Code, does not have this limit. -- **The client cannot complete the sign-in with your instance.** -- **You are installing from an MCP directory** that lists servers by package. +- Your client only starts MCP servers as local commands. +- Your client connects from the cloud and your instance is private. Claude Desktop and claude.ai reach remote servers [from Anthropic's cloud](https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp), so they cannot reach an instance on `localhost` or behind a VPN. +- You are installing from an MCP directory. ## What you can do -Two things bound what the assistant can do: the MCP access policy an admin sets for the workspace, and your own Bytebase permissions. This is what each policy allows in Bytebase 3.25, condensed from the list the console shows on its MCP Integration page. - -| Policy | Capability | Includes | -| --- | --- | --- | -| Read-only | Read schemas and metadata | Schemas, databases and instances, projects, changelogs, SQL review configs | -| Read-only | Read data by running queries | Read-only queries, as far as the engine can show a statement is a read. Masked columns come back masked | -| Read-only | Read the change workflow | Issues, plans and plan checks, rollouts and their logs, releases | -| Read-only | Read members, roles and policies | Roles and groups, masking rules and exemptions, approval rules, access grants | -| Read-write | Propose changes | Create plans and issues and run plan checks. The project's approval policy decides whether a change needs approval | -| Read-write | Request just-in-time access | A time-boxed grant to run one specific read statement. It starts only once approved, and ends on its own | -| Read-write | Grant or revoke masking exemptions | For a database, a schema, a table or a column, with an optional expiry | -| Read-write | Approve or reject issues | The approval rules and the project's self-approval setting apply, as in the console | -| Read-write | Run rollouts and tasks | Create a rollout, then run, skip or cancel its tasks, under the project's approval policy | -| Read-write | Run DML and DDL statements | Through queries, as far as the engine and your own permissions allow. Where your client supports confirmations, you confirm each one first | -| Read-write | Export query results | Export results as files | -| Read-write | Administer the workspace | Add a PostgreSQL instance to a project, create a CI identity for GitOps, manage approval rules for database changes, set masking rules | - -Read-write includes everything under Read-only. Approvals, masking exemptions and administration changes are each confirmed in your MCP client before they are made. - -**Never, in any mode:** raise this policy, create a service account key, change a person's password, email or MFA, show a stored secret, open an Admin mode session, or read anyone else's query history. - -## Why go through Bytebase - -The assistant works inside the same rules as everyone else on the instance: +- **Query and explore**: read schemas and run queries. Columns your project masks come back masked. +- **Change databases**: propose a change in the chat. It becomes a plan and an issue under the project's approval policy. +- **Get just-in-time access**: request a time-boxed grant to run one read statement. It starts once approved and ends on its own. +- **Review and administer**: approve issues, manage masking exemptions and rules, set approval rules. You confirm each one in your client first. -- **Change management**: a change it proposes becomes a plan and an issue, with plan checks, approval and rollout under the project's policy. -- **Access control**: it signs in as you and never holds a database password. It can do only what your account can, masked data stays masked, and it requests time-boxed access instead of holding standing permissions. -- **Compliance**: what it does is recorded in Bytebase's audit log. +An admin sets the ceiling for the workspace, Read-only or Read-write, and the assistant can do only what your own account can. Everything it does is recorded in Bytebase's audit log. -Bytebase supports PostgreSQL, MySQL, SQL Server, Oracle, MongoDB and [more](https://docs.bytebase.com/introduction/supported-databases). +These are examples, not the full list. The tools your instance serves are under [Tools](#tools). ## Requirements