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