list_repos
Display all tracked repositories with their label, path, type, and visibility status to monitor multiple git projects simultaneously.
Instructions
List all configured repos with their label, path, type, and visibility.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/config-tools.ts:9-29 (handler)Implementation of the list_repos tool handler.
server.tool( "list_repos", "List all configured repos with their label, path, type, and visibility.", {}, async () => { const config = loadConfig(); if (config.repos.length === 0) { return { content: [{ type: "text", text: "No repos configured. Use add_repo to add one." }] }; } const lines = config.repos.map((r) => { const vis = r.show ? "visible" : "hidden"; return `[${vis}] ${r.label} (${r.type})\n path: ${r.path}`; }); const header = [ `Status bar: ${config.statusbar.enabled ? "ON" : "OFF"}`, `Show reference repos: ${config.statusbar.showReferenceRepos ? "yes" : "no"}`, "", ].join("\n"); return { content: [{ type: "text", text: header + lines.join("\n\n") }] }; } );