@composio/vercel 0.1.26 → 0.1.28

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/dist/index.cjs CHANGED
@@ -180,34 +180,18 @@ var VercelProvider = class extends import_core.BaseAgenticProvider {
180
180
  }, {});
181
181
  }
182
182
  /**
183
- * Transform MCP URL response into Vercel-specific format.
184
- * Vercel uses the standard format by default.
183
+ * Transform MCP URL response into Anthropic-specific format.
184
+ * By default, Anthropic uses the standard format (same as default),
185
+ * but this method is here to show providers can customize if needed.
185
186
  *
186
187
  * @param data - The MCP URL response data
187
- * @param serverName - Name of the MCP server
188
- * @param connectedAccountIds - Optional array of connected account IDs
189
- * @param userIds - Optional array of user IDs
190
- * @param toolkits - Optional array of toolkit names
191
188
  * @returns Standard MCP server response format
192
189
  */
193
- wrapMcpServerResponse(data, serverName, connectedAccountIds, userIds, toolkits) {
194
- if (connectedAccountIds?.length && data.connected_account_urls) {
195
- return data.connected_account_urls.map((url, index) => ({
196
- url: new URL(url),
197
- name: `${serverName}-${connectedAccountIds[index]}`,
198
- toolkit: toolkits?.[index]
199
- }));
200
- } else if (userIds?.length && data.user_ids_url) {
201
- return data.user_ids_url.map((url, index) => ({
202
- url: new URL(url),
203
- name: `${serverName}-${userIds[index]}`,
204
- toolkit: toolkits?.[index]
205
- }));
206
- }
207
- return {
208
- url: new URL(data.mcp_url),
209
- name: serverName
210
- };
190
+ wrapMcpServerResponse(data) {
191
+ return data.map((item) => ({
192
+ url: new URL(item.url),
193
+ name: item.name
194
+ }));
211
195
  }
212
196
  };
213
197
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.d.cts CHANGED
@@ -154,17 +154,14 @@ declare class VercelProvider extends BaseAgenticProvider<VercelToolCollection, T
154
154
  */
155
155
  wrapTools(tools: Tool$1[], executeTool: ExecuteToolFn): VercelToolCollection;
156
156
  /**
157
- * Transform MCP URL response into Vercel-specific format.
158
- * Vercel uses the standard format by default.
157
+ * Transform MCP URL response into Anthropic-specific format.
158
+ * By default, Anthropic uses the standard format (same as default),
159
+ * but this method is here to show providers can customize if needed.
159
160
  *
160
161
  * @param data - The MCP URL response data
161
- * @param serverName - Name of the MCP server
162
- * @param connectedAccountIds - Optional array of connected account IDs
163
- * @param userIds - Optional array of user IDs
164
- * @param toolkits - Optional array of toolkit names
165
162
  * @returns Standard MCP server response format
166
163
  */
167
- wrapMcpServerResponse(data: McpUrlResponse, serverName: string, connectedAccountIds?: string[], userIds?: string[], toolkits?: string[]): McpServerGetResponse;
164
+ wrapMcpServerResponse(data: McpUrlResponse): McpServerGetResponse;
168
165
  }
169
166
 
170
167
  export { VercelProvider, type VercelToolCollection };
package/dist/index.d.ts CHANGED
@@ -154,17 +154,14 @@ declare class VercelProvider extends BaseAgenticProvider<VercelToolCollection, T
154
154
  */
155
155
  wrapTools(tools: Tool$1[], executeTool: ExecuteToolFn): VercelToolCollection;
156
156
  /**
157
- * Transform MCP URL response into Vercel-specific format.
158
- * Vercel uses the standard format by default.
157
+ * Transform MCP URL response into Anthropic-specific format.
158
+ * By default, Anthropic uses the standard format (same as default),
159
+ * but this method is here to show providers can customize if needed.
159
160
  *
160
161
  * @param data - The MCP URL response data
161
- * @param serverName - Name of the MCP server
162
- * @param connectedAccountIds - Optional array of connected account IDs
163
- * @param userIds - Optional array of user IDs
164
- * @param toolkits - Optional array of toolkit names
165
162
  * @returns Standard MCP server response format
166
163
  */
167
- wrapMcpServerResponse(data: McpUrlResponse, serverName: string, connectedAccountIds?: string[], userIds?: string[], toolkits?: string[]): McpServerGetResponse;
164
+ wrapMcpServerResponse(data: McpUrlResponse): McpServerGetResponse;
168
165
  }
169
166
 
170
167
  export { VercelProvider, type VercelToolCollection };
package/dist/index.js CHANGED
@@ -158,34 +158,18 @@ var VercelProvider = class extends BaseAgenticProvider {
158
158
  }, {});
159
159
  }
160
160
  /**
161
- * Transform MCP URL response into Vercel-specific format.
162
- * Vercel uses the standard format by default.
161
+ * Transform MCP URL response into Anthropic-specific format.
162
+ * By default, Anthropic uses the standard format (same as default),
163
+ * but this method is here to show providers can customize if needed.
163
164
  *
164
165
  * @param data - The MCP URL response data
165
- * @param serverName - Name of the MCP server
166
- * @param connectedAccountIds - Optional array of connected account IDs
167
- * @param userIds - Optional array of user IDs
168
- * @param toolkits - Optional array of toolkit names
169
166
  * @returns Standard MCP server response format
170
167
  */
171
- wrapMcpServerResponse(data, serverName, connectedAccountIds, userIds, toolkits) {
172
- if (connectedAccountIds?.length && data.connected_account_urls) {
173
- return data.connected_account_urls.map((url, index) => ({
174
- url: new URL(url),
175
- name: `${serverName}-${connectedAccountIds[index]}`,
176
- toolkit: toolkits?.[index]
177
- }));
178
- } else if (userIds?.length && data.user_ids_url) {
179
- return data.user_ids_url.map((url, index) => ({
180
- url: new URL(url),
181
- name: `${serverName}-${userIds[index]}`,
182
- toolkit: toolkits?.[index]
183
- }));
184
- }
185
- return {
186
- url: new URL(data.mcp_url),
187
- name: serverName
188
- };
168
+ wrapMcpServerResponse(data) {
169
+ return data.map((item) => ({
170
+ url: new URL(item.url),
171
+ name: item.name
172
+ }));
189
173
  }
190
174
  };
191
175
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@composio/vercel",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -22,14 +22,14 @@
22
22
  "author": "",
23
23
  "license": "ISC",
24
24
  "peerDependencies": {
25
- "@composio/core": "0.1.26",
25
+ "@composio/core": "0.1.28",
26
26
  "ai": "^4.3.8"
27
27
  },
28
28
  "devDependencies": {
29
29
  "tsup": "^8.4.0",
30
30
  "typescript": "^5.8.3",
31
31
  "vitest": "^3.1.4",
32
- "@composio/core": "0.1.26"
32
+ "@composio/core": "0.1.28"
33
33
  },
34
34
  "gitHead": "4fae6e54d5c150fba955cc5fa314281da5a1e064",
35
35
  "scripts": {