@rockship/apollo-io-mcp
Version:
A powerful Model Context Protocol (MCP) server implementation for seamless Apollo.io API integration, enabling AI assistants to interact with Apollo.io data
26 lines • 988 B
JavaScript
import { z } from "zod";
import { ErrorHandlerService } from "../services/error-handler.service.js";
export class EmployeesOfCompanyTool {
apolloClient;
name = "employees_of_company";
title = "Employees of Company Search";
description = "Find employees of a company using company name or website/LinkedIn URL";
schema = {
company: z.string().describe("Company name"),
website_url: z.string().describe("Company website URL").optional(),
linkedin_url: z.string().describe("Company LinkedIn URL").optional(),
};
constructor(apolloClient) {
this.apolloClient = apolloClient;
}
async handler(args) {
try {
const data = await this.apolloClient.employeesOfCompany(args);
return ErrorHandlerService.createSuccessResponse(data);
}
catch (error) {
return ErrorHandlerService.handleToolError(error);
}
}
}
//# sourceMappingURL=employees-of-company.tool.js.map