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

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