UNPKG

@vantasdk/vanta-mcp-server

Version:

Model Context Protocol server for Vanta's security compliance platform

28 lines (27 loc) 1.35 kB
// 1. Imports import { z, createConsolidatedSchema, makeConsolidatedRequest, } from "./common/imports.js"; // 2. Input Schemas const PeopleInput = createConsolidatedSchema({ paramName: "personId", description: "Person ID to retrieve, e.g. 'person-123' or specific person identifier. If provided, returns the specific person, and no other parameters may be provided. If omitted, lists all people with optional filtering and pagination. ", resourceName: "person", }, { taskStatusMatchesAny: z .array(z.string()) .describe("Filter people by task status. Possible values: COMPLETED (Task is completed), IN_PROGRESS (Task is in progress), FAILED (Task failed), NOT_STARTED (Task is not started)") .optional(), }); // 3. Tool Definitions export const PeopleTool = { name: "people", description: "Access people in your Vanta account. Provide personId to get a specific person, or omit to list all people. Returns person IDs, names, email addresses, and organizational information for identity and access management.", parameters: PeopleInput, }; // 4. Implementation Functions export async function people(args) { return makeConsolidatedRequest("/v1/people", args, "personId"); } // Registry export for automated tool registration export default { tools: [{ tool: PeopleTool, handler: people }], };