@vercel/sdk 1.6.0 → 1.6.1
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/README.md +0 -2
- package/bin/mcp-server.js +718 -728
- package/bin/mcp-server.js.map +23 -26
- package/docs/sdks/marketplace/README.md +0 -81
- package/docs/sdks/security/README.md +8 -2
- package/esm/__tests__/marketplace.test.js +3 -13
- package/esm/__tests__/marketplace.test.js.map +1 -1
- package/esm/__tests__/projects.test.js +13 -15
- package/esm/__tests__/projects.test.js.map +1 -1
- package/esm/funcs/deploymentsUploadFile.js +2 -1
- package/esm/funcs/deploymentsUploadFile.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/prompts.d.ts.map +1 -1
- package/esm/mcp-server/prompts.js +5 -1
- package/esm/mcp-server/prompts.js.map +1 -1
- package/esm/mcp-server/resources.d.ts.map +1 -1
- package/esm/mcp-server/resources.js +10 -2
- package/esm/mcp-server/resources.js.map +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +2 -5
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools.d.ts.map +1 -1
- package/esm/mcp-server/tools.js +4 -3
- package/esm/mcp-server/tools.js.map +1 -1
- package/esm/models/authuser.d.ts +17 -66
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +10 -74
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/createprojectop.d.ts +1 -1
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +4 -4
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/getconfigurationop.d.ts +306 -0
- package/esm/models/getconfigurationop.d.ts.map +1 -1
- package/esm/models/getconfigurationop.js +296 -0
- package/esm/models/getconfigurationop.js.map +1 -1
- package/esm/models/importresourceop.d.ts +64 -0
- package/esm/models/importresourceop.d.ts.map +1 -1
- package/esm/models/importresourceop.js +64 -0
- package/esm/models/importresourceop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +1 -1
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +4 -4
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/uploadfileop.d.ts +2 -0
- package/esm/models/uploadfileop.d.ts.map +1 -1
- package/esm/models/uploadfileop.js +14 -0
- package/esm/models/uploadfileop.js.map +1 -1
- package/esm/models/userevent.d.ts +11 -63
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +10 -74
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/marketplace.d.ts +0 -8
- package/esm/sdk/marketplace.d.ts.map +1 -1
- package/esm/sdk/marketplace.js +0 -10
- package/esm/sdk/marketplace.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/marketplace.test.ts +5 -15
- package/src/__tests__/projects.test.ts +13 -15
- package/src/funcs/deploymentsUploadFile.ts +2 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +8 -1
- package/src/mcp-server/resources.ts +16 -2
- package/src/mcp-server/server.ts +3 -5
- package/src/mcp-server/tools.ts +6 -3
- package/src/models/authuser.ts +29 -166
- package/src/models/createprojectop.ts +5 -5
- package/src/models/getconfigurationop.ts +579 -0
- package/src/models/importresourceop.ts +141 -0
- package/src/models/updateprojectop.ts +5 -5
- package/src/models/uploadfileop.ts +26 -0
- package/src/models/userevent.ts +23 -174
- package/src/sdk/marketplace.ts +0 -22
- package/vercel-spec.json +271 -229
- package/esm/funcs/marketplaceQueryExperimentationItems.d.ts +0 -18
- package/esm/funcs/marketplaceQueryExperimentationItems.d.ts.map +0 -1
- package/esm/funcs/marketplaceQueryExperimentationItems.js +0 -84
- package/esm/funcs/marketplaceQueryExperimentationItems.js.map +0 -1
- package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.d.ts +0 -7
- package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.d.ts.map +0 -1
- package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.js +0 -28
- package/esm/mcp-server/tools/marketplaceQueryExperimentationItems.js.map +0 -1
- package/esm/models/queryexperimentationitemsop.d.ts +0 -148
- package/esm/models/queryexperimentationitemsop.d.ts.map +0 -1
- package/esm/models/queryexperimentationitemsop.js +0 -125
- package/esm/models/queryexperimentationitemsop.js.map +0 -1
- package/src/funcs/marketplaceQueryExperimentationItems.ts +0 -183
- package/src/mcp-server/tools/marketplaceQueryExperimentationItems.ts +0 -39
- package/src/models/queryexperimentationitemsop.ts +0 -287
package/esm/sdk/marketplace.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ import { ImportResourceRequest, ImportResourceResponseBody } from "../models/imp
|
|
|
10
10
|
import { PatchV1InstallationsIntegrationConfigurationIdResourcesResourceIdExperimentationItemsItemIdRequest } from "../models/patchv1installationsintegrationconfigurationidresourcesresourceidexperimentationitemsitemidop.js";
|
|
11
11
|
import { PostV1InstallationsIntegrationConfigurationIdResourcesResourceIdExperimentationItemsRequest } from "../models/postv1installationsintegrationconfigurationidresourcesresourceidexperimentationitemsop.js";
|
|
12
12
|
import { PutV1InstallationsIntegrationConfigurationIdResourcesResourceIdExperimentationEdgeConfigRequest, PutV1InstallationsIntegrationConfigurationIdResourcesResourceIdExperimentationEdgeConfigResponseBody } from "../models/putv1installationsintegrationconfigurationidresourcesresourceidexperimentationedgeconfigop.js";
|
|
13
|
-
import { QueryExperimentationItemsRequest, QueryExperimentationItemsResponseBody } from "../models/queryexperimentationitemsop.js";
|
|
14
13
|
import { SubmitBillingDataRequest } from "../models/submitbillingdataop.js";
|
|
15
14
|
import { SubmitInvoiceRequest, SubmitInvoiceResponseBody } from "../models/submitinvoiceop.js";
|
|
16
15
|
import { SubmitPrepaymentBalancesRequest } from "../models/submitprepaymentbalancesop.js";
|
|
@@ -102,13 +101,6 @@ export declare class Marketplace extends ClientSDK {
|
|
|
102
101
|
* During the autorization process, Vercel sends the user to the provider [redirectLoginUrl](https://vercel.com/docs/integrations/create-integration/submit-integration#redirect-login-url), that includes the OAuth authorization `code` parameter. The provider then calls the SSO Token Exchange endpoint with the sent code and receives the OIDC token. They log the user in based on this token and redirects the user back to the Vercel account using deep-link parameters included the redirectLoginUrl. This is used to verify the identity of the user during the [**Open in Provider** flow](https://vercel.com/docs/integrations/marketplace-flows#open-in-provider-button-flow). Providers should not persist the returned `id_token` in a database since the token will expire.
|
|
103
102
|
*/
|
|
104
103
|
exchangeSsoToken(request: ExchangeSsoTokenRequestBody, options?: RequestOptions): Promise<ExchangeSsoTokenResponseBody>;
|
|
105
|
-
/**
|
|
106
|
-
* Query experimentation items
|
|
107
|
-
*
|
|
108
|
-
* @remarks
|
|
109
|
-
* Queries flags, experiments under a Marketplace resource.
|
|
110
|
-
*/
|
|
111
|
-
queryExperimentationItems(request: QueryExperimentationItemsRequest, options?: RequestOptions): Promise<QueryExperimentationItemsResponseBody>;
|
|
112
104
|
/**
|
|
113
105
|
* Create one or multiple experimentation items
|
|
114
106
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace.d.ts","sourceRoot":"","sources":["../../src/sdk/marketplace.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"marketplace.d.ts","sourceRoot":"","sources":["../../src/sdk/marketplace.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EACL,mGAAmG,EACpG,MAAM,6GAA6G,CAAC;AACrH,OAAO,EACL,2BAA2B,EAC3B,4BAA4B,EAC7B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,iBAAiB,EACjB,sBAAsB,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AO,EACL,mGAAmG,EACrG,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;IAQhB;;;;;OAKG;IACG,uCAAuC,CAC3C,OAAO,EACL,gGAAgG,EAClG,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACN,qGAAqG,GACrG,SAAS,CACZ;IAQD;;;;;OAKG;IACG,uCAAuC,CAC3C,OAAO,EACL,+FAA+F,EACjG,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,oGAAoG,CACrG;CAOF"}
|
package/esm/sdk/marketplace.js
CHANGED
|
@@ -10,7 +10,6 @@ import { marketplaceGetAccountInfo } from "../funcs/marketplaceGetAccountInfo.js
|
|
|
10
10
|
import { marketplaceGetInvoice } from "../funcs/marketplaceGetInvoice.js";
|
|
11
11
|
import { marketplaceGetMember } from "../funcs/marketplaceGetMember.js";
|
|
12
12
|
import { marketplaceImportResource } from "../funcs/marketplaceImportResource.js";
|
|
13
|
-
import { marketplaceQueryExperimentationItems } from "../funcs/marketplaceQueryExperimentationItems.js";
|
|
14
13
|
import { marketplaceSubmitBillingData } from "../funcs/marketplaceSubmitBillingData.js";
|
|
15
14
|
import { marketplaceSubmitInvoice } from "../funcs/marketplaceSubmitInvoice.js";
|
|
16
15
|
import { marketplaceSubmitPrepaymentBalances } from "../funcs/marketplaceSubmitPrepaymentBalances.js";
|
|
@@ -130,15 +129,6 @@ export class Marketplace extends ClientSDK {
|
|
|
130
129
|
async exchangeSsoToken(request, options) {
|
|
131
130
|
return unwrapAsync(marketplaceExchangeSsoToken(this, request, options));
|
|
132
131
|
}
|
|
133
|
-
/**
|
|
134
|
-
* Query experimentation items
|
|
135
|
-
*
|
|
136
|
-
* @remarks
|
|
137
|
-
* Queries flags, experiments under a Marketplace resource.
|
|
138
|
-
*/
|
|
139
|
-
async queryExperimentationItems(request, options) {
|
|
140
|
-
return unwrapAsync(marketplaceQueryExperimentationItems(this, request, options));
|
|
141
|
-
}
|
|
142
132
|
/**
|
|
143
133
|
* Create one or multiple experimentation items
|
|
144
134
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace.js","sourceRoot":"","sources":["../../src/sdk/marketplace.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,qDAAqD,EAAE,MAAM,mEAAmE,CAAC;AAC1I,OAAO,EAAE,kDAAkD,EAAE,MAAM,gEAAgE,CAAC;AACpI,OAAO,EAAE,qDAAqD,EAAE,MAAM,mEAAmE,CAAC;AAC1I,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"marketplace.js","sourceRoot":"","sources":["../../src/sdk/marketplace.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,qDAAqD,EAAE,MAAM,mEAAmE,CAAC;AAC1I,OAAO,EAAE,kDAAkD,EAAE,MAAM,gEAAgE,CAAC;AACpI,OAAO,EAAE,qDAAqD,EAAE,MAAM,mEAAmE,CAAC;AAC1I,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAA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EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,0CAA0C,CAC9C,OAC6F,EAC7F,OAAwB;QAExB,OAAO,WAAW,CAAC,qDAAqD,CACtE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,0CAA0C,CAC9C,OACoG,EACpG,OAAwB;QAExB,OAAO,WAAW,CAAC,qDAAqD,CACtE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,0CAA0C,CAC9C,OACqG,EACrG,OAAwB;QAExB,OAAO,WAAW,CAAC,qDAAqD,CACtE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,uCAAuC,CAC3C,OACkG,EAClG,OAAwB;QAKxB,OAAO,WAAW,CAAC,kDAAkD,CACnE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,uCAAuC,CAC3C,OACiG,EACjG,OAAwB;QAIxB,OAAO,WAAW,CAAC,kDAAkD,CACnE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import { expect, test } from "vitest";
|
|
5
|
+
import { assert, expect, it, test } from "vitest";
|
|
6
6
|
import { Vercel } from "../index.js";
|
|
7
7
|
import { createTestHTTPClient } from "./testclient.js";
|
|
8
8
|
|
|
@@ -415,18 +415,8 @@ test("Marketplace Put /V1 /Installations/{integration Configuration Id}/resource
|
|
|
415
415
|
});
|
|
416
416
|
});
|
|
417
417
|
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
serverURL: process.env["TEST_SERVER_URL"] ?? "http://localhost:18080",
|
|
423
|
-
httpClient: testHttpClient,
|
|
424
|
-
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
|
|
425
|
-
});
|
|
426
|
-
|
|
427
|
-
const result = await vercel.marketplace.queryExperimentationItems({});
|
|
428
|
-
expect(result).toBeDefined();
|
|
429
|
-
expect(result).toEqual({
|
|
430
|
-
items: [],
|
|
431
|
-
});
|
|
418
|
+
it.skip("Marketplace Query Experimentation Items", async () => {
|
|
419
|
+
assert.fail(
|
|
420
|
+
"incomplete test found please make sure to address the following errors: [`workflow step queryExperimentationItems.test referencing operation queryExperimentationItems not found in document`]",
|
|
421
|
+
);
|
|
432
422
|
});
|
|
@@ -578,21 +578,19 @@ test("Projects Create Project Env", async () => {
|
|
|
578
578
|
upsert: "true",
|
|
579
579
|
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
|
|
580
580
|
slug: "my-team-url-slug",
|
|
581
|
-
requestBody:
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
},
|
|
595
|
-
],
|
|
581
|
+
requestBody: {
|
|
582
|
+
key: "API_URL",
|
|
583
|
+
value: "https://api.vercel.com",
|
|
584
|
+
type: "plain",
|
|
585
|
+
target: [
|
|
586
|
+
"preview",
|
|
587
|
+
],
|
|
588
|
+
gitBranch: "feature-1",
|
|
589
|
+
comment: "database connection string for production",
|
|
590
|
+
customEnvironmentIds: [
|
|
591
|
+
"env_1234567890",
|
|
592
|
+
],
|
|
593
|
+
},
|
|
596
594
|
});
|
|
597
595
|
expect(result).toBeDefined();
|
|
598
596
|
expect(result).toEqual({
|
|
@@ -97,7 +97,7 @@ async function $do(
|
|
|
97
97
|
return [parsed, { status: "invalid" }];
|
|
98
98
|
}
|
|
99
99
|
const payload = parsed.value;
|
|
100
|
-
const body =
|
|
100
|
+
const body = payload.RequestBody;
|
|
101
101
|
|
|
102
102
|
const path = pathToFunc("/v2/files")();
|
|
103
103
|
|
|
@@ -107,6 +107,7 @@ async function $do(
|
|
|
107
107
|
});
|
|
108
108
|
|
|
109
109
|
const headers = new Headers(compactMap({
|
|
110
|
+
"Content-Type": "application/octet-stream",
|
|
110
111
|
Accept: "application/json",
|
|
111
112
|
"Content-Length": encodeSimple(
|
|
112
113
|
"Content-Length",
|
package/src/lib/config.ts
CHANGED
|
@@ -57,7 +57,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
57
57
|
export const SDK_METADATA = {
|
|
58
58
|
language: "typescript",
|
|
59
59
|
openapiDocVersion: "0.0.1",
|
|
60
|
-
sdkVersion: "1.6.
|
|
61
|
-
genVersion: "2.
|
|
62
|
-
userAgent: "speakeasy-sdk/typescript 1.6.
|
|
60
|
+
sdkVersion: "1.6.1",
|
|
61
|
+
genVersion: "2.570.3",
|
|
62
|
+
userAgent: "speakeasy-sdk/typescript 1.6.1 2.570.3 0.0.1 @vercel/sdk",
|
|
63
63
|
} as const;
|
|
@@ -74,7 +74,14 @@ export function createRegisterPrompt(
|
|
|
74
74
|
prompt: PromptDefinition<A>,
|
|
75
75
|
): void => {
|
|
76
76
|
const scopes = prompt.scopes ?? [];
|
|
77
|
-
if (
|
|
77
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (
|
|
82
|
+
allowedScopes.size > 0
|
|
83
|
+
&& !scopes.every((s: MCPScope) => allowedScopes.has(s))
|
|
84
|
+
) {
|
|
78
85
|
return;
|
|
79
86
|
}
|
|
80
87
|
|
|
@@ -109,7 +109,14 @@ export function createRegisterResource(
|
|
|
109
109
|
): (resource: ResourceDefinition) => void {
|
|
110
110
|
return (resource: ResourceDefinition): void => {
|
|
111
111
|
const scopes = resource.scopes ?? [];
|
|
112
|
-
if (
|
|
112
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if (
|
|
117
|
+
allowedScopes.size > 0
|
|
118
|
+
&& !scopes.every((s: MCPScope) => allowedScopes.has(s))
|
|
119
|
+
) {
|
|
113
120
|
return;
|
|
114
121
|
}
|
|
115
122
|
|
|
@@ -137,7 +144,14 @@ export function createRegisterResourceTemplate(
|
|
|
137
144
|
): (resource: ResourceTemplateDefinition) => void {
|
|
138
145
|
return (resource: ResourceTemplateDefinition): void => {
|
|
139
146
|
const scopes = resource.scopes ?? [];
|
|
140
|
-
if (
|
|
147
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (
|
|
152
|
+
allowedScopes.size > 0
|
|
153
|
+
&& !scopes.every((s: MCPScope) => allowedScopes.has(s))
|
|
154
|
+
) {
|
|
141
155
|
return;
|
|
142
156
|
}
|
|
143
157
|
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
createRegisterResource,
|
|
12
12
|
createRegisterResourceTemplate,
|
|
13
13
|
} from "./resources.js";
|
|
14
|
-
import { MCPScope
|
|
14
|
+
import { MCPScope } from "./scopes.js";
|
|
15
15
|
import { createRegisterTool } from "./tools.js";
|
|
16
16
|
import { tool$accessGroupsCreateAccessGroup } from "./tools/accessGroupsCreateAccessGroup.js";
|
|
17
17
|
import { tool$accessGroupsCreateAccessGroupProject } from "./tools/accessGroupsCreateAccessGroupProject.js";
|
|
@@ -116,7 +116,6 @@ import { tool$marketplaceGetAccountInfo } from "./tools/marketplaceGetAccountInf
|
|
|
116
116
|
import { tool$marketplaceGetInvoice } from "./tools/marketplaceGetInvoice.js";
|
|
117
117
|
import { tool$marketplaceGetMember } from "./tools/marketplaceGetMember.js";
|
|
118
118
|
import { tool$marketplaceImportResource } from "./tools/marketplaceImportResource.js";
|
|
119
|
-
import { tool$marketplaceQueryExperimentationItems } from "./tools/marketplaceQueryExperimentationItems.js";
|
|
120
119
|
import { tool$marketplaceSubmitBillingData } from "./tools/marketplaceSubmitBillingData.js";
|
|
121
120
|
import { tool$marketplaceSubmitInvoice } from "./tools/marketplaceSubmitInvoice.js";
|
|
122
121
|
import { tool$marketplaceSubmitPrepaymentBalances } from "./tools/marketplaceSubmitPrepaymentBalances.js";
|
|
@@ -187,7 +186,7 @@ export function createMCPServer(deps: {
|
|
|
187
186
|
}) {
|
|
188
187
|
const server = new McpServer({
|
|
189
188
|
name: "Vercel",
|
|
190
|
-
version: "1.6.
|
|
189
|
+
version: "1.6.1",
|
|
191
190
|
});
|
|
192
191
|
|
|
193
192
|
const client = new VercelCore({
|
|
@@ -196,7 +195,7 @@ export function createMCPServer(deps: {
|
|
|
196
195
|
serverIdx: deps.serverIdx,
|
|
197
196
|
});
|
|
198
197
|
|
|
199
|
-
const scopes = new Set(deps.scopes
|
|
198
|
+
const scopes = new Set(deps.scopes);
|
|
200
199
|
|
|
201
200
|
const allowedTools = deps.allowedTools && new Set(deps.allowedTools);
|
|
202
201
|
const tool = createRegisterTool(
|
|
@@ -328,7 +327,6 @@ export function createMCPServer(deps: {
|
|
|
328
327
|
tool(tool$marketplaceUpdateResourceSecretsById);
|
|
329
328
|
tool(tool$marketplaceImportResource);
|
|
330
329
|
tool(tool$marketplaceExchangeSsoToken);
|
|
331
|
-
tool(tool$marketplaceQueryExperimentationItems);
|
|
332
330
|
tool(tool$marketplaceCreateInstallationIntegrationConfiguration);
|
|
333
331
|
tool(tool$marketplaceUpdateInstallationIntegrationConfiguration);
|
|
334
332
|
tool(tool$marketplaceDeleteInstallationIntegrationConfiguration);
|
package/src/mcp-server/tools.ts
CHANGED
|
@@ -102,12 +102,15 @@ export function createRegisterTool(
|
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
const
|
|
106
|
-
if (allowedScopes.size > 0 &&
|
|
105
|
+
const scopes = tool.scopes ?? [];
|
|
106
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
if (
|
|
110
|
+
if (
|
|
111
|
+
allowedScopes.size > 0
|
|
112
|
+
&& !scopes.every((s: MCPScope) => allowedScopes.has(s))
|
|
113
|
+
) {
|
|
111
114
|
return;
|
|
112
115
|
}
|
|
113
116
|
|
package/src/models/authuser.ts
CHANGED
|
@@ -181,6 +181,14 @@ export type ResourceConfig = {
|
|
|
181
181
|
* An object containing infomation related to the amount of platform resources may be allocated to the User account.
|
|
182
182
|
*/
|
|
183
183
|
microfrontendProjectsPerGroup?: number | undefined;
|
|
184
|
+
/**
|
|
185
|
+
* An object containing infomation related to the amount of platform resources may be allocated to the User account.
|
|
186
|
+
*/
|
|
187
|
+
flagsExplorerOverridesThreshold?: number | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* An object containing infomation related to the amount of platform resources may be allocated to the User account.
|
|
190
|
+
*/
|
|
191
|
+
flagsExplorerUnlimitedOverrides?: boolean | undefined;
|
|
184
192
|
};
|
|
185
193
|
|
|
186
194
|
export const ViewPreference = {
|
|
@@ -247,27 +255,11 @@ export type DismissedToasts = {
|
|
|
247
255
|
/**
|
|
248
256
|
* A list of projects and spaces across teams that a user has marked as a favorite.
|
|
249
257
|
*/
|
|
250
|
-
export type
|
|
251
|
-
|
|
252
|
-
scopeSlug: string;
|
|
253
|
-
scopeId: string;
|
|
254
|
-
teamId?: string | undefined;
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* A list of projects and spaces across teams that a user has marked as a favorite.
|
|
259
|
-
*/
|
|
260
|
-
export type FavoriteProjectsAndSpaces1 = {
|
|
258
|
+
export type FavoriteProjectsAndSpaces = {
|
|
259
|
+
teamId: string;
|
|
261
260
|
projectId: string;
|
|
262
|
-
scopeSlug: string;
|
|
263
|
-
scopeId: string;
|
|
264
|
-
teamId?: string | undefined;
|
|
265
261
|
};
|
|
266
262
|
|
|
267
|
-
export type FavoriteProjectsAndSpaces =
|
|
268
|
-
| FavoriteProjectsAndSpaces1
|
|
269
|
-
| FavoriteProjectsAndSpaces2;
|
|
270
|
-
|
|
271
263
|
/**
|
|
272
264
|
* remote caching settings
|
|
273
265
|
*/
|
|
@@ -378,9 +370,7 @@ export type AuthUser = {
|
|
|
378
370
|
/**
|
|
379
371
|
* A list of projects and spaces across teams that a user has marked as a favorite.
|
|
380
372
|
*/
|
|
381
|
-
favoriteProjectsAndSpaces?:
|
|
382
|
-
| Array<FavoriteProjectsAndSpaces1 | FavoriteProjectsAndSpaces2>
|
|
383
|
-
| undefined;
|
|
373
|
+
favoriteProjectsAndSpaces?: Array<FavoriteProjectsAndSpaces> | undefined;
|
|
384
374
|
/**
|
|
385
375
|
* Whether the user has a trial available for a paid plan subscription.
|
|
386
376
|
*/
|
|
@@ -646,6 +636,8 @@ export const ResourceConfig$inboundSchema: z.ZodType<
|
|
|
646
636
|
cronJobsPerProject: z.number().optional(),
|
|
647
637
|
microfrontendGroupsPerTeam: z.number().optional(),
|
|
648
638
|
microfrontendProjectsPerGroup: z.number().optional(),
|
|
639
|
+
flagsExplorerOverridesThreshold: z.number().optional(),
|
|
640
|
+
flagsExplorerUnlimitedOverrides: z.boolean().optional(),
|
|
649
641
|
});
|
|
650
642
|
|
|
651
643
|
/** @internal */
|
|
@@ -671,6 +663,8 @@ export type ResourceConfig$Outbound = {
|
|
|
671
663
|
cronJobsPerProject?: number | undefined;
|
|
672
664
|
microfrontendGroupsPerTeam?: number | undefined;
|
|
673
665
|
microfrontendProjectsPerGroup?: number | undefined;
|
|
666
|
+
flagsExplorerOverridesThreshold?: number | undefined;
|
|
667
|
+
flagsExplorerUnlimitedOverrides?: boolean | undefined;
|
|
674
668
|
};
|
|
675
669
|
|
|
676
670
|
/** @internal */
|
|
@@ -700,6 +694,8 @@ export const ResourceConfig$outboundSchema: z.ZodType<
|
|
|
700
694
|
cronJobsPerProject: z.number().optional(),
|
|
701
695
|
microfrontendGroupsPerTeam: z.number().optional(),
|
|
702
696
|
microfrontendProjectsPerGroup: z.number().optional(),
|
|
697
|
+
flagsExplorerOverridesThreshold: z.number().optional(),
|
|
698
|
+
flagsExplorerUnlimitedOverrides: z.boolean().optional(),
|
|
703
699
|
});
|
|
704
700
|
|
|
705
701
|
/**
|
|
@@ -1188,155 +1184,30 @@ export function dismissedToastsFromJSON(
|
|
|
1188
1184
|
}
|
|
1189
1185
|
|
|
1190
1186
|
/** @internal */
|
|
1191
|
-
export const
|
|
1192
|
-
|
|
1193
|
-
z.ZodTypeDef,
|
|
1194
|
-
unknown
|
|
1195
|
-
> = z.object({
|
|
1196
|
-
spaceId: z.string(),
|
|
1197
|
-
scopeSlug: z.string(),
|
|
1198
|
-
scopeId: z.string(),
|
|
1199
|
-
teamId: z.string().optional(),
|
|
1200
|
-
});
|
|
1201
|
-
|
|
1202
|
-
/** @internal */
|
|
1203
|
-
export type FavoriteProjectsAndSpaces2$Outbound = {
|
|
1204
|
-
spaceId: string;
|
|
1205
|
-
scopeSlug: string;
|
|
1206
|
-
scopeId: string;
|
|
1207
|
-
teamId?: string | undefined;
|
|
1208
|
-
};
|
|
1209
|
-
|
|
1210
|
-
/** @internal */
|
|
1211
|
-
export const FavoriteProjectsAndSpaces2$outboundSchema: z.ZodType<
|
|
1212
|
-
FavoriteProjectsAndSpaces2$Outbound,
|
|
1213
|
-
z.ZodTypeDef,
|
|
1214
|
-
FavoriteProjectsAndSpaces2
|
|
1215
|
-
> = z.object({
|
|
1216
|
-
spaceId: z.string(),
|
|
1217
|
-
scopeSlug: z.string(),
|
|
1218
|
-
scopeId: z.string(),
|
|
1219
|
-
teamId: z.string().optional(),
|
|
1220
|
-
});
|
|
1221
|
-
|
|
1222
|
-
/**
|
|
1223
|
-
* @internal
|
|
1224
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1225
|
-
*/
|
|
1226
|
-
export namespace FavoriteProjectsAndSpaces2$ {
|
|
1227
|
-
/** @deprecated use `FavoriteProjectsAndSpaces2$inboundSchema` instead. */
|
|
1228
|
-
export const inboundSchema = FavoriteProjectsAndSpaces2$inboundSchema;
|
|
1229
|
-
/** @deprecated use `FavoriteProjectsAndSpaces2$outboundSchema` instead. */
|
|
1230
|
-
export const outboundSchema = FavoriteProjectsAndSpaces2$outboundSchema;
|
|
1231
|
-
/** @deprecated use `FavoriteProjectsAndSpaces2$Outbound` instead. */
|
|
1232
|
-
export type Outbound = FavoriteProjectsAndSpaces2$Outbound;
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
|
-
export function favoriteProjectsAndSpaces2ToJSON(
|
|
1236
|
-
favoriteProjectsAndSpaces2: FavoriteProjectsAndSpaces2,
|
|
1237
|
-
): string {
|
|
1238
|
-
return JSON.stringify(
|
|
1239
|
-
FavoriteProjectsAndSpaces2$outboundSchema.parse(favoriteProjectsAndSpaces2),
|
|
1240
|
-
);
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
export function favoriteProjectsAndSpaces2FromJSON(
|
|
1244
|
-
jsonString: string,
|
|
1245
|
-
): SafeParseResult<FavoriteProjectsAndSpaces2, SDKValidationError> {
|
|
1246
|
-
return safeParse(
|
|
1247
|
-
jsonString,
|
|
1248
|
-
(x) => FavoriteProjectsAndSpaces2$inboundSchema.parse(JSON.parse(x)),
|
|
1249
|
-
`Failed to parse 'FavoriteProjectsAndSpaces2' from JSON`,
|
|
1250
|
-
);
|
|
1251
|
-
}
|
|
1252
|
-
|
|
1253
|
-
/** @internal */
|
|
1254
|
-
export const FavoriteProjectsAndSpaces1$inboundSchema: z.ZodType<
|
|
1255
|
-
FavoriteProjectsAndSpaces1,
|
|
1187
|
+
export const FavoriteProjectsAndSpaces$inboundSchema: z.ZodType<
|
|
1188
|
+
FavoriteProjectsAndSpaces,
|
|
1256
1189
|
z.ZodTypeDef,
|
|
1257
1190
|
unknown
|
|
1258
1191
|
> = z.object({
|
|
1192
|
+
teamId: z.string(),
|
|
1259
1193
|
projectId: z.string(),
|
|
1260
|
-
scopeSlug: z.string(),
|
|
1261
|
-
scopeId: z.string(),
|
|
1262
|
-
teamId: z.string().optional(),
|
|
1263
1194
|
});
|
|
1264
1195
|
|
|
1265
1196
|
/** @internal */
|
|
1266
|
-
export type
|
|
1197
|
+
export type FavoriteProjectsAndSpaces$Outbound = {
|
|
1198
|
+
teamId: string;
|
|
1267
1199
|
projectId: string;
|
|
1268
|
-
scopeSlug: string;
|
|
1269
|
-
scopeId: string;
|
|
1270
|
-
teamId?: string | undefined;
|
|
1271
1200
|
};
|
|
1272
1201
|
|
|
1273
|
-
/** @internal */
|
|
1274
|
-
export const FavoriteProjectsAndSpaces1$outboundSchema: z.ZodType<
|
|
1275
|
-
FavoriteProjectsAndSpaces1$Outbound,
|
|
1276
|
-
z.ZodTypeDef,
|
|
1277
|
-
FavoriteProjectsAndSpaces1
|
|
1278
|
-
> = z.object({
|
|
1279
|
-
projectId: z.string(),
|
|
1280
|
-
scopeSlug: z.string(),
|
|
1281
|
-
scopeId: z.string(),
|
|
1282
|
-
teamId: z.string().optional(),
|
|
1283
|
-
});
|
|
1284
|
-
|
|
1285
|
-
/**
|
|
1286
|
-
* @internal
|
|
1287
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1288
|
-
*/
|
|
1289
|
-
export namespace FavoriteProjectsAndSpaces1$ {
|
|
1290
|
-
/** @deprecated use `FavoriteProjectsAndSpaces1$inboundSchema` instead. */
|
|
1291
|
-
export const inboundSchema = FavoriteProjectsAndSpaces1$inboundSchema;
|
|
1292
|
-
/** @deprecated use `FavoriteProjectsAndSpaces1$outboundSchema` instead. */
|
|
1293
|
-
export const outboundSchema = FavoriteProjectsAndSpaces1$outboundSchema;
|
|
1294
|
-
/** @deprecated use `FavoriteProjectsAndSpaces1$Outbound` instead. */
|
|
1295
|
-
export type Outbound = FavoriteProjectsAndSpaces1$Outbound;
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
export function favoriteProjectsAndSpaces1ToJSON(
|
|
1299
|
-
favoriteProjectsAndSpaces1: FavoriteProjectsAndSpaces1,
|
|
1300
|
-
): string {
|
|
1301
|
-
return JSON.stringify(
|
|
1302
|
-
FavoriteProjectsAndSpaces1$outboundSchema.parse(favoriteProjectsAndSpaces1),
|
|
1303
|
-
);
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
|
-
export function favoriteProjectsAndSpaces1FromJSON(
|
|
1307
|
-
jsonString: string,
|
|
1308
|
-
): SafeParseResult<FavoriteProjectsAndSpaces1, SDKValidationError> {
|
|
1309
|
-
return safeParse(
|
|
1310
|
-
jsonString,
|
|
1311
|
-
(x) => FavoriteProjectsAndSpaces1$inboundSchema.parse(JSON.parse(x)),
|
|
1312
|
-
`Failed to parse 'FavoriteProjectsAndSpaces1' from JSON`,
|
|
1313
|
-
);
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
/** @internal */
|
|
1317
|
-
export const FavoriteProjectsAndSpaces$inboundSchema: z.ZodType<
|
|
1318
|
-
FavoriteProjectsAndSpaces,
|
|
1319
|
-
z.ZodTypeDef,
|
|
1320
|
-
unknown
|
|
1321
|
-
> = z.union([
|
|
1322
|
-
z.lazy(() => FavoriteProjectsAndSpaces1$inboundSchema),
|
|
1323
|
-
z.lazy(() => FavoriteProjectsAndSpaces2$inboundSchema),
|
|
1324
|
-
]);
|
|
1325
|
-
|
|
1326
|
-
/** @internal */
|
|
1327
|
-
export type FavoriteProjectsAndSpaces$Outbound =
|
|
1328
|
-
| FavoriteProjectsAndSpaces1$Outbound
|
|
1329
|
-
| FavoriteProjectsAndSpaces2$Outbound;
|
|
1330
|
-
|
|
1331
1202
|
/** @internal */
|
|
1332
1203
|
export const FavoriteProjectsAndSpaces$outboundSchema: z.ZodType<
|
|
1333
1204
|
FavoriteProjectsAndSpaces$Outbound,
|
|
1334
1205
|
z.ZodTypeDef,
|
|
1335
1206
|
FavoriteProjectsAndSpaces
|
|
1336
|
-
> = z.
|
|
1337
|
-
z.
|
|
1338
|
-
z.
|
|
1339
|
-
|
|
1207
|
+
> = z.object({
|
|
1208
|
+
teamId: z.string(),
|
|
1209
|
+
projectId: z.string(),
|
|
1210
|
+
});
|
|
1340
1211
|
|
|
1341
1212
|
/**
|
|
1342
1213
|
* @internal
|
|
@@ -1692,10 +1563,7 @@ export const AuthUser$inboundSchema: z.ZodType<
|
|
|
1692
1563
|
dismissedToasts: z.array(z.lazy(() => DismissedToasts$inboundSchema))
|
|
1693
1564
|
.optional(),
|
|
1694
1565
|
favoriteProjectsAndSpaces: z.array(
|
|
1695
|
-
z.
|
|
1696
|
-
z.lazy(() => FavoriteProjectsAndSpaces1$inboundSchema),
|
|
1697
|
-
z.lazy(() => FavoriteProjectsAndSpaces2$inboundSchema),
|
|
1698
|
-
]),
|
|
1566
|
+
z.lazy(() => FavoriteProjectsAndSpaces$inboundSchema),
|
|
1699
1567
|
).optional(),
|
|
1700
1568
|
hasTrialAvailable: z.boolean(),
|
|
1701
1569
|
remoteCaching: z.lazy(() => RemoteCaching$inboundSchema).optional(),
|
|
@@ -1727,9 +1595,7 @@ export type AuthUser$Outbound = {
|
|
|
1727
1595
|
| undefined;
|
|
1728
1596
|
dismissedToasts?: Array<DismissedToasts$Outbound> | undefined;
|
|
1729
1597
|
favoriteProjectsAndSpaces?:
|
|
1730
|
-
| Array<
|
|
1731
|
-
FavoriteProjectsAndSpaces1$Outbound | FavoriteProjectsAndSpaces2$Outbound
|
|
1732
|
-
>
|
|
1598
|
+
| Array<FavoriteProjectsAndSpaces$Outbound>
|
|
1733
1599
|
| undefined;
|
|
1734
1600
|
hasTrialAvailable: boolean;
|
|
1735
1601
|
remoteCaching?: RemoteCaching$Outbound | undefined;
|
|
@@ -1771,10 +1637,7 @@ export const AuthUser$outboundSchema: z.ZodType<
|
|
|
1771
1637
|
dismissedToasts: z.array(z.lazy(() => DismissedToasts$outboundSchema))
|
|
1772
1638
|
.optional(),
|
|
1773
1639
|
favoriteProjectsAndSpaces: z.array(
|
|
1774
|
-
z.
|
|
1775
|
-
z.lazy(() => FavoriteProjectsAndSpaces1$outboundSchema),
|
|
1776
|
-
z.lazy(() => FavoriteProjectsAndSpaces2$outboundSchema),
|
|
1777
|
-
]),
|
|
1640
|
+
z.lazy(() => FavoriteProjectsAndSpaces$outboundSchema),
|
|
1778
1641
|
).optional(),
|
|
1779
1642
|
hasTrialAvailable: z.boolean(),
|
|
1780
1643
|
remoteCaching: z.lazy(() => RemoteCaching$outboundSchema).optional(),
|
|
@@ -175,7 +175,7 @@ export type OidcTokenConfig = {
|
|
|
175
175
|
/**
|
|
176
176
|
* Whether or not to generate OpenID Connect JSON Web Tokens.
|
|
177
177
|
*/
|
|
178
|
-
enabled
|
|
178
|
+
enabled?: boolean | undefined;
|
|
179
179
|
/**
|
|
180
180
|
* team: `https://oidc.vercel.com/[team_slug]` global: `https://oidc.vercel.com`
|
|
181
181
|
*/
|
|
@@ -2149,8 +2149,8 @@ export const OidcTokenConfig$inboundSchema: z.ZodType<
|
|
|
2149
2149
|
z.ZodTypeDef,
|
|
2150
2150
|
unknown
|
|
2151
2151
|
> = z.object({
|
|
2152
|
-
enabled: z.boolean(),
|
|
2153
|
-
issuerMode: IssuerMode$inboundSchema.default("
|
|
2152
|
+
enabled: z.boolean().default(true),
|
|
2153
|
+
issuerMode: IssuerMode$inboundSchema.default("team"),
|
|
2154
2154
|
});
|
|
2155
2155
|
|
|
2156
2156
|
/** @internal */
|
|
@@ -2165,8 +2165,8 @@ export const OidcTokenConfig$outboundSchema: z.ZodType<
|
|
|
2165
2165
|
z.ZodTypeDef,
|
|
2166
2166
|
OidcTokenConfig
|
|
2167
2167
|
> = z.object({
|
|
2168
|
-
enabled: z.boolean(),
|
|
2169
|
-
issuerMode: IssuerMode$outboundSchema.default("
|
|
2168
|
+
enabled: z.boolean().default(true),
|
|
2169
|
+
issuerMode: IssuerMode$outboundSchema.default("team"),
|
|
2170
2170
|
});
|
|
2171
2171
|
|
|
2172
2172
|
/**
|