git-mob-mcp-server
Version:
MCP Server for git-mob CLI app
29 lines (28 loc) • 864 B
JavaScript
import { z } from "zod";
import { getHelp } from "../clients/gitMobClient.js";
const name = "get_git_mob_cli_help";
const description = "Displays general help and usage information for the Git Mob CLI. " +
"You can optionally provide a command ('setup', 'coauthor', or 'help') " +
"to get detailed help for that specific command.";
const inputSchema = {
command: z.enum(["setup", "coauthor", "help"]).optional(),
};
const annotations = {
title: "Git Mob Help",
readOnlyHint: true,
destructiveHint: false,
idempotentHint: true,
openWorldHint: false,
};
const callback = async ({ command }) => {
const { ok, value } = await getHelp(command);
return { isError: !ok, content: [{ type: "text", text: value }] };
};
const tool = {
name,
description,
inputSchema,
annotations,
callback,
};
export default tool;