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