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.
25 lines • 828 B
TypeScript
import type { Writable } from 'node:stream';
import type { ConnectorInitOptions } from './base.js';
import { BaseConnector } from './base.js';
export interface StdioConnectorOptions extends ConnectorInitOptions {
clientInfo?: {
name: string;
version: string;
};
}
export declare class StdioConnector extends BaseConnector {
private readonly command;
private readonly args;
private readonly env?;
private readonly errlog;
private readonly clientInfo;
constructor({ command, args, env, errlog, ...rest }?: {
command?: string;
args?: string[];
env?: Record<string, string>;
errlog?: Writable;
} & StdioConnectorOptions);
/** Establish connection to the MCP implementation. */
connect(): Promise<void>;
}
//# sourceMappingURL=stdio.d.ts.map