Skip to content

toolmark-monorepo / @toolmark/mcp / startMcpServer

Function: startMcpServer() ​

startMcpServer(o): object

Defined in: packages/mcp/src/server/server.ts:241

Serves MCP over stdio for both protocol eras through the SDK's serveStdio (legacy clients via initialize, modern clients via server/discover); Toolmark writes no era router.

Parameters ​

o ​

StartMcpServerOptions

The link, optional transport (tests), error sink and version.

Returns ​

object

A handle whose close() tears the connection down.

close() ​

close(): Promise<void>

Returns ​

Promise<void>