UNPKG

mcp-use

Version:

A utility library for integrating Model Context Protocol (MCP) with LangChain, Zod, and related tools. Provides helpers for schema conversion, event streaming, and SDK usage.

23 lines 770 B
import type { ConnectorInitOptions } from './base.js'; import { BaseConnector } from './base.js'; export interface HttpConnectorOptions extends ConnectorInitOptions { authToken?: string; headers?: Record<string, string>; timeout?: number; sseReadTimeout?: number; clientInfo?: { name: string; version: string; }; } export declare class HttpConnector extends BaseConnector { private readonly baseUrl; private readonly headers; private readonly timeout; private readonly sseReadTimeout; private readonly clientInfo; constructor(baseUrl: string, opts?: HttpConnectorOptions); /** Establish connection to the MCP implementation via SSE. */ connect(): Promise<void>; } //# sourceMappingURL=http.d.ts.map