sap-b1-mcp-server
Version:
SAP Business One Service Layer MCP Server
34 lines (33 loc) • 776 B
TypeScript
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
import cors from 'cors';
export interface HttpTransportOptions {
port?: number;
host?: string;
cors?: boolean;
corsOptions?: cors.CorsOptions;
}
export declare class HttpTransport {
private server;
private app;
private httpServer;
private options;
constructor(server: Server, options?: HttpTransportOptions);
private setupMiddleware;
private setupRoutes;
/**
* Start the HTTP transport
*/
start(): Promise<void>;
/**
* Stop the HTTP transport
*/
stop(): Promise<void>;
/**
* Get the server URL
*/
getUrl(): string;
/**
* Get the message endpoint URL for clients
*/
getMessageUrl(): string;
}