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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_repos"
}
}Input 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") }] }; } );