@composio/client 0.1.0-alpha.10 → 0.1.0-alpha.11

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 (170) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/client.d.mts +6 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/auth-configs.d.mts +163 -24
  10. package/resources/auth-configs.d.mts.map +1 -1
  11. package/resources/auth-configs.d.ts +163 -24
  12. package/resources/auth-configs.d.ts.map +1 -1
  13. package/resources/auth-configs.js +50 -4
  14. package/resources/auth-configs.js.map +1 -1
  15. package/resources/auth-configs.mjs +50 -4
  16. package/resources/auth-configs.mjs.map +1 -1
  17. package/resources/connected-accounts.d.mts +80 -17
  18. package/resources/connected-accounts.d.mts.map +1 -1
  19. package/resources/connected-accounts.d.ts +80 -17
  20. package/resources/connected-accounts.d.ts.map +1 -1
  21. package/resources/connected-accounts.js +56 -4
  22. package/resources/connected-accounts.js.map +1 -1
  23. package/resources/connected-accounts.mjs +56 -4
  24. package/resources/connected-accounts.mjs.map +1 -1
  25. package/resources/files.d.mts +56 -23
  26. package/resources/files.d.mts.map +1 -1
  27. package/resources/files.d.ts +56 -23
  28. package/resources/files.d.ts.map +1 -1
  29. package/resources/files.js +20 -2
  30. package/resources/files.js.map +1 -1
  31. package/resources/files.mjs +20 -2
  32. package/resources/files.mjs.map +1 -1
  33. package/resources/index.d.mts +3 -3
  34. package/resources/index.d.mts.map +1 -1
  35. package/resources/index.d.ts +3 -3
  36. package/resources/index.d.ts.map +1 -1
  37. package/resources/index.js.map +1 -1
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/mcp/command.d.mts +0 -33
  40. package/resources/mcp/command.d.mts.map +1 -1
  41. package/resources/mcp/command.d.ts +0 -33
  42. package/resources/mcp/command.d.ts.map +1 -1
  43. package/resources/mcp/command.js +0 -6
  44. package/resources/mcp/command.js.map +1 -1
  45. package/resources/mcp/command.mjs +0 -6
  46. package/resources/mcp/command.mjs.map +1 -1
  47. package/resources/mcp/index.d.mts +2 -2
  48. package/resources/mcp/index.d.mts.map +1 -1
  49. package/resources/mcp/index.d.ts +2 -2
  50. package/resources/mcp/index.d.ts.map +1 -1
  51. package/resources/mcp/index.js.map +1 -1
  52. package/resources/mcp/index.mjs.map +1 -1
  53. package/resources/mcp/mcp.d.mts +232 -235
  54. package/resources/mcp/mcp.d.mts.map +1 -1
  55. package/resources/mcp/mcp.d.ts +232 -235
  56. package/resources/mcp/mcp.d.ts.map +1 -1
  57. package/resources/mcp/mcp.js +55 -19
  58. package/resources/mcp/mcp.js.map +1 -1
  59. package/resources/mcp/mcp.mjs +55 -19
  60. package/resources/mcp/mcp.mjs.map +1 -1
  61. package/resources/migration.d.mts +11 -2
  62. package/resources/migration.d.mts.map +1 -1
  63. package/resources/migration.d.ts +11 -2
  64. package/resources/migration.d.ts.map +1 -1
  65. package/resources/migration.js +3 -1
  66. package/resources/migration.js.map +1 -1
  67. package/resources/migration.mjs +3 -1
  68. package/resources/migration.mjs.map +1 -1
  69. package/resources/org/api-key.d.mts +23 -2
  70. package/resources/org/api-key.d.mts.map +1 -1
  71. package/resources/org/api-key.d.ts +23 -2
  72. package/resources/org/api-key.d.ts.map +1 -1
  73. package/resources/org/api-key.js +15 -2
  74. package/resources/org/api-key.js.map +1 -1
  75. package/resources/org/api-key.mjs +15 -2
  76. package/resources/org/api-key.mjs.map +1 -1
  77. package/resources/org/project/api-keys.d.mts +97 -20
  78. package/resources/org/project/api-keys.d.mts.map +1 -1
  79. package/resources/org/project/api-keys.d.ts +97 -20
  80. package/resources/org/project/api-keys.d.ts.map +1 -1
  81. package/resources/org/project/api-keys.js +57 -0
  82. package/resources/org/project/api-keys.js.map +1 -1
  83. package/resources/org/project/api-keys.mjs +57 -0
  84. package/resources/org/project/api-keys.mjs.map +1 -1
  85. package/resources/org/project/project.d.mts +176 -4
  86. package/resources/org/project/project.d.mts.map +1 -1
  87. package/resources/org/project/project.d.ts +176 -4
  88. package/resources/org/project/project.d.ts.map +1 -1
  89. package/resources/org/project/project.js +46 -3
  90. package/resources/org/project/project.js.map +1 -1
  91. package/resources/org/project/project.mjs +46 -3
  92. package/resources/org/project/project.mjs.map +1 -1
  93. package/resources/org/project/trigger.d.mts +101 -1
  94. package/resources/org/project/trigger.d.mts.map +1 -1
  95. package/resources/org/project/trigger.d.ts +101 -1
  96. package/resources/org/project/trigger.d.ts.map +1 -1
  97. package/resources/org/project/trigger.js +21 -0
  98. package/resources/org/project/trigger.js.map +1 -1
  99. package/resources/org/project/trigger.mjs +21 -0
  100. package/resources/org/project/trigger.mjs.map +1 -1
  101. package/resources/org/project/webhook.d.mts +86 -15
  102. package/resources/org/project/webhook.d.mts.map +1 -1
  103. package/resources/org/project/webhook.d.ts +86 -15
  104. package/resources/org/project/webhook.d.ts.map +1 -1
  105. package/resources/org/project/webhook.js +49 -2
  106. package/resources/org/project/webhook.js.map +1 -1
  107. package/resources/org/project/webhook.mjs +49 -2
  108. package/resources/org/project/webhook.mjs.map +1 -1
  109. package/resources/toolkits.d.mts +195 -7
  110. package/resources/toolkits.d.mts.map +1 -1
  111. package/resources/toolkits.d.ts +195 -7
  112. package/resources/toolkits.d.ts.map +1 -1
  113. package/resources/toolkits.js +14 -6
  114. package/resources/toolkits.js.map +1 -1
  115. package/resources/toolkits.mjs +14 -6
  116. package/resources/toolkits.mjs.map +1 -1
  117. package/resources/tools.d.mts +207 -40
  118. package/resources/tools.d.mts.map +1 -1
  119. package/resources/tools.d.ts +207 -40
  120. package/resources/tools.d.ts.map +1 -1
  121. package/resources/tools.js +58 -5
  122. package/resources/tools.js.map +1 -1
  123. package/resources/tools.mjs +58 -5
  124. package/resources/tools.mjs.map +1 -1
  125. package/resources/trigger-instances/index.d.mts +1 -1
  126. package/resources/trigger-instances/index.d.mts.map +1 -1
  127. package/resources/trigger-instances/index.d.ts +1 -1
  128. package/resources/trigger-instances/index.d.ts.map +1 -1
  129. package/resources/trigger-instances/index.js.map +1 -1
  130. package/resources/trigger-instances/index.mjs.map +1 -1
  131. package/resources/trigger-instances/trigger-instances.d.mts +21 -24
  132. package/resources/trigger-instances/trigger-instances.d.mts.map +1 -1
  133. package/resources/trigger-instances/trigger-instances.d.ts +21 -24
  134. package/resources/trigger-instances/trigger-instances.d.ts.map +1 -1
  135. package/resources/trigger-instances/trigger-instances.js +1 -8
  136. package/resources/trigger-instances/trigger-instances.js.map +1 -1
  137. package/resources/trigger-instances/trigger-instances.mjs +1 -8
  138. package/resources/trigger-instances/trigger-instances.mjs.map +1 -1
  139. package/resources/triggers-types.d.mts +96 -2
  140. package/resources/triggers-types.d.mts.map +1 -1
  141. package/resources/triggers-types.d.ts +96 -2
  142. package/resources/triggers-types.d.ts.map +1 -1
  143. package/resources/triggers-types.js +23 -1
  144. package/resources/triggers-types.js.map +1 -1
  145. package/resources/triggers-types.mjs +23 -1
  146. package/resources/triggers-types.mjs.map +1 -1
  147. package/src/client.ts +4 -14
  148. package/src/resources/auth-configs.ts +164 -24
  149. package/src/resources/connected-accounts.ts +80 -17
  150. package/src/resources/files.ts +56 -23
  151. package/src/resources/index.ts +2 -7
  152. package/src/resources/mcp/command.ts +1 -46
  153. package/src/resources/mcp/index.ts +2 -5
  154. package/src/resources/mcp/mcp.ts +240 -280
  155. package/src/resources/migration.ts +11 -2
  156. package/src/resources/org/api-key.ts +23 -2
  157. package/src/resources/org/project/api-keys.ts +97 -20
  158. package/src/resources/org/project/project.ts +176 -4
  159. package/src/resources/org/project/trigger.ts +101 -1
  160. package/src/resources/org/project/webhook.ts +86 -15
  161. package/src/resources/toolkits.ts +200 -7
  162. package/src/resources/tools.ts +207 -40
  163. package/src/resources/trigger-instances/index.ts +0 -3
  164. package/src/resources/trigger-instances/trigger-instances.ts +22 -38
  165. package/src/resources/triggers-types.ts +96 -2
  166. package/src/version.ts +1 -1
  167. package/version.d.mts +1 -1
  168. package/version.d.ts +1 -1
  169. package/version.js +1 -1
  170. package/version.mjs +1 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as CommandAPI from './command';
5
- import { Command, CommandGenerateParams, CommandGenerateResponse } from './command';
5
+ import { Command } from './command';
6
6
  import { APIPromise } from '../../core/api-promise';
7
7
  import { buildHeaders } from '../../internal/headers';
8
8
  import { RequestOptions } from '../../internal/request-options';
@@ -12,21 +12,33 @@ export class Mcp extends APIResource {
12
12
  command: CommandAPI.Command = new CommandAPI.Command(this._client);
13
13
 
14
14
  /**
15
- * Create a new MCP server
16
- */
17
- create(body: McpCreateParams, options?: RequestOptions): APIPromise<McpCreateResponse> {
18
- return this._client.post('/api/v3/mcp/create', { body, ...options });
19
- }
20
-
21
- /**
22
- * Get MCP server details by ID
15
+ * Retrieves detailed configuration information for a specific Model Control
16
+ * Protocol (MCP) server. The returned data includes connection details, associated
17
+ * applications, enabled tools, and authentication configuration.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const mcp = await client.mcp.retrieve(
22
+ * '550e8400-e29b-41d4-a716-446655440000',
23
+ * );
24
+ * ```
23
25
  */
24
26
  retrieve(id: string, options?: RequestOptions): APIPromise<McpRetrieveResponse> {
25
27
  return this._client.get(path`/api/v3/mcp/${id}`, options);
26
28
  }
27
29
 
28
30
  /**
29
- * Update MCP server configuration
31
+ * Updates the configuration of an existing Model Control Protocol (MCP) server.
32
+ * You can modify the server name, associated applications, and enabled tools. Only
33
+ * the fields included in the request will be updated.
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * const mcp = await client.mcp.update(
38
+ * '550e8400-e29b-41d4-a716-446655440000',
39
+ * { name: 'Updated GitHub Integration Server' },
40
+ * );
41
+ * ```
30
42
  */
31
43
  update(
32
44
  id: string,
@@ -37,28 +49,54 @@ export class Mcp extends APIResource {
37
49
  }
38
50
 
39
51
  /**
40
- * List MCP servers with optional filters
41
- */
42
- list(query: McpListParams | null | undefined = {}, options?: RequestOptions): APIPromise<McpListResponse> {
43
- return this._client.get('/api/v3/mcp/list', { query, ...options });
44
- }
45
-
46
- /**
47
- * Delete an MCP server
52
+ * Performs a soft delete on a Model Control Protocol (MCP) server, making it
53
+ * unavailable for future use. This operation is reversible in the database but
54
+ * cannot be undone through the API. Any applications or services connected to this
55
+ * server will lose access after deletion.
56
+ *
57
+ * @example
58
+ * ```ts
59
+ * const mcp = await client.mcp.delete(
60
+ * '550e8400-e29b-41d4-a716-446655440000',
61
+ * );
62
+ * ```
48
63
  */
49
64
  delete(id: string, options?: RequestOptions): APIPromise<McpDeleteResponse> {
50
65
  return this._client.delete(path`/api/v3/mcp/${id}`, options);
51
66
  }
52
67
 
53
68
  /**
54
- * List MCP servers for a specific app
69
+ * Retrieves a paginated list of Model Control Protocol (MCP) servers that are
70
+ * configured for a specific application or toolkit. This endpoint allows you to
71
+ * find all MCP server instances that have access to a particular application, such
72
+ * as GitHub, Slack, or Jira.
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const response = await client.mcp.retrieveApp('github');
77
+ * ```
55
78
  */
56
- retrieveApp(appKey: string, options?: RequestOptions): APIPromise<McpRetrieveAppResponse> {
57
- return this._client.get(path`/api/v3/mcp/app/${appKey}`, options);
79
+ retrieveApp(
80
+ appKey: string,
81
+ query: McpRetrieveAppParams | null | undefined = {},
82
+ options?: RequestOptions,
83
+ ): APIPromise<McpRetrieveAppResponse> {
84
+ return this._client.get(path`/api/v3/mcp/app/${appKey}`, { query, ...options });
58
85
  }
59
86
 
60
87
  /**
61
- * Validate MCP server and retrieve connection details
88
+ * Admin-only endpoint that validates a Model Control Protocol (MCP) server and
89
+ * retrieves its complete configuration details, including authentication
90
+ * information. This endpoint is typically used by the MCP service itself to
91
+ * authenticate and authorize connection requests from clients.
92
+ *
93
+ * @example
94
+ * ```ts
95
+ * const response = await client.mcp.validate(
96
+ * '550e8400-e29b-41d4-a716-446655440000',
97
+ * { 'x-composio-admin-token': 'admin_tk_12345abcdef' },
98
+ * );
99
+ * ```
62
100
  */
63
101
  validate(
64
102
  uuid: string,
@@ -73,71 +111,33 @@ export class Mcp extends APIResource {
73
111
  }
74
112
  }
75
113
 
76
- export interface McpCreateResponse {
114
+ /**
115
+ * MCP server configuration and connection details
116
+ */
117
+ export interface McpRetrieveResponse {
77
118
  /**
78
- * The ID of the MCP server
119
+ * UUID of the MCP server instance
79
120
  */
80
121
  id: string;
81
122
 
82
123
  /**
83
- * The app IDs associated with the server
124
+ * Array of tool slugs that this MCP server is allowed to use
84
125
  */
85
- apps: Array<string>;
126
+ allowed_tools: Array<string>;
86
127
 
87
128
  /**
88
- * The member ID who created the server
129
+ * ID reference to the auth configuration used by this server
89
130
  */
90
- member_id: string;
131
+ auth_config_id: string;
91
132
 
92
133
  /**
93
- * The name of the MCP server
134
+ * Set of command line instructions for connecting various clients to this MCP
135
+ * server
94
136
  */
95
- name: string;
137
+ commands: McpRetrieveResponse.Commands;
96
138
 
97
139
  /**
98
- * Signed URL for the MCP server
99
- */
100
- signed_url: string;
101
-
102
- /**
103
- * Last update timestamp of the MCP server
104
- */
105
- updated_at: string;
106
-
107
- /**
108
- * The URL of the MCP server
109
- */
110
- url: string;
111
-
112
- /**
113
- * Auth configuration
114
- */
115
- auth_configs?: Record<string, unknown>;
116
-
117
- /**
118
- * Connected account IDs
119
- */
120
- connected_account_ids?: Array<string>;
121
- }
122
-
123
- export interface McpRetrieveResponse {
124
- /**
125
- * The ID of the MCP server
126
- */
127
- id: string;
128
-
129
- /**
130
- * The app IDs associated with the server
131
- */
132
- apps: Array<string>;
133
-
134
- /**
135
- * Client ID associated with the MCP server
136
- */
137
- client_id: string;
138
-
139
- /**
140
- * Creation timestamp of the MCP server
140
+ * Date and time when this server was initially created
141
141
  */
142
142
  created_at: string;
143
143
 
@@ -147,69 +147,71 @@ export interface McpRetrieveResponse {
147
147
  deleted: boolean;
148
148
 
149
149
  /**
150
- * The member ID who created the server
150
+ * URL endpoint for establishing SSE connection to this MCP server
151
151
  */
152
- member_id: string;
152
+ mcp_url: string;
153
153
 
154
154
  /**
155
- * The name of the MCP server
155
+ * User-defined descriptive name for this MCP server
156
156
  */
157
157
  name: string;
158
158
 
159
159
  /**
160
- * Last update timestamp of the MCP server
160
+ * Date and time when this server configuration was last modified
161
161
  */
162
162
  updated_at: string;
163
+ }
163
164
 
165
+ export namespace McpRetrieveResponse {
164
166
  /**
165
- * The URL of the MCP server
166
- */
167
- url: string;
168
-
169
- /**
170
- * Actions available for the MCP server
171
- */
172
- actions?: Record<string, unknown>;
173
-
174
- /**
175
- * Auth configuration
176
- */
177
- auth_configs?: Record<string, unknown>;
178
-
179
- /**
180
- * Connected account IDs
167
+ * Set of command line instructions for connecting various clients to this MCP
168
+ * server
181
169
  */
182
- connected_account_ids?: Array<string>;
170
+ export interface Commands {
171
+ /**
172
+ * Command line instruction for Claude client setup
173
+ */
174
+ claude: string;
183
175
 
184
- /**
185
- * Whether custom auth headers are enabled
186
- */
187
- custom_auth_headers?: boolean;
176
+ /**
177
+ * Command line instruction for Cursor client setup
178
+ */
179
+ cursor: string;
188
180
 
189
- /**
190
- * Entity IDs associated with the server
191
- */
192
- entity_ids?: Array<string>;
181
+ /**
182
+ * Command line instruction for Windsurf client setup
183
+ */
184
+ windsurf: string;
185
+ }
193
186
  }
194
187
 
188
+ /**
189
+ * MCP server configuration and connection details
190
+ */
195
191
  export interface McpUpdateResponse {
196
192
  /**
197
- * The ID of the MCP server
193
+ * UUID of the MCP server instance
198
194
  */
199
195
  id: string;
200
196
 
201
197
  /**
202
- * The app IDs associated with the server
198
+ * Array of tool slugs that this MCP server is allowed to use
203
199
  */
204
- apps: Array<string>;
200
+ allowed_tools: Array<string>;
205
201
 
206
202
  /**
207
- * Client ID associated with the MCP server
203
+ * ID reference to the auth configuration used by this server
208
204
  */
209
- client_id: string;
205
+ auth_config_id: string;
210
206
 
211
207
  /**
212
- * Creation timestamp of the MCP server
208
+ * Set of command line instructions for connecting various clients to this MCP
209
+ * server
210
+ */
211
+ commands: McpUpdateResponse.Commands;
212
+
213
+ /**
214
+ * Date and time when this server was initially created
213
215
  */
214
216
  created_at: string;
215
217
 
@@ -219,320 +221,285 @@ export interface McpUpdateResponse {
219
221
  deleted: boolean;
220
222
 
221
223
  /**
222
- * The member ID who created the server
224
+ * URL endpoint for establishing SSE connection to this MCP server
223
225
  */
224
- member_id: string;
226
+ mcp_url: string;
225
227
 
226
228
  /**
227
- * The name of the MCP server
229
+ * User-defined descriptive name for this MCP server
228
230
  */
229
231
  name: string;
230
232
 
231
233
  /**
232
- * Last update timestamp of the MCP server
234
+ * Date and time when this server configuration was last modified
233
235
  */
234
236
  updated_at: string;
237
+ }
235
238
 
239
+ export namespace McpUpdateResponse {
236
240
  /**
237
- * The URL of the MCP server
238
- */
239
- url: string;
240
-
241
- /**
242
- * Actions available for the MCP server
243
- */
244
- actions?: Record<string, unknown>;
245
-
246
- /**
247
- * Auth configuration
248
- */
249
- auth_configs?: Record<string, unknown>;
250
-
251
- /**
252
- * Connected account IDs
253
- */
254
- connected_account_ids?: Array<string>;
255
-
256
- /**
257
- * Whether custom auth headers are enabled
258
- */
259
- custom_auth_headers?: boolean;
260
-
261
- /**
262
- * Entity IDs associated with the server
241
+ * Set of command line instructions for connecting various clients to this MCP
242
+ * server
263
243
  */
264
- entity_ids?: Array<string>;
265
- }
266
-
267
- export interface McpListResponse {
268
- items: Array<McpListResponse.Item>;
269
- }
270
-
271
- export namespace McpListResponse {
272
- export interface Item {
244
+ export interface Commands {
273
245
  /**
274
- * The ID of the MCP server
246
+ * Command line instruction for Claude client setup
275
247
  */
276
- id: string;
248
+ claude: string;
277
249
 
278
250
  /**
279
- * The app IDs associated with the server
251
+ * Command line instruction for Cursor client setup
280
252
  */
281
- apps: Array<string>;
253
+ cursor: string;
282
254
 
283
255
  /**
284
- * The member ID who created the server
256
+ * Command line instruction for Windsurf client setup
285
257
  */
286
- member_id: string;
287
-
288
- /**
289
- * The name of the MCP server
290
- */
291
- name: string;
292
-
293
- /**
294
- * Last update timestamp of the MCP server
295
- */
296
- updated_at: string;
297
-
298
- /**
299
- * The URL of the MCP server
300
- */
301
- url: string;
302
-
303
- /**
304
- * Actions available for the MCP server
305
- */
306
- actions?: Array<string>;
307
-
308
- /**
309
- * Auth configuration
310
- */
311
- auth_configs?: Record<string, unknown>;
312
-
313
- /**
314
- * Connected account IDs
315
- */
316
- connected_account_ids?: Array<string>;
258
+ windsurf: string;
317
259
  }
318
260
  }
319
261
 
262
+ /**
263
+ * Response indicating the success of the delete operation
264
+ */
320
265
  export interface McpDeleteResponse {
321
266
  /**
322
- * Operation success status
267
+ * Indicates whether the MCP server was successfully deleted
323
268
  */
324
269
  success: boolean;
325
270
  }
326
271
 
272
+ /**
273
+ * Paginated response containing MCP servers
274
+ */
327
275
  export interface McpRetrieveAppResponse {
276
+ /**
277
+ * Current page number being returned
278
+ */
279
+ current_page: string;
280
+
281
+ /**
282
+ * Array of MCP server configurations
283
+ */
328
284
  items: Array<McpRetrieveAppResponse.Item>;
285
+
286
+ /**
287
+ * Total number of pages in the paginated response
288
+ */
289
+ total_pages: string;
329
290
  }
330
291
 
331
292
  export namespace McpRetrieveAppResponse {
293
+ /**
294
+ * MCP server configuration and connection details
295
+ */
332
296
  export interface Item {
333
297
  /**
334
- * The ID of the MCP server
298
+ * UUID of the MCP server instance
335
299
  */
336
300
  id: string;
337
301
 
338
302
  /**
339
- * The app IDs associated with the server
303
+ * Array of tool slugs that this MCP server is allowed to use
340
304
  */
341
- apps: Array<string>;
305
+ allowed_tools: Array<string>;
342
306
 
343
307
  /**
344
- * The member ID who created the server
308
+ * ID reference to the auth configuration used by this server
345
309
  */
346
- member_id: string;
310
+ auth_config_id: string;
347
311
 
348
312
  /**
349
- * The name of the MCP server
313
+ * Set of command line instructions for connecting various clients to this MCP
314
+ * server
350
315
  */
351
- name: string;
316
+ commands: Item.Commands;
352
317
 
353
318
  /**
354
- * Last update timestamp of the MCP server
319
+ * Date and time when this server was initially created
355
320
  */
356
- updated_at: string;
321
+ created_at: string;
357
322
 
358
323
  /**
359
- * The URL of the MCP server
324
+ * URL endpoint for establishing SSE connection to this MCP server
360
325
  */
361
- url: string;
326
+ mcp_url: string;
362
327
 
363
328
  /**
364
- * Actions available for the MCP server
329
+ * User-defined descriptive name for this MCP server
365
330
  */
366
- actions?: Array<string>;
331
+ name: string;
367
332
 
368
333
  /**
369
- * Auth configuration
334
+ * Date and time when this server configuration was last modified
370
335
  */
371
- auth_configs?: Record<string, unknown>;
336
+ updated_at: string;
337
+ }
372
338
 
339
+ export namespace Item {
373
340
  /**
374
- * Connected account IDs
341
+ * Set of command line instructions for connecting various clients to this MCP
342
+ * server
375
343
  */
376
- connected_account_ids?: Array<string>;
344
+ export interface Commands {
345
+ /**
346
+ * Command line instruction for Claude client setup
347
+ */
348
+ claude: string;
349
+
350
+ /**
351
+ * Command line instruction for Cursor client setup
352
+ */
353
+ cursor: string;
354
+
355
+ /**
356
+ * Command line instruction for Windsurf client setup
357
+ */
358
+ windsurf: string;
359
+ }
377
360
  }
378
361
  }
379
362
 
363
+ /**
364
+ * Complete validation and connection details for an MCP server
365
+ */
380
366
  export interface McpValidateResponse {
381
367
  /**
382
- * The ID of the MCP server
368
+ * Unique identifier of the validated MCP server
383
369
  */
384
370
  id: string;
385
371
 
372
+ /**
373
+ * Client information for the MCP server
374
+ */
386
375
  client: McpValidateResponse.Client;
387
376
 
388
377
  /**
389
- * The name of the MCP server
378
+ * Human-readable name of the MCP server
390
379
  */
391
380
  name: string;
392
381
 
393
382
  /**
394
- * The URL of the MCP server
383
+ * URL endpoint for connecting to this MCP server
395
384
  */
396
385
  url: string;
397
386
 
387
+ /**
388
+ * User authentication data for the MCP server
389
+ */
398
390
  userData: McpValidateResponse.UserData;
399
391
 
392
+ /**
393
+ * List of action identifiers enabled for this server
394
+ */
400
395
  actions?: Array<string> | null;
401
396
 
397
+ /**
398
+ * List of application identifiers this server is configured for
399
+ */
402
400
  apps?: Array<string>;
403
401
 
402
+ /**
403
+ * List of connected account identifiers this server can use for authentication
404
+ */
404
405
  connectedAccountIds?: Array<string> | null;
405
406
 
407
+ /**
408
+ * Flag indicating if this server uses custom authentication headers
409
+ */
406
410
  customAuthHeaders?: boolean;
407
411
 
412
+ /**
413
+ * List of entity identifiers this MCP server can interact with
414
+ */
408
415
  entityIds?: Array<string> | null;
409
416
  }
410
417
 
411
418
  export namespace McpValidateResponse {
419
+ /**
420
+ * Client information for the MCP server
421
+ */
412
422
  export interface Client {
413
423
  /**
414
- * The client ID
424
+ * Project identifier that owns this MCP server
415
425
  */
416
426
  id: string;
417
427
 
418
428
  /**
419
- * The organization ID
429
+ * Organization identifier that owns the project
420
430
  */
421
431
  orgId: string;
422
432
  }
423
433
 
434
+ /**
435
+ * User authentication data for the MCP server
436
+ */
424
437
  export interface UserData {
425
438
  /**
426
- * The user ID
439
+ * User identifier for API access
427
440
  */
428
441
  id: string;
429
442
 
430
443
  /**
431
- * The API key
444
+ * API key for authenticating requests to the Composio API
432
445
  */
433
446
  apiKey: string;
434
447
 
435
448
  /**
436
- * The user email
449
+ * Email address associated with the API key user
437
450
  */
438
451
  email: string;
439
452
  }
440
453
  }
441
454
 
442
- export interface McpCreateParams {
443
- /**
444
- * Name of the MCP server
445
- */
446
- name: string;
447
-
448
- /**
449
- * Actions available for the server
450
- */
451
- actions?: Array<string>;
452
-
453
- /**
454
- * App IDs associated with the server
455
- */
456
- apps?: Array<string>;
457
-
458
- /**
459
- * Auth configurations
460
- */
461
- auth_configs?: Record<string, unknown>;
462
-
463
- /**
464
- * Connected account IDs
465
- */
466
- connected_account_ids?: Array<string>;
467
-
468
- /**
469
- * Whether to use custom auth headers
470
- */
471
- custom_auth_headers?: boolean;
472
-
473
- /**
474
- * Entity IDs
475
- */
476
- entity_ids?: Array<string>;
477
-
478
- /**
479
- * Time to live for the server
480
- */
481
- ttl?: '1d' | '3d' | '1 month' | 'no expiration';
482
- }
483
-
484
455
  export interface McpUpdateParams {
485
456
  /**
486
- * Actions available for the server
457
+ * List of action identifiers that should be enabled for this server
487
458
  */
488
459
  actions?: Array<string>;
489
460
 
490
461
  /**
491
- * App IDs associated with the server
462
+ * List of application identifiers this server should be configured to work with
492
463
  */
493
464
  apps?: Array<string>;
494
465
 
495
466
  /**
496
- * Name of the MCP server
467
+ * Human-readable name to identify this MCP server instance (4-25 characters,
468
+ * alphanumeric and hyphens only)
497
469
  */
498
470
  name?: string;
499
471
  }
500
472
 
501
- export interface McpListParams {
502
- /**
503
- * App IDs to filter by
504
- */
505
- app_id?: Array<string> | null;
506
-
473
+ export interface McpRetrieveAppParams {
507
474
  /**
508
- * Connected account IDs to filter by
475
+ * Filter MCP servers by authentication configuration ID
509
476
  */
510
- connected_account_id?: Array<string> | null;
477
+ auth_config_id?: string;
511
478
 
512
479
  /**
513
- * Cursor for pagination
480
+ * Number of items per page (default: 10)
514
481
  */
515
- cursor?: number | null;
482
+ limit?: number | null;
516
483
 
517
484
  /**
518
- * Entity IDs to filter by
485
+ * Filter MCP servers by name (case-insensitive partial match)
519
486
  */
520
- entity_id?: Array<string> | null;
487
+ name?: string;
521
488
 
522
489
  /**
523
- * Integration ID to filter by
490
+ * Page number for pagination (1-based)
524
491
  */
525
- integration_id?: string;
492
+ page_no?: number | null;
526
493
 
527
494
  /**
528
- * Limit for pagination
495
+ * Filter MCP servers by toolkit slug
529
496
  */
530
- limit?: number | null;
497
+ toolkit?: string;
531
498
  }
532
499
 
533
500
  export interface McpValidateParams {
534
501
  /**
535
- * Admin token
502
+ * Administrative access token required for validating MCP servers
536
503
  */
537
504
  'x-composio-admin-token': string;
538
505
  }
@@ -541,22 +508,15 @@ Mcp.Command = Command;
541
508
 
542
509
  export declare namespace Mcp {
543
510
  export {
544
- type McpCreateResponse as McpCreateResponse,
545
511
  type McpRetrieveResponse as McpRetrieveResponse,
546
512
  type McpUpdateResponse as McpUpdateResponse,
547
- type McpListResponse as McpListResponse,
548
513
  type McpDeleteResponse as McpDeleteResponse,
549
514
  type McpRetrieveAppResponse as McpRetrieveAppResponse,
550
515
  type McpValidateResponse as McpValidateResponse,
551
- type McpCreateParams as McpCreateParams,
552
516
  type McpUpdateParams as McpUpdateParams,
553
- type McpListParams as McpListParams,
517
+ type McpRetrieveAppParams as McpRetrieveAppParams,
554
518
  type McpValidateParams as McpValidateParams,
555
519
  };
556
520
 
557
- export {
558
- Command as Command,
559
- type CommandGenerateResponse as CommandGenerateResponse,
560
- type CommandGenerateParams as CommandGenerateParams,
561
- };
521
+ export { Command as Command };
562
522
  }