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