Skip to main content
Glama

PDF Reader MCP Server

by sylphxltd
index.ts709 B
// Import only the consolidated PDF tool definition import { readPdfToolDefinition } from './readPdf.js'; // Define the structure for a tool definition (used internally and for index.ts) // We need Zod here to define the schema type correctly import type { z } from 'zod'; export interface ToolDefinition { name: string; description: string; schema: z.ZodType<unknown>; // Use Zod schema type with unknown // Define the specific return type expected by the SDK for tool handlers handler: (args: unknown) => Promise<{ content: { type: string; text: string }[] }>; } // Aggregate only the consolidated PDF tool definition export const allToolDefinitions: ToolDefinition[] = [readPdfToolDefinition];

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sylphxltd/pdf-reader-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server