@decocms/runtime 0.26.0 → 0.27.0

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.
@@ -1,11 +1,8 @@
1
1
  import * as zod from 'zod';
2
2
  import { Client as Client$1, ClientOptions } from '@modelcontextprotocol/sdk/client/index.js';
3
- import { SSEClientTransport } from '@modelcontextprotocol/sdk/client/sse.js';
4
- import { WebSocketClientTransport } from '@modelcontextprotocol/sdk/client/websocket.js';
5
3
  import { RequestOptions } from '@modelcontextprotocol/sdk/shared/protocol.js';
6
4
  import { Implementation, ListToolsRequest } from '@modelcontextprotocol/sdk/types.js';
7
5
  import { MCPConnection } from '@decocms/bindings/connection';
8
- import { HTTPClientTransport } from '@decocms/bindings/client';
9
6
 
10
7
  /**
11
8
  * WARNNING: This is a hack to prevent schema compilation errors.
@@ -227,6 +224,6 @@ declare const createServerClient: (mcpServer: {
227
224
  connection: MCPConnection;
228
225
  name?: string;
229
226
  }, signal?: AbortSignal, extraHeaders?: Record<string, string>) => Promise<ServerClient>;
230
- declare const createTransport: (connection: MCPConnection, signal?: AbortSignal, extraHeaders?: Record<string, string>) => WebSocketClientTransport | SSEClientTransport | HTTPClientTransport | null;
227
+ declare const createTransport: (connection: MCPConnection, signal?: AbortSignal, extraHeaders?: Record<string, string>) => any;
231
228
 
232
229
  export { type ServerClient, createServerClient, createTransport };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/runtime",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -9,7 +9,7 @@
9
9
  "dependencies": {
10
10
  "@cloudflare/workers-types": "^4.20250617.0",
11
11
  "@deco/mcp": "npm:@jsr/deco__mcp@0.5.5",
12
- "@decocms/bindings": "workspace:*",
12
+ "@decocms/bindings": "0.2.1-beta.1",
13
13
  "@mastra/cloudflare-d1": "^0.13.4",
14
14
  "@mastra/core": "^0.20.2",
15
15
  "@modelcontextprotocol/sdk": "^1.19.1",
@@ -103,4 +103,4 @@
103
103
  "publishConfig": {
104
104
  "access": "public"
105
105
  }
106
- }
106
+ }
@@ -20,7 +20,7 @@ type LLMBindingClient = ReturnType<
20
20
  >;
21
21
 
22
22
  export interface Provider extends ProviderV2 {
23
- listModels: LLMBindingClient["COLLECTION_MODELS_LIST"];
23
+ listModels: LLMBindingClient["COLLECTION_LLM_LIST"];
24
24
  }
25
25
 
26
26
  /**
@@ -39,7 +39,7 @@ export const createProvider = (binding: LLMBindingClient): Provider => {
39
39
  );
40
40
  },
41
41
  listModels: async () => {
42
- return await binding.COLLECTION_MODELS_LIST({});
42
+ return await binding.COLLECTION_LLM_LIST({});
43
43
  },
44
44
  languageModel: (modelId: string): LanguageModelV2 => {
45
45
  const supportedUrls = lazy(() =>