sap-b1-mcp-server
Version:
SAP Business One Service Layer MCP Server
29 lines • 920 B
JavaScript
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
export class StdioTransport {
server;
transport;
constructor(server) {
this.server = server;
this.transport = new StdioServerTransport();
}
/**
* Start the STDIO transport
*/
async start() {
console.error('SAP B1 MCP Server starting with STDIO transport...');
// Connect the server to the transport
await this.server.connect(this.transport);
console.error('SAP B1 MCP Server connected via STDIO');
// Keep the process alive
process.stdin.resume();
}
/**
* Stop the STDIO transport
*/
async stop() {
console.error('SAP B1 MCP Server stopping STDIO transport...');
await this.transport.close();
console.error('SAP B1 MCP Server STDIO transport stopped');
}
}
//# sourceMappingURL=stdio.js.map