mcpSse

fun mcpSse(metadata: ServerMetaData, security: McpSecurity, vararg capabilities: ServerCapability, mcpFilter: McpFilter = McpFilter.NoOp, corsPolicy: CorsPolicy? = null): PolyHandler(source)

Create an SSE MCP app from a set of capability bindings.

This is the main entry point for the MCP server. It sets up the SSE connection and then provides a endpoint for the client to send messages to.

The standard paths used are: /sse <-- setup the SSE connection to an MCP client /messages (POST) <-- receive messages from connected MCP clients