@pulumi/digitalocean 4.85.0-alpha.1793836209 → 4.85.0
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/actionGatewayConnection.d.ts +264 -0
- package/actionGatewayConnection.d.ts.map +1 -0
- package/actionGatewayConnection.js +189 -0
- package/actionGatewayConnection.js.map +1 -0
- package/actionGatewayMcpServer.d.ts +367 -0
- package/actionGatewayMcpServer.d.ts.map +1 -0
- package/actionGatewayMcpServer.js +210 -0
- package/actionGatewayMcpServer.js.map +1 -0
- package/actionGatewayToolbelt.d.ts +192 -0
- package/actionGatewayToolbelt.d.ts.map +1 -0
- package/actionGatewayToolbelt.js +139 -0
- package/actionGatewayToolbelt.js.map +1 -0
- package/getActionGatewayConnection.d.ts +148 -0
- package/getActionGatewayConnection.d.ts.map +1 -0
- package/getActionGatewayConnection.js +93 -0
- package/getActionGatewayConnection.js.map +1 -0
- package/getActionGatewayProviders.d.ts +95 -0
- package/getActionGatewayProviders.d.ts.map +1 -0
- package/getActionGatewayProviders.js +93 -0
- package/getActionGatewayProviders.js.map +1 -0
- package/getActionGatewayToolbelt.d.ts +111 -0
- package/getActionGatewayToolbelt.d.ts.map +1 -0
- package/getActionGatewayToolbelt.js +81 -0
- package/getActionGatewayToolbelt.js.map +1 -0
- package/getKubernetesCluster.d.ts +4 -0
- package/getKubernetesCluster.d.ts.map +1 -1
- package/getKubernetesCluster.js.map +1 -1
- package/getMicrovm.d.ts +5 -0
- package/getMicrovm.d.ts.map +1 -1
- package/getMicrovm.js.map +1 -1
- package/index.d.ts +21 -0
- package/index.d.ts.map +1 -1
- package/index.js +35 -6
- package/index.js.map +1 -1
- package/kubernetesCluster.d.ts +12 -0
- package/kubernetesCluster.d.ts.map +1 -1
- package/kubernetesCluster.js +2 -0
- package/kubernetesCluster.js.map +1 -1
- package/microvm.d.ts +66 -0
- package/microvm.d.ts.map +1 -1
- package/microvm.js +46 -0
- package/microvm.js.map +1 -1
- package/microvmIngress.d.ts +173 -0
- package/microvmIngress.d.ts.map +1 -0
- package/microvmIngress.js +167 -0
- package/microvmIngress.js.map +1 -0
- package/package.json +2 -2
- package/types/input.d.ts +162 -0
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +283 -0
- package/types/output.d.ts.map +1 -1
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Provides a DigitalOcean [Action Gateway](https://docs.digitalocean.com/products/managed-agents/action-gateway/)
|
|
6
|
+
* MCP server resource. It registers your own remote MCP server with your team,
|
|
7
|
+
* discovers its tools, and enables the ones you choose. Enabled tools are added
|
|
8
|
+
* to your team's catalog with slugs of the form `<server_ref>_<tool>`.
|
|
9
|
+
*
|
|
10
|
+
* ## Example Usage
|
|
11
|
+
*
|
|
12
|
+
* ### API key sent to the server
|
|
13
|
+
*
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
16
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
17
|
+
*
|
|
18
|
+
* const docs = new digitalocean.ActionGatewayMcpServer("docs", {
|
|
19
|
+
* serverRef: "docs",
|
|
20
|
+
* endpoint: "https://mcp.example.com/mcp",
|
|
21
|
+
* description: "Internal documentation search.",
|
|
22
|
+
* credentialRefSource: "secret",
|
|
23
|
+
* apiKey: docsMcpApiKey,
|
|
24
|
+
* enabledTools: [
|
|
25
|
+
* "docs_search",
|
|
26
|
+
* "docs_get_page",
|
|
27
|
+
* ],
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* ### Per-user OAuth
|
|
32
|
+
*
|
|
33
|
+
* ```typescript
|
|
34
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
35
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
36
|
+
*
|
|
37
|
+
* const tickets = new digitalocean.ActionGatewayMcpServer("tickets", {
|
|
38
|
+
* serverRef: "tickets",
|
|
39
|
+
* endpoint: "https://mcp.tickets.example.com/mcp",
|
|
40
|
+
* credentialRefSource: "connection",
|
|
41
|
+
* oauthClientId: ticketsOauthClientId,
|
|
42
|
+
* oauthClientSecret: ticketsOauthClientSecret,
|
|
43
|
+
* oauthAuthorizeUrl: "https://mcp.tickets.example.com/oauth/authorize",
|
|
44
|
+
* oauthTokenUrl: "https://mcp.tickets.example.com/oauth/token",
|
|
45
|
+
* oauthScopes: ["tickets:read"],
|
|
46
|
+
* syncUserId: "user-123",
|
|
47
|
+
* enabledTools: ["tickets_search"],
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* ## Import
|
|
52
|
+
*
|
|
53
|
+
* An MCP server can be imported using its `serverRef`, e.g.
|
|
54
|
+
*
|
|
55
|
+
* ```sh
|
|
56
|
+
* $ pulumi import digitalocean:index/actionGatewayMcpServer:ActionGatewayMcpServer docs docs
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* The write-only arguments `apiKey`, `oauthClientId`, `oauthClientSecret`,
|
|
60
|
+
* and `oauthTokenUrl` are not imported. Changing any of them registers the
|
|
61
|
+
* server again, so after an import the next plan would replace a server whose
|
|
62
|
+
* configuration sets them. To keep the imported server, ignore the ones your
|
|
63
|
+
* configuration sets:
|
|
64
|
+
*
|
|
65
|
+
* ```typescript
|
|
66
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
67
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
68
|
+
*
|
|
69
|
+
* const docs = new digitalocean.ActionGatewayMcpServer("docs", {});
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* For a server with `credentialRefSource = "connection"`, ignore
|
|
73
|
+
* `oauthClientId`, `oauthClientSecret`, and `oauthTokenUrl` instead.
|
|
74
|
+
* Terraform then ignores changes to those arguments until you remove them from
|
|
75
|
+
* `ignoreChanges`, which registers the server again with the configured values.
|
|
76
|
+
*
|
|
77
|
+
* `syncUserId` is not imported either. The first apply after an import sets it
|
|
78
|
+
* and discovers the server's tools again.
|
|
79
|
+
*/
|
|
80
|
+
export declare class ActionGatewayMcpServer extends pulumi.CustomResource {
|
|
81
|
+
/**
|
|
82
|
+
* Get an existing ActionGatewayMcpServer resource's state with the given name, ID, and optional extra
|
|
83
|
+
* properties used to qualify the lookup.
|
|
84
|
+
*
|
|
85
|
+
* @param name The _unique_ name of the resulting resource.
|
|
86
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
87
|
+
* @param state Any extra arguments used during the lookup.
|
|
88
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
89
|
+
*/
|
|
90
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ActionGatewayMcpServerState, opts?: pulumi.CustomResourceOptions): ActionGatewayMcpServer;
|
|
91
|
+
/**
|
|
92
|
+
* Check whether an existing ActionGatewayMcpServer resource with the given ID exists.
|
|
93
|
+
*
|
|
94
|
+
* @param id The _unique_ provider ID of the resource to check.
|
|
95
|
+
* @param state Any extra arguments used during the lookup.
|
|
96
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
97
|
+
*/
|
|
98
|
+
static exists(id: pulumi.Input<string>, state?: ActionGatewayMcpServerState, opts?: pulumi.CustomResourceOptions): pulumi.Output<boolean>;
|
|
99
|
+
/**
|
|
100
|
+
* Returns true if the given object is an instance of ActionGatewayMcpServer. This is designed to work even
|
|
101
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
102
|
+
*/
|
|
103
|
+
static isInstance(obj: any): obj is ActionGatewayMcpServer;
|
|
104
|
+
/**
|
|
105
|
+
* For `secret`: the key or token itself, sent in the `Authorization` header. It is write-only, so Terraform cannot detect changes made outside of Terraform. Conflicts with `credentialRef`.
|
|
106
|
+
*/
|
|
107
|
+
readonly apiKey: pulumi.Output<string | undefined>;
|
|
108
|
+
/**
|
|
109
|
+
* When the server was registered.
|
|
110
|
+
*/
|
|
111
|
+
readonly createdAt: pulumi.Output<string>;
|
|
112
|
+
/**
|
|
113
|
+
* For `secret`: a reference to a secret your team stores with DigitalOcean. Conflicts with `apiKey`.
|
|
114
|
+
*/
|
|
115
|
+
readonly credentialRef: pulumi.Output<string>;
|
|
116
|
+
/**
|
|
117
|
+
* How requests to the server authenticate: `none` (the default), `secret`, or `connection`.
|
|
118
|
+
*/
|
|
119
|
+
readonly credentialRefSource: pulumi.Output<string>;
|
|
120
|
+
/**
|
|
121
|
+
* The description shown on the server's catalog card, at most 1024 characters.
|
|
122
|
+
*/
|
|
123
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
124
|
+
/**
|
|
125
|
+
* The tools discovered on the server.
|
|
126
|
+
*/
|
|
127
|
+
readonly discoveredTools: pulumi.Output<outputs.ActionGatewayMcpServerDiscoveredTool[]>;
|
|
128
|
+
/**
|
|
129
|
+
* The slugs of the discovered tools to enable, such as `docsSearch`. Every other tool of the server is disabled. When omitted, Terraform does not manage which tools are enabled. Changing this discovers the server's tools again before enabling them.
|
|
130
|
+
*/
|
|
131
|
+
readonly enabledTools: pulumi.Output<string[]>;
|
|
132
|
+
/**
|
|
133
|
+
* The HTTPS URL of the server's MCP endpoint. Its host must resolve only to public IP addresses.
|
|
134
|
+
*/
|
|
135
|
+
readonly endpoint: pulumi.Output<string>;
|
|
136
|
+
/**
|
|
137
|
+
* When the server's tools were last discovered.
|
|
138
|
+
*/
|
|
139
|
+
readonly lastSyncedAt: pulumi.Output<string>;
|
|
140
|
+
/**
|
|
141
|
+
* How long, in seconds, a user's authorization may be reused before they must consent again. `0` means 30 days.
|
|
142
|
+
*/
|
|
143
|
+
readonly oauthAuthorizationTtlSeconds: pulumi.Output<number>;
|
|
144
|
+
/**
|
|
145
|
+
* For `connection`: the OAuth authorization endpoint, on the endpoint's host or another host under the same registrable domain.
|
|
146
|
+
*/
|
|
147
|
+
readonly oauthAuthorizeUrl: pulumi.Output<string | undefined>;
|
|
148
|
+
/**
|
|
149
|
+
* For `connection`: the client ID of your team's OAuth client for the server. Each user of the server then authorizes individually.
|
|
150
|
+
*/
|
|
151
|
+
readonly oauthClientId: pulumi.Output<string | undefined>;
|
|
152
|
+
/**
|
|
153
|
+
* For `connection`: the client secret of your team's OAuth client. It is write-only.
|
|
154
|
+
*/
|
|
155
|
+
readonly oauthClientSecret: pulumi.Output<string | undefined>;
|
|
156
|
+
/**
|
|
157
|
+
* For `connection`: the scopes to request from each user, 1 to 64 of them.
|
|
158
|
+
*/
|
|
159
|
+
readonly oauthScopes: pulumi.Output<string[] | undefined>;
|
|
160
|
+
/**
|
|
161
|
+
* For `connection`: the OAuth token endpoint, under the same rules as `oauthAuthorizeUrl`.
|
|
162
|
+
*/
|
|
163
|
+
readonly oauthTokenUrl: pulumi.Output<string | undefined>;
|
|
164
|
+
/**
|
|
165
|
+
* The MCP protocol version the server reported.
|
|
166
|
+
*/
|
|
167
|
+
readonly protocolVersion: pulumi.Output<string>;
|
|
168
|
+
/**
|
|
169
|
+
* The identifier for the server, unique within your team. It must start with a lowercase letter and contain at most 64 characters from `[a-z0-9-]`.
|
|
170
|
+
*/
|
|
171
|
+
readonly serverRef: pulumi.Output<string>;
|
|
172
|
+
/**
|
|
173
|
+
* The error from the most recent tool discovery, if any.
|
|
174
|
+
*/
|
|
175
|
+
readonly syncError: pulumi.Output<string>;
|
|
176
|
+
/**
|
|
177
|
+
* The status of the most recent tool discovery.
|
|
178
|
+
*/
|
|
179
|
+
readonly syncStatus: pulumi.Output<string>;
|
|
180
|
+
/**
|
|
181
|
+
* For `connection`: the actor ID of a user who has authorized the server. The tools of such a server are discovered and verified as this user, so `enabledTools` requires it. Adding or changing it discovers the server's tools again.
|
|
182
|
+
*/
|
|
183
|
+
readonly syncUserId: pulumi.Output<string | undefined>;
|
|
184
|
+
/**
|
|
185
|
+
* The number of tools discovered on the server.
|
|
186
|
+
*/
|
|
187
|
+
readonly toolCount: pulumi.Output<number>;
|
|
188
|
+
/**
|
|
189
|
+
* The MCP transport. Only `streamableHttp`, the default, is supported.
|
|
190
|
+
*/
|
|
191
|
+
readonly transport: pulumi.Output<string>;
|
|
192
|
+
/**
|
|
193
|
+
* When the server was last modified.
|
|
194
|
+
*/
|
|
195
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
196
|
+
/**
|
|
197
|
+
* Create a ActionGatewayMcpServer resource with the given unique name, arguments, and options.
|
|
198
|
+
*
|
|
199
|
+
* @param name The _unique_ name of the resource.
|
|
200
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
201
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
202
|
+
*/
|
|
203
|
+
constructor(name: string, args: ActionGatewayMcpServerArgs, opts?: pulumi.CustomResourceOptions);
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Input properties used for looking up and filtering ActionGatewayMcpServer resources.
|
|
207
|
+
*/
|
|
208
|
+
export interface ActionGatewayMcpServerState {
|
|
209
|
+
/**
|
|
210
|
+
* For `secret`: the key or token itself, sent in the `Authorization` header. It is write-only, so Terraform cannot detect changes made outside of Terraform. Conflicts with `credentialRef`.
|
|
211
|
+
*/
|
|
212
|
+
apiKey?: pulumi.Input<string | undefined>;
|
|
213
|
+
/**
|
|
214
|
+
* When the server was registered.
|
|
215
|
+
*/
|
|
216
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
217
|
+
/**
|
|
218
|
+
* For `secret`: a reference to a secret your team stores with DigitalOcean. Conflicts with `apiKey`.
|
|
219
|
+
*/
|
|
220
|
+
credentialRef?: pulumi.Input<string | undefined>;
|
|
221
|
+
/**
|
|
222
|
+
* How requests to the server authenticate: `none` (the default), `secret`, or `connection`.
|
|
223
|
+
*/
|
|
224
|
+
credentialRefSource?: pulumi.Input<string | undefined>;
|
|
225
|
+
/**
|
|
226
|
+
* The description shown on the server's catalog card, at most 1024 characters.
|
|
227
|
+
*/
|
|
228
|
+
description?: pulumi.Input<string | undefined>;
|
|
229
|
+
/**
|
|
230
|
+
* The tools discovered on the server.
|
|
231
|
+
*/
|
|
232
|
+
discoveredTools?: pulumi.Input<pulumi.Input<inputs.ActionGatewayMcpServerDiscoveredTool>[] | undefined>;
|
|
233
|
+
/**
|
|
234
|
+
* The slugs of the discovered tools to enable, such as `docsSearch`. Every other tool of the server is disabled. When omitted, Terraform does not manage which tools are enabled. Changing this discovers the server's tools again before enabling them.
|
|
235
|
+
*/
|
|
236
|
+
enabledTools?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
237
|
+
/**
|
|
238
|
+
* The HTTPS URL of the server's MCP endpoint. Its host must resolve only to public IP addresses.
|
|
239
|
+
*/
|
|
240
|
+
endpoint?: pulumi.Input<string | undefined>;
|
|
241
|
+
/**
|
|
242
|
+
* When the server's tools were last discovered.
|
|
243
|
+
*/
|
|
244
|
+
lastSyncedAt?: pulumi.Input<string | undefined>;
|
|
245
|
+
/**
|
|
246
|
+
* How long, in seconds, a user's authorization may be reused before they must consent again. `0` means 30 days.
|
|
247
|
+
*/
|
|
248
|
+
oauthAuthorizationTtlSeconds?: pulumi.Input<number | undefined>;
|
|
249
|
+
/**
|
|
250
|
+
* For `connection`: the OAuth authorization endpoint, on the endpoint's host or another host under the same registrable domain.
|
|
251
|
+
*/
|
|
252
|
+
oauthAuthorizeUrl?: pulumi.Input<string | undefined>;
|
|
253
|
+
/**
|
|
254
|
+
* For `connection`: the client ID of your team's OAuth client for the server. Each user of the server then authorizes individually.
|
|
255
|
+
*/
|
|
256
|
+
oauthClientId?: pulumi.Input<string | undefined>;
|
|
257
|
+
/**
|
|
258
|
+
* For `connection`: the client secret of your team's OAuth client. It is write-only.
|
|
259
|
+
*/
|
|
260
|
+
oauthClientSecret?: pulumi.Input<string | undefined>;
|
|
261
|
+
/**
|
|
262
|
+
* For `connection`: the scopes to request from each user, 1 to 64 of them.
|
|
263
|
+
*/
|
|
264
|
+
oauthScopes?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
265
|
+
/**
|
|
266
|
+
* For `connection`: the OAuth token endpoint, under the same rules as `oauthAuthorizeUrl`.
|
|
267
|
+
*/
|
|
268
|
+
oauthTokenUrl?: pulumi.Input<string | undefined>;
|
|
269
|
+
/**
|
|
270
|
+
* The MCP protocol version the server reported.
|
|
271
|
+
*/
|
|
272
|
+
protocolVersion?: pulumi.Input<string | undefined>;
|
|
273
|
+
/**
|
|
274
|
+
* The identifier for the server, unique within your team. It must start with a lowercase letter and contain at most 64 characters from `[a-z0-9-]`.
|
|
275
|
+
*/
|
|
276
|
+
serverRef?: pulumi.Input<string | undefined>;
|
|
277
|
+
/**
|
|
278
|
+
* The error from the most recent tool discovery, if any.
|
|
279
|
+
*/
|
|
280
|
+
syncError?: pulumi.Input<string | undefined>;
|
|
281
|
+
/**
|
|
282
|
+
* The status of the most recent tool discovery.
|
|
283
|
+
*/
|
|
284
|
+
syncStatus?: pulumi.Input<string | undefined>;
|
|
285
|
+
/**
|
|
286
|
+
* For `connection`: the actor ID of a user who has authorized the server. The tools of such a server are discovered and verified as this user, so `enabledTools` requires it. Adding or changing it discovers the server's tools again.
|
|
287
|
+
*/
|
|
288
|
+
syncUserId?: pulumi.Input<string | undefined>;
|
|
289
|
+
/**
|
|
290
|
+
* The number of tools discovered on the server.
|
|
291
|
+
*/
|
|
292
|
+
toolCount?: pulumi.Input<number | undefined>;
|
|
293
|
+
/**
|
|
294
|
+
* The MCP transport. Only `streamableHttp`, the default, is supported.
|
|
295
|
+
*/
|
|
296
|
+
transport?: pulumi.Input<string | undefined>;
|
|
297
|
+
/**
|
|
298
|
+
* When the server was last modified.
|
|
299
|
+
*/
|
|
300
|
+
updatedAt?: pulumi.Input<string | undefined>;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* The set of arguments for constructing a ActionGatewayMcpServer resource.
|
|
304
|
+
*/
|
|
305
|
+
export interface ActionGatewayMcpServerArgs {
|
|
306
|
+
/**
|
|
307
|
+
* For `secret`: the key or token itself, sent in the `Authorization` header. It is write-only, so Terraform cannot detect changes made outside of Terraform. Conflicts with `credentialRef`.
|
|
308
|
+
*/
|
|
309
|
+
apiKey?: pulumi.Input<string | undefined>;
|
|
310
|
+
/**
|
|
311
|
+
* For `secret`: a reference to a secret your team stores with DigitalOcean. Conflicts with `apiKey`.
|
|
312
|
+
*/
|
|
313
|
+
credentialRef?: pulumi.Input<string | undefined>;
|
|
314
|
+
/**
|
|
315
|
+
* How requests to the server authenticate: `none` (the default), `secret`, or `connection`.
|
|
316
|
+
*/
|
|
317
|
+
credentialRefSource?: pulumi.Input<string | undefined>;
|
|
318
|
+
/**
|
|
319
|
+
* The description shown on the server's catalog card, at most 1024 characters.
|
|
320
|
+
*/
|
|
321
|
+
description?: pulumi.Input<string | undefined>;
|
|
322
|
+
/**
|
|
323
|
+
* The slugs of the discovered tools to enable, such as `docsSearch`. Every other tool of the server is disabled. When omitted, Terraform does not manage which tools are enabled. Changing this discovers the server's tools again before enabling them.
|
|
324
|
+
*/
|
|
325
|
+
enabledTools?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
326
|
+
/**
|
|
327
|
+
* The HTTPS URL of the server's MCP endpoint. Its host must resolve only to public IP addresses.
|
|
328
|
+
*/
|
|
329
|
+
endpoint: pulumi.Input<string>;
|
|
330
|
+
/**
|
|
331
|
+
* How long, in seconds, a user's authorization may be reused before they must consent again. `0` means 30 days.
|
|
332
|
+
*/
|
|
333
|
+
oauthAuthorizationTtlSeconds?: pulumi.Input<number | undefined>;
|
|
334
|
+
/**
|
|
335
|
+
* For `connection`: the OAuth authorization endpoint, on the endpoint's host or another host under the same registrable domain.
|
|
336
|
+
*/
|
|
337
|
+
oauthAuthorizeUrl?: pulumi.Input<string | undefined>;
|
|
338
|
+
/**
|
|
339
|
+
* For `connection`: the client ID of your team's OAuth client for the server. Each user of the server then authorizes individually.
|
|
340
|
+
*/
|
|
341
|
+
oauthClientId?: pulumi.Input<string | undefined>;
|
|
342
|
+
/**
|
|
343
|
+
* For `connection`: the client secret of your team's OAuth client. It is write-only.
|
|
344
|
+
*/
|
|
345
|
+
oauthClientSecret?: pulumi.Input<string | undefined>;
|
|
346
|
+
/**
|
|
347
|
+
* For `connection`: the scopes to request from each user, 1 to 64 of them.
|
|
348
|
+
*/
|
|
349
|
+
oauthScopes?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
350
|
+
/**
|
|
351
|
+
* For `connection`: the OAuth token endpoint, under the same rules as `oauthAuthorizeUrl`.
|
|
352
|
+
*/
|
|
353
|
+
oauthTokenUrl?: pulumi.Input<string | undefined>;
|
|
354
|
+
/**
|
|
355
|
+
* The identifier for the server, unique within your team. It must start with a lowercase letter and contain at most 64 characters from `[a-z0-9-]`.
|
|
356
|
+
*/
|
|
357
|
+
serverRef: pulumi.Input<string>;
|
|
358
|
+
/**
|
|
359
|
+
* For `connection`: the actor ID of a user who has authorized the server. The tools of such a server are discovered and verified as this user, so `enabledTools` requires it. Adding or changing it discovers the server's tools again.
|
|
360
|
+
*/
|
|
361
|
+
syncUserId?: pulumi.Input<string | undefined>;
|
|
362
|
+
/**
|
|
363
|
+
* The MCP transport. Only `streamableHttp`, the default, is supported.
|
|
364
|
+
*/
|
|
365
|
+
transport?: pulumi.Input<string | undefined>;
|
|
366
|
+
}
|
|
367
|
+
//# sourceMappingURL=actionGatewayMcpServer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actionGatewayMcpServer.d.ts","sourceRoot":"","sources":["../actionGatewayMcpServer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAI1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AACH,qBAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;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,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAChD"}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.ActionGatewayMcpServer = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Provides a DigitalOcean [Action Gateway](https://docs.digitalocean.com/products/managed-agents/action-gateway/)
|
|
33
|
+
* MCP server resource. It registers your own remote MCP server with your team,
|
|
34
|
+
* discovers its tools, and enables the ones you choose. Enabled tools are added
|
|
35
|
+
* to your team's catalog with slugs of the form `<server_ref>_<tool>`.
|
|
36
|
+
*
|
|
37
|
+
* ## Example Usage
|
|
38
|
+
*
|
|
39
|
+
* ### API key sent to the server
|
|
40
|
+
*
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
44
|
+
*
|
|
45
|
+
* const docs = new digitalocean.ActionGatewayMcpServer("docs", {
|
|
46
|
+
* serverRef: "docs",
|
|
47
|
+
* endpoint: "https://mcp.example.com/mcp",
|
|
48
|
+
* description: "Internal documentation search.",
|
|
49
|
+
* credentialRefSource: "secret",
|
|
50
|
+
* apiKey: docsMcpApiKey,
|
|
51
|
+
* enabledTools: [
|
|
52
|
+
* "docs_search",
|
|
53
|
+
* "docs_get_page",
|
|
54
|
+
* ],
|
|
55
|
+
* });
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* ### Per-user OAuth
|
|
59
|
+
*
|
|
60
|
+
* ```typescript
|
|
61
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
62
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
63
|
+
*
|
|
64
|
+
* const tickets = new digitalocean.ActionGatewayMcpServer("tickets", {
|
|
65
|
+
* serverRef: "tickets",
|
|
66
|
+
* endpoint: "https://mcp.tickets.example.com/mcp",
|
|
67
|
+
* credentialRefSource: "connection",
|
|
68
|
+
* oauthClientId: ticketsOauthClientId,
|
|
69
|
+
* oauthClientSecret: ticketsOauthClientSecret,
|
|
70
|
+
* oauthAuthorizeUrl: "https://mcp.tickets.example.com/oauth/authorize",
|
|
71
|
+
* oauthTokenUrl: "https://mcp.tickets.example.com/oauth/token",
|
|
72
|
+
* oauthScopes: ["tickets:read"],
|
|
73
|
+
* syncUserId: "user-123",
|
|
74
|
+
* enabledTools: ["tickets_search"],
|
|
75
|
+
* });
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* ## Import
|
|
79
|
+
*
|
|
80
|
+
* An MCP server can be imported using its `serverRef`, e.g.
|
|
81
|
+
*
|
|
82
|
+
* ```sh
|
|
83
|
+
* $ pulumi import digitalocean:index/actionGatewayMcpServer:ActionGatewayMcpServer docs docs
|
|
84
|
+
* ```
|
|
85
|
+
*
|
|
86
|
+
* The write-only arguments `apiKey`, `oauthClientId`, `oauthClientSecret`,
|
|
87
|
+
* and `oauthTokenUrl` are not imported. Changing any of them registers the
|
|
88
|
+
* server again, so after an import the next plan would replace a server whose
|
|
89
|
+
* configuration sets them. To keep the imported server, ignore the ones your
|
|
90
|
+
* configuration sets:
|
|
91
|
+
*
|
|
92
|
+
* ```typescript
|
|
93
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
94
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
95
|
+
*
|
|
96
|
+
* const docs = new digitalocean.ActionGatewayMcpServer("docs", {});
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* For a server with `credentialRefSource = "connection"`, ignore
|
|
100
|
+
* `oauthClientId`, `oauthClientSecret`, and `oauthTokenUrl` instead.
|
|
101
|
+
* Terraform then ignores changes to those arguments until you remove them from
|
|
102
|
+
* `ignoreChanges`, which registers the server again with the configured values.
|
|
103
|
+
*
|
|
104
|
+
* `syncUserId` is not imported either. The first apply after an import sets it
|
|
105
|
+
* and discovers the server's tools again.
|
|
106
|
+
*/
|
|
107
|
+
class ActionGatewayMcpServer extends pulumi.CustomResource {
|
|
108
|
+
/**
|
|
109
|
+
* Get an existing ActionGatewayMcpServer resource's state with the given name, ID, and optional extra
|
|
110
|
+
* properties used to qualify the lookup.
|
|
111
|
+
*
|
|
112
|
+
* @param name The _unique_ name of the resulting resource.
|
|
113
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
114
|
+
* @param state Any extra arguments used during the lookup.
|
|
115
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
116
|
+
*/
|
|
117
|
+
static get(name, id, state, opts) {
|
|
118
|
+
return new ActionGatewayMcpServer(name, state, { ...opts, id: id });
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Check whether an existing ActionGatewayMcpServer resource with the given ID exists.
|
|
122
|
+
*
|
|
123
|
+
* @param id The _unique_ provider ID of the resource to check.
|
|
124
|
+
* @param state Any extra arguments used during the lookup.
|
|
125
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
126
|
+
*/
|
|
127
|
+
static exists(id, state, opts) {
|
|
128
|
+
return pulumi.runtime.existsResource("digitalocean:index/actionGatewayMcpServer:ActionGatewayMcpServer", id, state || {}, { ...opts }, undefined);
|
|
129
|
+
}
|
|
130
|
+
/** @internal */
|
|
131
|
+
static __pulumiType = 'digitalocean:index/actionGatewayMcpServer:ActionGatewayMcpServer';
|
|
132
|
+
/**
|
|
133
|
+
* Returns true if the given object is an instance of ActionGatewayMcpServer. This is designed to work even
|
|
134
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
135
|
+
*/
|
|
136
|
+
static isInstance(obj) {
|
|
137
|
+
if (obj === undefined || obj === null) {
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
return obj['__pulumiType'] === ActionGatewayMcpServer.__pulumiType;
|
|
141
|
+
}
|
|
142
|
+
constructor(name, argsOrState, opts) {
|
|
143
|
+
let resourceInputs = {};
|
|
144
|
+
opts = opts || {};
|
|
145
|
+
if (opts.id) {
|
|
146
|
+
const state = argsOrState;
|
|
147
|
+
resourceInputs["apiKey"] = state?.apiKey;
|
|
148
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
149
|
+
resourceInputs["credentialRef"] = state?.credentialRef;
|
|
150
|
+
resourceInputs["credentialRefSource"] = state?.credentialRefSource;
|
|
151
|
+
resourceInputs["description"] = state?.description;
|
|
152
|
+
resourceInputs["discoveredTools"] = state?.discoveredTools;
|
|
153
|
+
resourceInputs["enabledTools"] = state?.enabledTools;
|
|
154
|
+
resourceInputs["endpoint"] = state?.endpoint;
|
|
155
|
+
resourceInputs["lastSyncedAt"] = state?.lastSyncedAt;
|
|
156
|
+
resourceInputs["oauthAuthorizationTtlSeconds"] = state?.oauthAuthorizationTtlSeconds;
|
|
157
|
+
resourceInputs["oauthAuthorizeUrl"] = state?.oauthAuthorizeUrl;
|
|
158
|
+
resourceInputs["oauthClientId"] = state?.oauthClientId;
|
|
159
|
+
resourceInputs["oauthClientSecret"] = state?.oauthClientSecret;
|
|
160
|
+
resourceInputs["oauthScopes"] = state?.oauthScopes;
|
|
161
|
+
resourceInputs["oauthTokenUrl"] = state?.oauthTokenUrl;
|
|
162
|
+
resourceInputs["protocolVersion"] = state?.protocolVersion;
|
|
163
|
+
resourceInputs["serverRef"] = state?.serverRef;
|
|
164
|
+
resourceInputs["syncError"] = state?.syncError;
|
|
165
|
+
resourceInputs["syncStatus"] = state?.syncStatus;
|
|
166
|
+
resourceInputs["syncUserId"] = state?.syncUserId;
|
|
167
|
+
resourceInputs["toolCount"] = state?.toolCount;
|
|
168
|
+
resourceInputs["transport"] = state?.transport;
|
|
169
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
const args = argsOrState;
|
|
173
|
+
if (args?.endpoint === undefined && !opts.urn) {
|
|
174
|
+
throw new Error("Missing required property 'endpoint'");
|
|
175
|
+
}
|
|
176
|
+
if (args?.serverRef === undefined && !opts.urn) {
|
|
177
|
+
throw new Error("Missing required property 'serverRef'");
|
|
178
|
+
}
|
|
179
|
+
resourceInputs["apiKey"] = args?.apiKey ? pulumi.secret(args.apiKey) : undefined;
|
|
180
|
+
resourceInputs["credentialRef"] = args?.credentialRef;
|
|
181
|
+
resourceInputs["credentialRefSource"] = args?.credentialRefSource;
|
|
182
|
+
resourceInputs["description"] = args?.description;
|
|
183
|
+
resourceInputs["enabledTools"] = args?.enabledTools;
|
|
184
|
+
resourceInputs["endpoint"] = args?.endpoint;
|
|
185
|
+
resourceInputs["oauthAuthorizationTtlSeconds"] = args?.oauthAuthorizationTtlSeconds;
|
|
186
|
+
resourceInputs["oauthAuthorizeUrl"] = args?.oauthAuthorizeUrl;
|
|
187
|
+
resourceInputs["oauthClientId"] = args?.oauthClientId;
|
|
188
|
+
resourceInputs["oauthClientSecret"] = args?.oauthClientSecret ? pulumi.secret(args.oauthClientSecret) : undefined;
|
|
189
|
+
resourceInputs["oauthScopes"] = args?.oauthScopes;
|
|
190
|
+
resourceInputs["oauthTokenUrl"] = args?.oauthTokenUrl;
|
|
191
|
+
resourceInputs["serverRef"] = args?.serverRef;
|
|
192
|
+
resourceInputs["syncUserId"] = args?.syncUserId;
|
|
193
|
+
resourceInputs["transport"] = args?.transport;
|
|
194
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
195
|
+
resourceInputs["discoveredTools"] = undefined /*out*/;
|
|
196
|
+
resourceInputs["lastSyncedAt"] = undefined /*out*/;
|
|
197
|
+
resourceInputs["protocolVersion"] = undefined /*out*/;
|
|
198
|
+
resourceInputs["syncError"] = undefined /*out*/;
|
|
199
|
+
resourceInputs["syncStatus"] = undefined /*out*/;
|
|
200
|
+
resourceInputs["toolCount"] = undefined /*out*/;
|
|
201
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
202
|
+
}
|
|
203
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
204
|
+
const secretOpts = { additionalSecretOutputs: ["apiKey", "oauthClientSecret"] };
|
|
205
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
206
|
+
super(ActionGatewayMcpServer.__pulumiType, name, resourceInputs, opts);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
exports.ActionGatewayMcpServer = ActionGatewayMcpServer;
|
|
210
|
+
//# sourceMappingURL=actionGatewayMcpServer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actionGatewayMcpServer.js","sourceRoot":"","sources":["../actionGatewayMcpServer.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAIzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AACH,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;QACjI,OAAO,IAAI,sBAAsB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,MAAM,CAAC,EAAwB,EAAE,KAAmC,EAAE,IAAmC;QACnH,OAAO,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,kEAAkE,EAAE,EAAE,EAAO,KAAK,IAAI,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,CAAC,CAAC;IAC3J,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,kEAAkE,CAAC;IAEzG;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,sBAAsB,CAAC,YAAY,CAAC;IACvE,CAAC;IAuGD,YAAY,IAAY,EAAE,WAAsE,EAAE,IAAmC;QACjI,IAAI,cAAc,GAAkB,EAAE,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