# Function connectTransport

MCP exports - MCP server implementation Split from index.ts for file size compliance (Issue #285) Updated Issue #538: Added missing tool registration exports

- connectTransport(
  server: McpServer,
  transport: Transport,
  logger?: ILogger,
  ): Promise<Result<void, ServerError>>

  Connects the server to a transport.

  #### Parameters

  - server: McpServer

    The MCP server instance

  - transport: Transport

    The transport to connect to

  - `Optional` logger: ILogger

    Logger for the operation

  #### Returns Promise<Result<void, ServerError>>

  Result indicating success or failure

  - Defined in packages/nexus-agents/src/mcp/server.ts:144