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