@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/resources/mcp/mcp.d.ts
CHANGED
|
@@ -1,92 +1,102 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as CommandAPI from "./command.js";
|
|
3
|
-
import { Command
|
|
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
|
-
*
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
*
|
|
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
|
-
*
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
*
|
|
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
|
-
|
|
77
|
+
/**
|
|
78
|
+
* MCP server configuration and connection details
|
|
79
|
+
*/
|
|
80
|
+
export interface McpRetrieveResponse {
|
|
38
81
|
/**
|
|
39
|
-
*
|
|
82
|
+
* UUID of the MCP server instance
|
|
40
83
|
*/
|
|
41
84
|
id: string;
|
|
42
85
|
/**
|
|
43
|
-
*
|
|
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
|
-
|
|
88
|
+
allowed_tools: Array<string>;
|
|
66
89
|
/**
|
|
67
|
-
*
|
|
90
|
+
* ID reference to the auth configuration used by this server
|
|
68
91
|
*/
|
|
69
|
-
|
|
92
|
+
auth_config_id: string;
|
|
70
93
|
/**
|
|
71
|
-
*
|
|
94
|
+
* Set of command line instructions for connecting various clients to this MCP
|
|
95
|
+
* server
|
|
72
96
|
*/
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
export interface McpRetrieveResponse {
|
|
97
|
+
commands: McpRetrieveResponse.Commands;
|
|
76
98
|
/**
|
|
77
|
-
*
|
|
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
|
-
*
|
|
107
|
+
* URL endpoint for establishing SSE connection to this MCP server
|
|
98
108
|
*/
|
|
99
|
-
|
|
109
|
+
mcp_url: string;
|
|
100
110
|
/**
|
|
101
|
-
*
|
|
111
|
+
* User-defined descriptive name for this MCP server
|
|
102
112
|
*/
|
|
103
113
|
name: string;
|
|
104
114
|
/**
|
|
105
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
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
|
-
*
|
|
144
|
+
* UUID of the MCP server instance
|
|
136
145
|
*/
|
|
137
146
|
id: string;
|
|
138
147
|
/**
|
|
139
|
-
*
|
|
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
|
-
|
|
154
|
+
auth_config_id: string;
|
|
142
155
|
/**
|
|
143
|
-
*
|
|
156
|
+
* Set of command line instructions for connecting various clients to this MCP
|
|
157
|
+
* server
|
|
144
158
|
*/
|
|
145
|
-
|
|
159
|
+
commands: McpUpdateResponse.Commands;
|
|
146
160
|
/**
|
|
147
|
-
*
|
|
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
|
-
*
|
|
169
|
+
* URL endpoint for establishing SSE connection to this MCP server
|
|
156
170
|
*/
|
|
157
|
-
|
|
171
|
+
mcp_url: string;
|
|
158
172
|
/**
|
|
159
|
-
*
|
|
173
|
+
* User-defined descriptive name for this MCP server
|
|
160
174
|
*/
|
|
161
175
|
name: string;
|
|
162
176
|
/**
|
|
163
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
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
|
-
*
|
|
188
|
+
* Command line instruction for Claude client setup
|
|
202
189
|
*/
|
|
203
|
-
|
|
190
|
+
claude: string;
|
|
204
191
|
/**
|
|
205
|
-
*
|
|
192
|
+
* Command line instruction for Cursor client setup
|
|
206
193
|
*/
|
|
207
|
-
|
|
194
|
+
cursor: string;
|
|
208
195
|
/**
|
|
209
|
-
*
|
|
196
|
+
* Command line instruction for Windsurf client setup
|
|
210
197
|
*/
|
|
211
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
233
|
+
* UUID of the MCP server instance
|
|
247
234
|
*/
|
|
248
235
|
id: string;
|
|
249
236
|
/**
|
|
250
|
-
*
|
|
237
|
+
* Array of tool slugs that this MCP server is allowed to use
|
|
251
238
|
*/
|
|
252
|
-
|
|
239
|
+
allowed_tools: Array<string>;
|
|
253
240
|
/**
|
|
254
|
-
*
|
|
241
|
+
* ID reference to the auth configuration used by this server
|
|
255
242
|
*/
|
|
256
|
-
|
|
243
|
+
auth_config_id: string;
|
|
257
244
|
/**
|
|
258
|
-
*
|
|
245
|
+
* Set of command line instructions for connecting various clients to this MCP
|
|
246
|
+
* server
|
|
259
247
|
*/
|
|
260
|
-
|
|
248
|
+
commands: Item.Commands;
|
|
261
249
|
/**
|
|
262
|
-
*
|
|
250
|
+
* Date and time when this server was initially created
|
|
263
251
|
*/
|
|
264
|
-
|
|
252
|
+
created_at: string;
|
|
265
253
|
/**
|
|
266
|
-
*
|
|
254
|
+
* URL endpoint for establishing SSE connection to this MCP server
|
|
267
255
|
*/
|
|
268
|
-
|
|
256
|
+
mcp_url: string;
|
|
269
257
|
/**
|
|
270
|
-
*
|
|
258
|
+
* User-defined descriptive name for this MCP server
|
|
271
259
|
*/
|
|
272
|
-
|
|
260
|
+
name: string;
|
|
273
261
|
/**
|
|
274
|
-
*
|
|
262
|
+
* Date and time when this server configuration was last modified
|
|
275
263
|
*/
|
|
276
|
-
|
|
264
|
+
updated_at: string;
|
|
265
|
+
}
|
|
266
|
+
namespace Item {
|
|
277
267
|
/**
|
|
278
|
-
*
|
|
268
|
+
* Set of command line instructions for connecting various clients to this MCP
|
|
269
|
+
* server
|
|
279
270
|
*/
|
|
280
|
-
|
|
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
|
-
*
|
|
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
|
-
*
|
|
300
|
+
* Human-readable name of the MCP server
|
|
291
301
|
*/
|
|
292
302
|
name: string;
|
|
293
303
|
/**
|
|
294
|
-
*
|
|
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
|
-
*
|
|
338
|
+
* Project identifier that owns this MCP server
|
|
308
339
|
*/
|
|
309
340
|
id: string;
|
|
310
341
|
/**
|
|
311
|
-
*
|
|
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
|
-
*
|
|
351
|
+
* User identifier for API access
|
|
318
352
|
*/
|
|
319
353
|
id: string;
|
|
320
354
|
/**
|
|
321
|
-
*
|
|
355
|
+
* API key for authenticating requests to the Composio API
|
|
322
356
|
*/
|
|
323
357
|
apiKey: string;
|
|
324
358
|
/**
|
|
325
|
-
*
|
|
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
|
-
*
|
|
366
|
+
* List of action identifiers that should be enabled for this server
|
|
367
367
|
*/
|
|
368
368
|
actions?: Array<string>;
|
|
369
369
|
/**
|
|
370
|
-
*
|
|
370
|
+
* List of application identifiers this server should be configured to work with
|
|
371
371
|
*/
|
|
372
372
|
apps?: Array<string>;
|
|
373
373
|
/**
|
|
374
|
-
*
|
|
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
|
|
379
|
-
/**
|
|
380
|
-
* App IDs to filter by
|
|
381
|
-
*/
|
|
382
|
-
app_id?: Array<string> | null;
|
|
379
|
+
export interface McpRetrieveAppParams {
|
|
383
380
|
/**
|
|
384
|
-
*
|
|
381
|
+
* Filter MCP servers by authentication configuration ID
|
|
385
382
|
*/
|
|
386
|
-
|
|
383
|
+
auth_config_id?: string;
|
|
387
384
|
/**
|
|
388
|
-
*
|
|
385
|
+
* Number of items per page (default: 10)
|
|
389
386
|
*/
|
|
390
|
-
|
|
387
|
+
limit?: number | null;
|
|
391
388
|
/**
|
|
392
|
-
*
|
|
389
|
+
* Filter MCP servers by name (case-insensitive partial match)
|
|
393
390
|
*/
|
|
394
|
-
|
|
391
|
+
name?: string;
|
|
395
392
|
/**
|
|
396
|
-
*
|
|
393
|
+
* Page number for pagination (1-based)
|
|
397
394
|
*/
|
|
398
|
-
|
|
395
|
+
page_no?: number | null;
|
|
399
396
|
/**
|
|
400
|
-
*
|
|
397
|
+
* Filter MCP servers by toolkit slug
|
|
401
398
|
*/
|
|
402
|
-
|
|
399
|
+
toolkit?: string;
|
|
403
400
|
}
|
|
404
401
|
export interface McpValidateParams {
|
|
405
402
|
/**
|
|
406
|
-
*
|
|
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
|
|
412
|
-
export { Command as Command
|
|
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
|