Skip to main content
Glama
onesmartguy

Agentic Bits Claude Plugin

by onesmartguy

list_repos

Display configured repositories with their label, path, type, and visibility status to help users manage git repository tracking.

Instructions

List all configured repos with their label, path, type, and visibility.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler logic for the "list_repos" tool, which loads the config and returns a formatted list of repositories.
    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") }] };
    }
  • Registration of the "list_repos" tool within the McpServer instance.
    server.tool(
      "list_repos",
      "List all configured repos with their label, path, type, and visibility.",
      {},

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/onesmartguy/agentic-bits-claude-plugin'

If you have feedback or need assistance with the MCP directory API, please join our Discord server