UNPKG

privco-data-mcp

Version:

This package provides MCP (Multi-Channel Protocol) handlers for accessing PrivCo's data services.

41 lines (40 loc) 1.23 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.searchApiConfig = void 0; const axios_1 = __importDefault(require("axios")); const zod_1 = require("zod"); const searchApiConfig = { name: "search", title: "Company and Investor Search", description: "Search for companies and investors by name or/and website", inputSchema: { name: zod_1.z.string().optional(), website: zod_1.z.string().optional(), }, handler: async (name, website) => { try { const response = await axios_1.default.request({ url: `https://api-staging.privco.com/v3/search`, params: { name, website, }, method: "GET", }); return { success: true, data: response.data, }; } catch (error) { return { success: false, error, }; } }, }; exports.searchApiConfig = searchApiConfig;