verifyVendorHandler (modules/vendor.tools.ts)

nitrostack · sample-apps/seizure-monitor/SentinelPay-AI/src/modules/vendor.tools.ts · typescript · Apache-2.0
ai, tag:embed-classified

MCP tool to verify vendor identity and return canonical beneficiary account details.

// Source: https://github.com/nitrocloudofficial/nitrostack | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * SentinelPay AI — `verifyVendor` MCP Tool
 * Source: Technical Specification §5.3
 */

import { parseVerifyVendorInput } from "../domain/schemas.js";
import { vendorService } from "../services/vendor.service.js";
import { runTool, type ToolInvocationContext } from "./tool-runtime.js";

export const VERIFY_VENDOR_TOOL_NAME = "verifyVendor" as const;

export function verifyVendorHandler(rawInput: unknown, ctx: ToolInvocationContext) {
  return runTool(
    VERIFY_VENDOR_TOOL_NAME,
    ctx,
    rawInput,
    () => parseVerifyVendorInput(rawInput),
    (input) => vendorSer

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key