UNPKG

clinicaltrialsgov-mcp-server

Version:

ClinicalTrials.gov Model Context Protocol (MCP) Server that provides a suite of tools for interacting with the official ClinicalTrials.gov v2 API. Enables AI agents and LLMs to programmatically search, retrieve, and analyze clinical trial data.

21 lines (20 loc) 1 kB
/** * @fileoverview Stateless Transport Manager implementation for MCP SDK. * This manager handles single-request operations without maintaining sessions. * Each request creates a temporary server instance that is cleaned up immediately. * This version is adapted for Hono by bridging the SDK's Node.js-style * request handling with Hono's stream-based response model. * @module src/mcp-server/transports/core/statelessTransportManager */ import type { IncomingHttpHeaders } from "http"; import { RequestContext } from "../../../utils/index.js"; import { BaseTransportManager } from "./baseTransportManager.js"; import { TransportResponse } from "./transportTypes.js"; /** * Stateless Transport Manager that handles ephemeral MCP operations. */ export declare class StatelessTransportManager extends BaseTransportManager { handleRequest(headers: IncomingHttpHeaders, body: unknown, context: RequestContext): Promise<TransportResponse>; shutdown(): Promise<void>; private cleanup; }