@makaio/framework 1.0.0-dev-1781368205459 → 1.0.0-dev-1781382091626

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/adapters/index.d.mts +1 -1
  3. package/dist/bus/index.d.mts +19 -19
  4. package/dist/clients/index.d.mts +5 -5
  5. package/dist/contracts/adapter/index.d.mts +1 -1
  6. package/dist/contracts/artifact/index.d.mts +1 -1
  7. package/dist/contracts/client/index.d.mts +1 -1
  8. package/dist/contracts/extension/index.d.mts +3 -3
  9. package/dist/contracts/facet/index.d.mts +1 -1
  10. package/dist/contracts/harness/index.d.mts +1 -1
  11. package/dist/contracts/index.d.mts +241 -241
  12. package/dist/contracts/materialization/index.d.mts +3 -3
  13. package/dist/contracts/session/index.d.mts +2 -2
  14. package/dist/contracts/shared/index.d.mts +1 -1
  15. package/dist/contracts/skill/index.d.mts +1 -1
  16. package/dist/{definition-DqJOg6Lv.d.mts → definition-DWWzV-k0.d.mts} +1 -1
  17. package/dist/{index-D0Fupmhd.d.mts → index-Abq3I8wg.d.mts} +289 -289
  18. package/dist/{index-DC6F_m3G.d.mts → index-B1Rz7oUy.d.mts} +8 -8
  19. package/dist/{index-BCKRUuI2.d.mts → index-B2xbnMZe.d.mts} +1 -1
  20. package/dist/{index-ChrHbhJV.d.mts → index-B8tAGwHR.d.mts} +284 -284
  21. package/dist/{index-fVgKVvta.d.mts → index-BT5tNA3Y.d.mts} +1 -1
  22. package/dist/{index-Ckm-R1Cr.d.mts → index-BpXX9WZJ.d.mts} +6 -6
  23. package/dist/{index-B6VdcJ5l.d.mts → index-C3zfJg6s.d.mts} +34 -34
  24. package/dist/{index-BYkOUd0x.d.mts → index-CKP_uNGT.d.mts} +15 -15
  25. package/dist/{index-BHAOu6Hs.d.mts → index-COwW_2Gb.d.mts} +27 -27
  26. package/dist/{index-Dtj6N2sx.d.mts → index-DQppnGdC.d.mts} +15 -15
  27. package/dist/{index-Cb0zGPMV.d.mts → index-DW8EiMJ9.d.mts} +16 -16
  28. package/dist/{index-Bibt5jAX.d.mts → index-DlvMtyHK.d.mts} +8 -8
  29. package/dist/{index-BheaEhyI.d.mts → index-Dyz7dzLW.d.mts} +9 -9
  30. package/dist/{index-DhpOh71Z.d.mts → index-RUN1iHYu.d.mts} +4 -4
  31. package/dist/{index-B4vJi_iM2.d.mts → index-wP87FKTQ2.d.mts} +1 -1
  32. package/dist/kernel/extension/index.d.mts +1 -1
  33. package/dist/kernel/index.d.mts +2 -2
  34. package/dist/kernel/observability/index.d.mts +1 -1
  35. package/dist/mcp-http-server/index.d.mts +73 -4
  36. package/dist/mcp-http-server/index.mjs +4 -4
  37. package/dist/{namespace-B03JE_ec.d.mts → namespace--ROWLToE.d.mts} +7 -7
  38. package/dist/{namespace-_Ii2qs15.d.mts → namespace-5BLWcC3Q.d.mts} +38 -38
  39. package/dist/{namespace-CtK3nKKj2.d.mts → namespace-B60mn8J-2.d.mts} +2 -2
  40. package/dist/{namespace-CqUGzG53.d.mts → namespace-BSNFeJA4.d.mts} +2 -2
  41. package/dist/{namespace-BGmNI3O1.d.mts → namespace-Ds6HkJEU.d.mts} +136 -136
  42. package/dist/package.json +1 -1
  43. package/dist/{schema-BJS05p13.d.mts → schema-cNoxaiT0.d.mts} +2 -2
  44. package/dist/{schemas-lqvZ6UpK.d.mts → schemas-DUE6mc1O.d.mts} +3 -3
  45. package/dist/{schemas-CwF2K9N52.d.mts → schemas-DsyYsfVN2.d.mts} +15 -15
  46. package/dist/{schemas-t1VR6_b_.d.mts → schemas-o2Q24yOF.d.mts} +3 -3
  47. package/dist/{schemas-C2c64X6h.d.mts → schemas-on3_N5HP.d.mts} +136 -136
  48. package/dist/services/agent-runtime/index.d.mts +2 -2
  49. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  50. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  51. package/dist/services/context-rules/index.d.mts +11 -11
  52. package/dist/services/execution-target/index.d.mts +1 -1
  53. package/dist/services/git/namespace.d.mts +2 -2
  54. package/dist/services/git/schemas.d.mts +1 -1
  55. package/dist/services/harness/index.d.mts +3 -3
  56. package/dist/services/index.d.mts +99 -99
  57. package/dist/services/log-import/browser.d.mts +2 -2
  58. package/dist/services/log-import/index.d.mts +2 -2
  59. package/dist/services/log-import/log-import.d.mts +1 -1
  60. package/dist/services/log-import/namespace.d.mts +2 -2
  61. package/dist/services/log-import/schemas.d.mts +1 -1
  62. package/dist/services/session/index.d.mts +4 -4
  63. package/dist/services/session/messages/namespace.d.mts +1 -1
  64. package/dist/services/session/storage/namespace.d.mts +1 -1
  65. package/dist/services/session/storage/schema.d.mts +1 -1
  66. package/dist/services/settings/namespace.d.mts +12 -12
  67. package/dist/services/subagent-template/index.d.mts +2 -2
  68. package/dist/services/subagent-template/namespace.d.mts +1 -1
  69. package/dist/services/subagent-template/schemas.d.mts +1 -1
  70. package/dist/services/tray-menu/index.d.mts +2 -2
  71. package/dist/services/tray-menu/namespace.d.mts +1 -1
  72. package/dist/services/tray-menu/schemas.d.mts +1 -1
  73. package/dist/{types-CjrDiL2H.d.mts → types-BtsKrzK7.d.mts} +197 -197
  74. package/dist/{types-D0fPFh-D.d.mts → types-D5IMwOkJ.d.mts} +1 -1
  75. package/dist/workflow-engine/index.d.mts +69 -69
  76. package/package.json +1 -1
@@ -48,9 +48,9 @@ declare const MaterializationSchemas: {
48
48
  template: z.ZodString;
49
49
  }, z.core.$strip>], "kind">;
50
50
  appliesTo: z.ZodArray<z.ZodEnum<{
51
- surface: "surface";
52
51
  workpiece: "workpiece";
53
52
  artifact: "artifact";
53
+ surface: "surface";
54
54
  }>>;
55
55
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
56
56
  description: z.ZodOptional<z.ZodString>;
@@ -88,9 +88,9 @@ declare const MaterializationSchemas: {
88
88
  template: z.ZodString;
89
89
  }, z.core.$strip>], "kind">;
90
90
  appliesTo: z.ZodArray<z.ZodEnum<{
91
- surface: "surface";
92
91
  workpiece: "workpiece";
93
92
  artifact: "artifact";
93
+ surface: "surface";
94
94
  }>>;
95
95
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
96
96
  description: z.ZodOptional<z.ZodString>;
@@ -106,8 +106,8 @@ declare const MaterializationSchemas: {
106
106
  provider: z.ZodString;
107
107
  externalId: z.ZodString;
108
108
  operation: z.ZodEnum<{
109
- deleted: "deleted";
110
109
  upserted: "upserted";
110
+ deleted: "deleted";
111
111
  }>;
112
112
  }, z.core.$strip>; /** Emitted when a provider surface capability set has been resolved. */
113
113
  'capability.resolved': z.ZodObject<{
@@ -153,9 +153,9 @@ declare const MaterializationNamespace: _$_makaio_core0.BusNamespaceDefinition<"
153
153
  template: z.ZodString;
154
154
  }, z.core.$strip>], "kind">;
155
155
  appliesTo: z.ZodArray<z.ZodEnum<{
156
- surface: "surface";
157
156
  workpiece: "workpiece";
158
157
  artifact: "artifact";
158
+ surface: "surface";
159
159
  }>>;
160
160
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
161
161
  description: z.ZodOptional<z.ZodString>;
@@ -193,9 +193,9 @@ declare const MaterializationNamespace: _$_makaio_core0.BusNamespaceDefinition<"
193
193
  template: z.ZodString;
194
194
  }, z.core.$strip>], "kind">;
195
195
  appliesTo: z.ZodArray<z.ZodEnum<{
196
- surface: "surface";
197
196
  workpiece: "workpiece";
198
197
  artifact: "artifact";
198
+ surface: "surface";
199
199
  }>>;
200
200
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
201
201
  description: z.ZodOptional<z.ZodString>;
@@ -211,8 +211,8 @@ declare const MaterializationNamespace: _$_makaio_core0.BusNamespaceDefinition<"
211
211
  provider: z.ZodString;
212
212
  externalId: z.ZodString;
213
213
  operation: z.ZodEnum<{
214
- deleted: "deleted";
215
214
  upserted: "upserted";
215
+ deleted: "deleted";
216
216
  }>;
217
217
  }, z.core.$strip>; /** Emitted when a provider surface capability set has been resolved. */
218
218
  'capability.resolved': z.ZodObject<{
@@ -268,9 +268,9 @@ declare const MaterializationSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
268
268
  template: z.ZodString;
269
269
  }, z.core.$strip>], "kind">;
270
270
  appliesTo: z.ZodArray<z.ZodEnum<{
271
- surface: "surface";
272
271
  workpiece: "workpiece";
273
272
  artifact: "artifact";
273
+ surface: "surface";
274
274
  }>>;
275
275
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
276
276
  description: z.ZodOptional<z.ZodString>;
@@ -308,9 +308,9 @@ declare const MaterializationSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
308
308
  template: z.ZodString;
309
309
  }, z.core.$strip>], "kind">;
310
310
  appliesTo: z.ZodArray<z.ZodEnum<{
311
- surface: "surface";
312
311
  workpiece: "workpiece";
313
312
  artifact: "artifact";
313
+ surface: "surface";
314
314
  }>>;
315
315
  valueMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
316
316
  description: z.ZodOptional<z.ZodString>;
@@ -326,8 +326,8 @@ declare const MaterializationSubjects: _$_makaio_core0.BusSubjects<_$_makaio_cor
326
326
  provider: z.ZodString;
327
327
  externalId: z.ZodString;
328
328
  operation: z.ZodEnum<{
329
- deleted: "deleted";
330
329
  upserted: "upserted";
330
+ deleted: "deleted";
331
331
  }>;
332
332
  }, z.core.$strip>; /** Emitted when a provider surface capability set has been resolved. */
333
333
  'capability.resolved': z.ZodObject<{
@@ -141,12 +141,12 @@ declare const HarnessDefinitionCreateSchema: z.ZodObject<{
141
141
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
142
142
  name: z.ZodString;
143
143
  adapterName: z.ZodOptional<z.ZodString>;
144
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
144
145
  clientId: z.ZodOptional<z.ZodString>;
145
146
  nativeTools: z.ZodObject<{
146
147
  enabled: z.ZodArray<z.ZodString>;
147
148
  disabled: z.ZodArray<z.ZodString>;
148
149
  }, z.core.$strip>;
149
- credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
150
150
  registryTools: z.ZodObject<{
151
151
  enabled: z.ZodArray<z.ZodString>;
152
152
  disabled: z.ZodArray<z.ZodString>;
@@ -317,12 +317,12 @@ declare const HarnessSchemas: {
317
317
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
318
318
  name: z.ZodString;
319
319
  adapterName: z.ZodOptional<z.ZodString>;
320
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
320
321
  clientId: z.ZodOptional<z.ZodString>;
321
322
  nativeTools: z.ZodObject<{
322
323
  enabled: z.ZodArray<z.ZodString>;
323
324
  disabled: z.ZodArray<z.ZodString>;
324
325
  }, z.core.$strip>;
325
- credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
326
326
  registryTools: z.ZodObject<{
327
327
  enabled: z.ZodArray<z.ZodString>;
328
328
  disabled: z.ZodArray<z.ZodString>;
@@ -760,12 +760,12 @@ declare const HarnessNamespace: _$_makaio_core0.BusNamespaceDefinition<"harness"
760
760
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
761
761
  name: z.ZodString;
762
762
  adapterName: z.ZodOptional<z.ZodString>;
763
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
763
764
  clientId: z.ZodOptional<z.ZodString>;
764
765
  nativeTools: z.ZodObject<{
765
766
  enabled: z.ZodArray<z.ZodString>;
766
767
  disabled: z.ZodArray<z.ZodString>;
767
768
  }, z.core.$strip>;
768
- credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
769
769
  registryTools: z.ZodObject<{
770
770
  enabled: z.ZodArray<z.ZodString>;
771
771
  disabled: z.ZodArray<z.ZodString>;
@@ -1203,12 +1203,12 @@ declare const HarnessSubjects: _$_makaio_core0.BusSubjects<_$_makaio_core0.FlatS
1203
1203
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1204
1204
  name: z.ZodString;
1205
1205
  adapterName: z.ZodOptional<z.ZodString>;
1206
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1206
1207
  clientId: z.ZodOptional<z.ZodString>;
1207
1208
  nativeTools: z.ZodObject<{
1208
1209
  enabled: z.ZodArray<z.ZodString>;
1209
1210
  disabled: z.ZodArray<z.ZodString>;
1210
1211
  }, z.core.$strip>;
1211
- credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1212
1212
  registryTools: z.ZodObject<{
1213
1213
  enabled: z.ZodArray<z.ZodString>;
1214
1214
  disabled: z.ZodArray<z.ZodString>;
@@ -1,5 +1,5 @@
1
1
  import { i as CliContribution } from "./types-D-bP8RRE.mjs";
2
- import { c as ExtensionInfo } from "./index-Cb0zGPMV.mjs";
2
+ import { c as ExtensionInfo } from "./index-DW8EiMJ9.mjs";
3
3
  import { r as WindowRegistry } from "./window-registry-CfEi_Ji4.mjs";
4
4
  import { IMakaioBus } from "@makaio/framework/bus";
5
5
  import { ExtensionContributionProcessor, ExtensionService, ExtensionToken, MakaioExtension, NodeExtensionContext, StorageDialect, TrayManifest, VersionLiteral } from "@makaio/framework/contracts";
@@ -1,2 +1,2 @@
1
- import { a as ExtensionCoordinatorOptions, c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../../index-B4vJi_iM2.mjs";
1
+ import { a as ExtensionCoordinatorOptions, c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../../index-wP87FKTQ2.mjs";
2
2
  export { ContributionProcessor, ExtensionCoordinator, ExtensionCoordinatorOptions, ExtensionRuntimeSurface, KernelExtensionContext, KernelMakaioExtension, RuntimeCapability, RuntimeEnvironment, coalesceExtensionOverrides, filterEligibleExtensions };
@@ -1,5 +1,5 @@
1
- import { c as ExtensionInfo, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, s as ComponentStateSchema, t as ExtensionNamespace } from "../index-Cb0zGPMV.mjs";
2
- import { c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../index-B4vJi_iM2.mjs";
1
+ import { c as ExtensionInfo, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, s as ComponentStateSchema, t as ExtensionNamespace } from "../index-DW8EiMJ9.mjs";
2
+ import { c as KernelMakaioExtension, i as ContributionProcessor, l as RuntimeCapability, n as filterEligibleExtensions, o as ExtensionRuntimeSurface, r as ExtensionCoordinator, s as KernelExtensionContext, t as coalesceExtensionOverrides, u as RuntimeEnvironment } from "../index-wP87FKTQ2.mjs";
3
3
  import { i as WindowStyle, n as WindowRegistration, r as WindowRegistry, t as STYLE_DEFAULTS } from "../window-registry-CfEi_Ji4.mjs";
4
4
  import { a as KernelSchemas, i as setWorkflowTriggerTypeRegistry, n as KernelSubjects, r as getWorkflowTriggerTypeRegistry, t as KernelNamespace } from "../index-DOfq0qqv.mjs";
5
5
  import { a as MachineIdentity, c as StorageProvider, i as IdentityProvider, n as NoTransportProvider, o as TransportProvider, r as MemoryStorageProvider, s as StorageCleanup, t as EphemeralIdentityProvider } from "../index-BbCjtc3h.mjs";
@@ -1,2 +1,2 @@
1
- import { a as ComponentInfoSchema, c as ExtensionInfo, d as ExtensionWarningEntrySchema, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, r as ComponentIdentitySchema, s as ComponentStateSchema, t as ExtensionNamespace, u as ExtensionWarningEntry } from "../../index-Cb0zGPMV.mjs";
1
+ import { a as ComponentInfoSchema, c as ExtensionInfo, d as ExtensionWarningEntrySchema, f as ServiceInfo, i as ComponentInfo, l as ExtensionInfoSchema, n as ExtensionSubjects, o as ComponentState, p as ServiceInfoSchema, r as ComponentIdentitySchema, s as ComponentStateSchema, t as ExtensionNamespace, u as ExtensionWarningEntry } from "../../index-DW8EiMJ9.mjs";
2
2
  export { ComponentIdentitySchema, ComponentInfo, ComponentInfoSchema, ComponentState, ComponentStateSchema, ExtensionInfo, ExtensionInfoSchema, ExtensionNamespace, ExtensionSubjects, ExtensionWarningEntry, ExtensionWarningEntrySchema, ServiceInfo, ServiceInfoSchema };
@@ -189,6 +189,10 @@ declare function resolveMcpTools(bus: IMakaioBus, options?: McpToolDiscoveryOpti
189
189
  declare function toolInfoToMcpTool(tool: ToolInfo, mcpName: string): McpToolDefinition;
190
190
  //#endregion
191
191
  //#region subsystems/mcp-http-server/src/server.d.ts
192
+ /** Query parameter name used by adapters to pass the session ID when custom headers are not available. */
193
+ declare const ADAPTER_SESSION_ID_PARAM = "adapterSessionId";
194
+ /** HTTP header name that carries the adapter session ID after query-param promotion. */
195
+ declare const ADAPTER_SESSION_ID_HEADER = "x-adapter-session-id";
192
196
  /**
193
197
  * Options for configuring MCP server startup.
194
198
  */
@@ -256,8 +260,8 @@ interface CreateMcpServerOptions {
256
260
  resolveContextOverrides?: ResolveContextOverrides;
257
261
  }
258
262
  /**
259
- * Transport-agnostic options shared by {@link createHttpMcpHandler} and
260
- * {@link startHttpMcpServer}. These fields configure the MCP server and its
263
+ * Transport-agnostic options shared by {@link createHttpMcpHandler},
264
+ * {@link createFetchMcpHandler}, and {@link startHttpMcpServer}. These fields configure the MCP server and its
261
265
  * attached transport without prescribing how the resulting handler is mounted
262
266
  * onto an HTTP stack.
263
267
  */
@@ -270,7 +274,8 @@ interface HttpMcpHandlerOptions {
270
274
  * Optional callback invoked when the underlying MCP transport closes.
271
275
  *
272
276
  * Called synchronously by the MCP SDK's transport `onclose` hook — that is,
273
- * after {@link HttpMcpHandlerHandle.close} (or {@link HttpMcpServerHandle.close})
277
+ * after {@link HttpMcpHandlerHandle.close}, {@link FetchMcpHandlerHandle.close},
278
+ * or {@link HttpMcpServerHandle.close}
274
279
  * has been called and the transport has finished tearing down. Intended for
275
280
  * best-effort resource cleanup (e.g. flushing session registries) without
276
281
  * blocking the close path.
@@ -463,6 +468,70 @@ declare function startHttpMcpServer(bus: IMakaioBus, options?: HttpMcpServerOpti
463
468
  */
464
469
  declare function startMcpServer(bus: IMakaioBus, sessionId: string, options?: McpServerOptions): Promise<HttpMcpServerHandle | StdioMcpServerHandle>;
465
470
  //#endregion
471
+ //#region subsystems/mcp-http-server/src/fetch-handler.d.ts
472
+ /**
473
+ * Result returned by {@link createFetchMcpHandler}.
474
+ *
475
+ * Provides a Web Standard fetch-compatible handler that can be mounted on any
476
+ * HTTP stack that speaks `Request` / `Response` (Hono, Bun.serve, Cloudflare
477
+ * Workers, Deno). See {@link createFetchMcpHandler} for usage and mounting
478
+ * examples.
479
+ */
480
+ interface FetchMcpHandlerHandle {
481
+ /**
482
+ * Mount this on any fetch-compatible HTTP stack.
483
+ *
484
+ * The handler delegates body parsing to the underlying MCP transport; do not
485
+ * pre-parse the body before passing the request to this function.
486
+ */
487
+ readonly handler: (request: Request) => Promise<Response>;
488
+ /** Context registry for registering and unregistering agent sessions. */
489
+ readonly contextRegistry: IMcpContextRegistry;
490
+ /**
491
+ * Gracefully close the MCP server and its transport.
492
+ *
493
+ * Idempotent: repeated calls await the same underlying close operation and
494
+ * do not trigger a second teardown.
495
+ */
496
+ close(): Promise<void>;
497
+ }
498
+ /**
499
+ * Create a fetch-compatible MCP request handler backed by the Web Standard
500
+ * {@link https://github.com/modelcontextprotocol/typescript-sdk | MCP SDK} transport.
501
+ *
502
+ * This is the fetch-style sibling of {@link createHttpMcpHandler}. Both share
503
+ * the same {@link createMcpServer} wiring, but this variant uses
504
+ * `WebStandardStreamableHTTPServerTransport` so the resulting handler accepts a
505
+ * Web Standard `Request` and returns a `Promise<Response>`. Mount it on Hono,
506
+ * Bun.serve, Cloudflare Workers, Deno, or any other fetch-compatible HTTP stack.
507
+ *
508
+ * ```ts
509
+ * import { createFetchMcpHandler } from '@makaio/framework/mcp-http-server';
510
+ *
511
+ * const { handler, close } = await createFetchMcpHandler(bus);
512
+ *
513
+ * // Hono
514
+ * app.all('/mcp', async (c) => handler(c.req.raw));
515
+ *
516
+ * // Bun.serve
517
+ * Bun.serve({
518
+ * fetch(request) {
519
+ * if (new URL(request.url).pathname === '/mcp') {
520
+ * return handler(request);
521
+ * }
522
+ * return new Response('Not found', { status: 404 });
523
+ * },
524
+ * });
525
+ * ```
526
+ *
527
+ * The handler parses request bodies internally via the transport; do not
528
+ * pre-parse or consume `request.body` before passing it in.
529
+ * @param bus - Bus instance.
530
+ * @param options - Handler options (same as {@link createHttpMcpHandler}).
531
+ * @returns Handle exposing the fetch handler, context registry, and close function.
532
+ */
533
+ declare function createFetchMcpHandler(bus: IMakaioBus, options?: HttpMcpHandlerOptions): Promise<FetchMcpHandlerHandle>;
534
+ //#endregion
466
535
  //#region subsystems/mcp-http-server/src/mcp-server-bridge-service.d.ts
467
536
  /**
468
537
  * Singleton bus service that manages the HTTP MCP server lifecycle.
@@ -671,4 +740,4 @@ interface McpClientBridgeOptions {
671
740
  */
672
741
  declare function startMcpClientBridge(options: McpClientBridgeOptions): Promise<McpClientBridgeHandle>;
673
742
  //#endregion
674
- export { APPROVE_TOOL_NAME, type CreateMcpServerOptions, type HttpMcpHandlerHandle, type HttpMcpHandlerOptions, type HttpMcpServerHandle, type HttpMcpServerOptions, type IMcpContextRegistry, type McpAgentContext, type McpBridgedTool, type McpCallToolResult, type McpClientBridgeHandle, type McpClientBridgeOptions, McpContextRegistry, type McpResolvedTools, McpServerBridgeService, type McpServerOptions, type McpToolDiscoveryIdentity, type McpToolDiscoveryOptions, type McpToolEntry, type PluginToolsetMap, type RequestToolApproval, type ResolveContextOverrides, type StdioMcpServerHandle, type ToolApproveRequestPayload, type ToolApproveResponse, createHttpMcpHandler, createMcpRequestHandler, createMcpServer, resolveMcpTools, startHttpMcpServer, startMcpClientBridge, startMcpServer, toolInfoToMcpTool };
743
+ export { ADAPTER_SESSION_ID_HEADER, ADAPTER_SESSION_ID_PARAM, APPROVE_TOOL_NAME, type CreateMcpServerOptions, type FetchMcpHandlerHandle, type HttpMcpHandlerHandle, type HttpMcpHandlerOptions, type HttpMcpServerHandle, type HttpMcpServerOptions, type IMcpContextRegistry, type McpAgentContext, type McpBridgedTool, type McpCallToolResult, type McpClientBridgeHandle, type McpClientBridgeOptions, McpContextRegistry, type McpResolvedTools, McpServerBridgeService, type McpServerOptions, type McpToolDiscoveryIdentity, type McpToolDiscoveryOptions, type McpToolEntry, type PluginToolsetMap, type RequestToolApproval, type ResolveContextOverrides, type StdioMcpServerHandle, type ToolApproveRequestPayload, type ToolApproveResponse, createFetchMcpHandler, createHttpMcpHandler, createMcpRequestHandler, createMcpServer, resolveMcpTools, startHttpMcpServer, startMcpClientBridge, startMcpServer, toolInfoToMcpTool };