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.
23 lines (22 loc) • 1.06 kB
TypeScript
/**
* @fileoverview Configures and starts the HTTP MCP transport using Hono.
* This file has been refactored to correctly integrate Hono's streaming
* capabilities with the Model Context Protocol SDK's transport layer.
* @module src/mcp-server/transports/http/httpTransport
*/
import { ServerType } from "@hono/node-server";
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { Hono } from "hono";
import { RequestContext } from "../../../utils/index.js";
import { TransportManager } from "../core/transportTypes.js";
import { HonoNodeBindings } from "./httpTypes.js";
export declare function createHttpApp(transportManager: TransportManager, createServerInstanceFn: () => Promise<McpServer>, parentContext: RequestContext): Hono<{
Bindings: HonoNodeBindings;
}>;
export declare function startHttpTransport(createServerInstanceFn: () => Promise<McpServer>, parentContext: RequestContext): Promise<{
app: Hono<{
Bindings: HonoNodeBindings;
}>;
server: ServerType;
transportManager: TransportManager;
}>;