UNPKG

@sei-js/mcp-server

Version:

Model Context Protocol (MCP) server for interacting with EVM-compatible networks

15 lines (14 loc) 422 B
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'; export class StdioTransport { constructor() { this.mode = 'stdio'; } async start(server) { this.transport = new StdioServerTransport(); await server.connect(this.transport); console.error('MCP Server ready (stdio transport)'); } async stop() { this.transport = undefined; } }