@cgaspard/webappmcp
Version:
WebApp MCP - Model Context Protocol integration for web applications with server-side debugging tools
29 lines • 925 B
TypeScript
import { Request, Response } from 'express';
import { WebAppMCPPlugin } from './index.js';
export interface MCPSSEConfig {
getClients?: () => Array<{
id: string;
url: string;
connectedAt: Date;
type: string;
}>;
executeTool?: (toolName: string, args: any) => Promise<any>;
debug?: boolean;
plugins?: WebAppMCPPlugin[];
getServerLogs?: (level?: string, limit?: number, regex?: string) => any[];
}
export declare class MCPSSEServer {
private sseTransports;
private getClients?;
private executeTool?;
private debug;
private plugins;
private getServerLogs?;
constructor(config: MCPSSEConfig);
private log;
private logError;
private createServer;
initialize(): Promise<void>;
handleSSERequest(req: Request, res: Response): Promise<Response<any, Record<string, any>> | undefined>;
}
//# sourceMappingURL=mcp-sse-server.d.ts.map