@avallon-labs/mcp 71.2.0-staging.1524 → 72.0.0-staging.1525
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/dist/index.js
CHANGED
|
@@ -620,29 +620,6 @@ var updateArtifactMetadata = async (id, updateArtifactMetadataBody, options) =>
|
|
|
620
620
|
const data = body ? JSON.parse(body) : {};
|
|
621
621
|
return { data, status: res.status, headers: res.headers };
|
|
622
622
|
};
|
|
623
|
-
var getSignUpUrl = () => {
|
|
624
|
-
return `/v1/auth/sign-up`;
|
|
625
|
-
};
|
|
626
|
-
var signUp = async (signUpBody, options) => {
|
|
627
|
-
const getHeaders = (h) => {
|
|
628
|
-
if (!h) return {};
|
|
629
|
-
if (h instanceof Headers) return Object.fromEntries(h.entries());
|
|
630
|
-
if (Array.isArray(h)) return Object.fromEntries(h);
|
|
631
|
-
return h;
|
|
632
|
-
};
|
|
633
|
-
const res = await fetch(
|
|
634
|
-
getSignUpUrl(),
|
|
635
|
-
{
|
|
636
|
-
...options,
|
|
637
|
-
method: "POST",
|
|
638
|
-
headers: { "Content-Type": "application/json", ...getHeaders(options?.headers) },
|
|
639
|
-
body: JSON.stringify(signUpBody)
|
|
640
|
-
}
|
|
641
|
-
);
|
|
642
|
-
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
643
|
-
const data = body ? JSON.parse(body) : {};
|
|
644
|
-
return { data, status: res.status, headers: res.headers };
|
|
645
|
-
};
|
|
646
623
|
var getSignInUrl = () => {
|
|
647
624
|
return `/v1/auth/sign-in`;
|
|
648
625
|
};
|
|
@@ -5426,29 +5403,6 @@ var updateArtifactMetadataHandler = async (args, options) => {
|
|
|
5426
5403
|
structuredContent: res.data
|
|
5427
5404
|
};
|
|
5428
5405
|
};
|
|
5429
|
-
var signUpHandler = async (args, options) => {
|
|
5430
|
-
const res = await signUp(args.bodyParams, options);
|
|
5431
|
-
if (res.status >= 400) {
|
|
5432
|
-
return {
|
|
5433
|
-
content: [
|
|
5434
|
-
{
|
|
5435
|
-
type: "text",
|
|
5436
|
-
text: JSON.stringify(res.data ?? null)
|
|
5437
|
-
}
|
|
5438
|
-
],
|
|
5439
|
-
isError: true
|
|
5440
|
-
};
|
|
5441
|
-
}
|
|
5442
|
-
return {
|
|
5443
|
-
content: [
|
|
5444
|
-
{
|
|
5445
|
-
type: "text",
|
|
5446
|
-
text: JSON.stringify(res.data ?? null)
|
|
5447
|
-
}
|
|
5448
|
-
],
|
|
5449
|
-
structuredContent: res.data
|
|
5450
|
-
};
|
|
5451
|
-
};
|
|
5452
5406
|
var signInHandler = async (args, options) => {
|
|
5453
5407
|
const res = await signIn(args.bodyParams, options);
|
|
5454
5408
|
if (res.status >= 400) {
|
|
@@ -11156,16 +11110,6 @@ var UpdateArtifactMetadataResponse = zod.object({
|
|
|
11156
11110
|
}),
|
|
11157
11111
|
"message": zod.string()
|
|
11158
11112
|
});
|
|
11159
|
-
var SignUpBody = zod.object({
|
|
11160
|
-
"email": zod.string().email(),
|
|
11161
|
-
"password": zod.string()
|
|
11162
|
-
});
|
|
11163
|
-
var SignUpResponse = zod.object({
|
|
11164
|
-
"data": zod.object({
|
|
11165
|
-
"pending_authentication_token": zod.string().optional()
|
|
11166
|
-
}),
|
|
11167
|
-
"message": zod.string()
|
|
11168
|
-
});
|
|
11169
11113
|
var SignInBody = zod.union([zod.object({
|
|
11170
11114
|
"type": zod.literal("password"),
|
|
11171
11115
|
"email": zod.string().email(),
|
|
@@ -17436,27 +17380,11 @@ var createMcpServer = (options) => {
|
|
|
17436
17380
|
signal: options?.signal ? AbortSignal.any([options.signal, ctx.signal]) : ctx.signal
|
|
17437
17381
|
})
|
|
17438
17382
|
);
|
|
17439
|
-
tools.signUp = server2.registerTool(
|
|
17440
|
-
"signUp",
|
|
17441
|
-
{
|
|
17442
|
-
title: "Sign up",
|
|
17443
|
-
description: "Create a new user account with email and password. When the response includes a pending_authentication_token, the account requires email verification: complete it via sign-in (type: email_otp) with the emailed one-time password and this token.",
|
|
17444
|
-
inputSchema: {
|
|
17445
|
-
bodyParams: SignUpBody.optional()
|
|
17446
|
-
},
|
|
17447
|
-
outputSchema: SignUpResponse,
|
|
17448
|
-
annotations: { destructiveHint: true }
|
|
17449
|
-
},
|
|
17450
|
-
(args, ctx) => signUpHandler(args, {
|
|
17451
|
-
...options,
|
|
17452
|
-
signal: options?.signal ? AbortSignal.any([options.signal, ctx.signal]) : ctx.signal
|
|
17453
|
-
})
|
|
17454
|
-
);
|
|
17455
17383
|
tools.signIn = server2.registerTool(
|
|
17456
17384
|
"signIn",
|
|
17457
17385
|
{
|
|
17458
17386
|
title: "Sign in",
|
|
17459
|
-
description: "Authenticate using one of the supported methods:\n\n- **Password:** Email and password credentials. If the password is correct but the email is not verified yet, responds 403 with `data.pending_authentication_token` and a fresh verification code is emailed; complete verification via **Email OTP**. Each password attempt invalidates earlier codes and tokens, so always use the most recent pair \u2014 repeating the password sign-in is also how a new code is requested.\n- **OAuth:** Authorization code from OAuth flow (social or enterprise SSO). Pass the `provider` the flow was started with so the code is exchanged against the system that issued it. `verifier` is only required when the flow was started with a `code_challenge` \u2014 see **Get OAuth sign-in URL**.\n- **Email OTP:** One-time password sent to email. Include the `pending_authentication_token` from
|
|
17387
|
+
description: "Authenticate using one of the supported methods:\n\n- **Password:** Email and password credentials. If the password is correct but the email is not verified yet, responds 403 with `data.pending_authentication_token` and a fresh verification code is emailed; complete verification via **Email OTP**. Each password attempt invalidates earlier codes and tokens, so always use the most recent pair \u2014 repeating the password sign-in is also how a new code is requested.\n- **OAuth:** Authorization code from OAuth flow (social or enterprise SSO). Pass the `provider` the flow was started with so the code is exchanged against the system that issued it. `verifier` is only required when the flow was started with a `code_challenge` \u2014 see **Get OAuth sign-in URL**.\n- **Email OTP:** One-time password sent to email. Include the `pending_authentication_token` from the 403 returned by an unverified user's password sign-in when completing email verification.",
|
|
17460
17388
|
inputSchema: {
|
|
17461
17389
|
bodyParams: SignInBody.optional()
|
|
17462
17390
|
},
|
|
@@ -20757,4 +20685,4 @@ var transport = new StdioServerTransport();
|
|
|
20757
20685
|
server.connect(transport).then(() => {
|
|
20758
20686
|
console.error("MCP server running on stdio");
|
|
20759
20687
|
}).catch(console.error);
|
|
20760
|
-
//# sourceMappingURL=server-
|
|
20688
|
+
//# sourceMappingURL=server-XXBLTWTM.js.map
|