@toolprint/hypertool-mcp
Version:
HyperTool MCP proxy server for routing requests between clients and multiple underlying MCP servers
67 lines • 1.57 kB
TypeScript
/**
* TypeScript interfaces for Hypertool MCP server implementation
*/
import { Tool } from "@modelcontextprotocol/sdk/types.js";
/**
* Interface for components that provide MCP tools
* Both ToolsetManager and ConfigToolsManager implement this interface
*/
export interface ToolsProvider {
/**
* Get MCP tools provided by this component
* @returns Array of Tool definitions exposed by this provider
*/
getMcpTools(): Tool[];
}
/**
* Server transport types (inbound connections TO this server)
*/
export type ServerTransportType = "stdio" | "http";
/**
* Transport configuration for the Hypertool MCP server
*/
export interface TransportConfig {
type: ServerTransportType;
port?: number;
host?: string;
}
/**
* Hypertool MCP server configuration
*/
export interface MetaMCPServerConfig {
name: string;
version: string;
description: string;
transport: TransportConfig;
configPath?: string;
}
/**
* Server initialization options
*/
export interface ServerInitOptions {
transport: TransportConfig;
configPath?: string;
configSource?: any;
debug?: boolean;
}
/**
* Server state enumeration
*/
export declare enum ServerState {
STOPPED = "stopped",
STARTING = "starting",
RUNNING = "running",
STOPPING = "stopping",
ERROR = "error"
}
/**
* Server status information
*/
export interface ServerStatus {
state: ServerState;
uptime?: number;
connectedClients?: number;
underlyingServers?: number;
lastError?: string;
}
//# sourceMappingURL=types.d.ts.map