(options: {
readonly name: string
readonly version: string
readonly path: HttpRouter.PathInput
})
| 627 | * @category Layers |
| 628 | */ |
| 629 | export const layerHttpRouter = (options: { |
| 630 | readonly name: string |
| 631 | readonly version: string |
| 632 | readonly path: HttpRouter.PathInput |
| 633 | }): Layer.Layer< |
| 634 | McpServer | McpServerClient, |
| 635 | never, |
| 636 | HttpLayerRouter.HttpRouter |
| 637 | > => |
| 638 | layer(options).pipe( |
| 639 | Layer.provide(RpcServer.layerProtocolHttpRouter(options)), |
| 640 | Layer.provide(RpcSerialization.layerJsonRpc()) |
| 641 | ) |
| 642 | |
| 643 | /** |
| 644 | * Register an AiToolkit with the McpServer. |