set_just_in_time_access
Enable or disable just-in-time access for a Bytebase project so members can request time-boxed, one-off query permissions. Shows a confirmation form and applies the change only after you accept.
Instructions
Turn just-in-time access on or off for one Bytebase project. The user confirms the change in this client first.
Parameter | Required | Description |
project | Yes | Project name, e.g. "projects/hr" |
enabled | Yes | true to turn it on, false to turn it off |
Just-in-time access lets members request access grants in the project: time-boxed permission to run one statement, for a one-off query. With it off, new requests are refused, and active grants stop applying until it is turned on again; they are not revoked.
The tool shows the user the change and asks them to confirm in a form. It changes the setting only when they accept; declining or cancelling changes nothing. A client that cannot show the form gets the project's settings link, to change it in the Bytebase console instead. Do not ask in chat first: the form is the question.
Changing it needs bb.projects.update, as in the console. This is the only way to change it over MCP; call_api refuses ProjectService/UpdateProject.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>",
"enabled": "<enabled>"
},
"name": "set_just_in_time_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | ||
| project | Yes |