import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { type Session, type SessionOptions } from './config.js'; export interface CreateServerOptions extends SessionOptions { /** * True when every request is served by a fresh instance, as it is behind a * stateless HTTP route. Changes two things that would otherwise be wrong: * `telkomsel_set_default_msisdn` refuses instead of pretending to keep a value * it cannot, and the capabilities manifest reports the transport honestly. */ stateless?: boolean; /** Transport name for the manifest. Defaults to `stdio`, or `streamable-http` when stateless. */ transport?: string; } export interface TelkomselServer { /** The MCP server. Attach any transport to it. */ server: McpServer; /** The state this instance answers from. One per server, never shared. */ session: Session; } /** * Build a Telkomsel MCP server without attaching a transport. * * This is the one place the server is assembled. The `telkomsel-product-mcp` * binary connects it to stdio; `createMcpHandler` connects it to a Streamable HTTP * request; anything else (a test, a WebSocket host, an in-process client) can * connect it to whatever transport it has. * * Every call returns an independent server with its own session. Nothing about a * conversation is held at module level, so two servers in one process cannot see * each other's default number. */ export declare function createTelkomselServer(options?: CreateServerOptions): TelkomselServer;