添加Pdf读取mcp

This commit is contained in:
zqm
2025-10-22 16:24:07 +08:00
parent 0d8520123e
commit 64d1e220d4
48 changed files with 21213 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
// 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];