@decocms/bindings 1.0.1-alpha.16 → 1.0.1-alpha.17
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.
- package/package.json +2 -2
- package/src/core/binder.ts +7 -0
package/package.json
CHANGED
package/src/core/binder.ts
CHANGED
|
@@ -103,6 +103,13 @@ export const bindingClient = <TDefinition extends readonly ToolBinder[]>(
|
|
|
103
103
|
forClient: (client: ServerClient): MCPClientFetchStub<TDefinition> => {
|
|
104
104
|
return createMCPFetchStub<TDefinition>({
|
|
105
105
|
client,
|
|
106
|
+
streamable: binder.reduce(
|
|
107
|
+
(acc, tool) => {
|
|
108
|
+
acc[tool.name] = tool.streamable === true;
|
|
109
|
+
return acc;
|
|
110
|
+
},
|
|
111
|
+
{} as Record<string, boolean>,
|
|
112
|
+
),
|
|
106
113
|
});
|
|
107
114
|
},
|
|
108
115
|
forConnection: (
|