UNPKG

@futurelab-studio/latest-science-mcp

Version:

MCP Server for Scientific Paper Harvesting from arXiv and OpenAlex

22 lines (21 loc) 701 B
import { z } from 'zod'; import { RateLimiter } from '../core/rate-limiter.js'; import { PaperMetadata } from '../types/papers.js'; export declare const fetchContentSchema: z.ZodObject<{ source: z.ZodEnum<["arxiv", "openalex"]>; id: z.ZodString; }, "strip", z.ZodTypeAny, { source: "arxiv" | "openalex"; id: string; }, { source: "arxiv" | "openalex"; id: string; }>; export type FetchContentInput = z.infer<typeof fetchContentSchema>; /** * MCP tool: fetch_content * Fetches full metadata for a specific paper by ID from arXiv or OpenAlex */ export declare function fetchContent(input: FetchContentInput, rateLimiter: RateLimiter): Promise<{ content: PaperMetadata; }>;