UNPKG

git-mob-mcp-server

Version:
29 lines (28 loc) 851 B
import { z } from "zod"; import { deleteTeamMember } from "../clients/gitMobClient.js"; const name = "delete_team_member"; const description = "Deletes a team member by their key. " + "User can only delete a team member they have added previously. " + "If user did not specify a key, show them list of existing team members and ask them to select one."; const inputSchema = { key: z.string(), }; const annotations = { title: "Delete Team Member", readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: false, }; const callback = async ({ key }) => { const { ok, value } = await deleteTeamMember(key); return { isError: !ok, content: [{ type: "text", text: value }] }; }; const tool = { name, description, inputSchema, annotations, callback, }; export default tool;