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

31 lines (30 loc) 726 B
import { z } from "zod"; export interface ToolDefinition { name: string; title: string; description: string; schema: z.ZodRawShape; handler: (args: any) => Promise<ToolResponse>; } export interface ToolResponse { [x: string]: unknown; content: Array<{ [x: string]: unknown; type: "text"; text: string; _meta?: { [x: string]: unknown; } | undefined; }>; _meta?: { [x: string]: unknown; } | undefined; structuredContent?: { [x: string]: unknown; } | undefined; isError?: boolean | undefined; } export interface ToolRegistry { registerTool(tool: ToolDefinition): void; getTools(): ToolDefinition[]; }