set_repo_visibility
Control repository visibility in the status bar by showing or hiding specific repositories using their labels.
Instructions
Show or hide a specific repo in the status bar by its label.
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": {
"label": "<label>",
"show": "<show>"
},
"name": "set_repo_visibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Repo label | |
| show | Yes | true = show in status bar, false = hide |
Implementation Reference
- src/tools/config-tools.ts:74-92 (handler)The implementation of the `set_repo_visibility` tool, which updates the `show` property of a repository in the configuration and saves the changes.
// --- set_repo_visibility --- server.tool( "set_repo_visibility", "Show or hide a specific repo in the status bar by its label.", { label: z.string().describe("Repo label"), show: z.boolean().describe("true = show in status bar, false = hide"), }, async ({ label, show }) => { const config = loadConfig(); const repo = config.repos.find((r) => r.label === label); if (!repo) { return { content: [{ type: "text", text: `No repo found with label "${label}".` }] }; } repo.show = show; saveConfig(config); return { content: [{ type: "text", text: `${label}: now ${show ? "visible" : "hidden"} in status bar.` }] }; } );