@cyanheads/pubmed-mcp-server
Version:
Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms via MCP. STDIO or Streamable HTTP.
14 lines • 615 B
TypeScript
/**
* @fileoverview Shared Zod schemas reused across tool definitions.
* @module src/mcp-server/tools/definitions/_schemas
*/
import { z } from '@cyanheads/mcp-ts-core';
/**
* Zod string schema for a single PubMed ID. Accepts only digit characters.
* The message is intentionally actionable so callers can self-correct without
* inspecting the regex — names the domain, shows an example, and lists the
* common failure modes we've seen in the wild (whitespace, comma-joined IDs,
* stray prefixes like "PMID:").
*/
export declare const pmidStringSchema: z.ZodString;
//# sourceMappingURL=_schemas.d.ts.map