toggle_reference_repos
Control visibility of reference repositories in the status bar to focus on active repositories or include reference materials as needed.
Instructions
Show or hide repos marked as type 'reference' in the status bar.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| show | Yes | true = include reference repos, false = active repos only |
Implementation Reference
- src/tools/config-tools.ts:108-118 (handler)The handler for the 'toggle_reference_repos' tool, which updates the configuration and saves it.
server.tool( "toggle_reference_repos", "Show or hide repos marked as type 'reference' in the status bar.", { show: z.boolean().describe("true = include reference repos, false = active repos only") }, async ({ show }) => { const config = loadConfig(); config.statusbar.showReferenceRepos = show; saveConfig(config); return { content: [{ type: "text", text: `Reference repos: ${show ? "shown" : "hidden"} in status bar.` }] }; } ); - src/tools/config-tools.ts:108-118 (registration)Registration of the 'toggle_reference_repos' tool within the McpServer instance.
server.tool( "toggle_reference_repos", "Show or hide repos marked as type 'reference' in the status bar.", { show: z.boolean().describe("true = include reference repos, false = active repos only") }, async ({ show }) => { const config = loadConfig(); config.statusbar.showReferenceRepos = show; saveConfig(config); return { content: [{ type: "text", text: `Reference repos: ${show ? "shown" : "hidden"} in status bar.` }] }; } );