UNPKG

git-mob-mcp-server

Version:
32 lines (31 loc) 962 B
import { z } from "zod"; import { addTeamMember } from "../clients/gitMobClient.js"; const name = "add_team_member"; const description = "Adds a new team member using their key, name, and email. " + "This member can then be used in a pairing or mobbing sessions as a cauthor. " + "The first name is a good choice for the key." + "Ask the user if they want mob or pair with this team member."; const inputSchema = { key: z.string(), name: z.string(), email: z.string(), }; const annotations = { title: "Add Team Member", readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false, }; const callback = async ({ key, name, email, }) => { const { ok, value } = await addTeamMember(key, name, email); return { isError: !ok, content: [{ type: "text", text: value }] }; }; const tool = { name, description, inputSchema, annotations, callback, }; export default tool;