UNPKG

@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

64 lines 3.68 kB
import { EmployeesOfCompanyTool } from "../tools/employees-of-company.tool.js"; import { GetPersonEmailTool } from "../tools/get-person-email.tool.js"; import { OrganizationEnrichmentTool } from "../tools/organization-enrichment.tool.js"; import { OrganizationJobPostingsTool } from "../tools/organization-job-postings.tool.js"; import { OrganizationSearchTool } from "../tools/organization-search.tool.js"; import { PeopleEnrichmentTool } from "../tools/people-enrichment.tool.js"; import { PeopleSearchTool } from "../tools/people-search.tool.js"; export class ToolFactory { static registerAllTools(server, apolloClient) { const peopleEnrichmentTool = new PeopleEnrichmentTool(apolloClient); server.registerTool(peopleEnrichmentTool.name, { title: peopleEnrichmentTool.title, description: peopleEnrichmentTool.description, inputSchema: peopleEnrichmentTool.schema, }, async (args) => peopleEnrichmentTool.handler(args)); const organizationEnrichmentTool = new OrganizationEnrichmentTool(apolloClient); server.registerTool(organizationEnrichmentTool.name, { title: organizationEnrichmentTool.title, description: organizationEnrichmentTool.description, inputSchema: organizationEnrichmentTool.schema, }, async (args) => organizationEnrichmentTool.handler(args)); const peopleSearchTool = new PeopleSearchTool(apolloClient); server.registerTool(peopleSearchTool.name, { title: peopleSearchTool.title, description: peopleSearchTool.description, inputSchema: peopleSearchTool.schema, }, async (args) => peopleSearchTool.handler(args)); const organizationSearchTool = new OrganizationSearchTool(apolloClient); server.registerTool(organizationSearchTool.name, { title: organizationSearchTool.title, description: organizationSearchTool.description, inputSchema: organizationSearchTool.schema, }, async (args) => organizationSearchTool.handler(args)); const organizationJobPostingsTool = new OrganizationJobPostingsTool(apolloClient); server.registerTool(organizationJobPostingsTool.name, { title: organizationJobPostingsTool.title, description: organizationJobPostingsTool.description, inputSchema: organizationJobPostingsTool.schema, }, async (args) => organizationJobPostingsTool.handler(args)); const getPersonEmailTool = new GetPersonEmailTool(apolloClient); server.registerTool(getPersonEmailTool.name, { title: getPersonEmailTool.title, description: getPersonEmailTool.description, inputSchema: getPersonEmailTool.schema, }, async (args) => getPersonEmailTool.handler(args)); const employeesOfCompanyTool = new EmployeesOfCompanyTool(apolloClient); server.registerTool(employeesOfCompanyTool.name, { title: employeesOfCompanyTool.title, description: employeesOfCompanyTool.description, inputSchema: employeesOfCompanyTool.schema, }, async (args) => employeesOfCompanyTool.handler(args)); // const contactsSearchTool = new ContactsSearchTool(apolloClient); // server.registerTool( // contactsSearchTool.name, // { // title: contactsSearchTool.title, // description: contactsSearchTool.description, // inputSchema: contactsSearchTool.schema, // }, // async (args) => contactsSearchTool.handler(args) // ); } } //# sourceMappingURL=tool.factory.js.map