@avallon-labs/mcp 71.2.0-staging.1524 → 72.1.0-staging.1526
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) {
|
|
@@ -11076,7 +11030,8 @@ var GetArtifactResponse = zod.object({
|
|
|
11076
11030
|
"updated_at": zod.string().datetime({ "offset": true }),
|
|
11077
11031
|
"status": zod.enum(["processing", "parsed", "raw", "missing"]),
|
|
11078
11032
|
"content_md": zod.union([zod.string(), zod.null()]),
|
|
11079
|
-
"content_with_chunkids_md": zod.union([zod.string(), zod.null()]).describe("Parsed content annotated with [chunk_id=...] markers,
|
|
11033
|
+
"content_with_chunkids_md": zod.union([zod.string(), zod.null()]).describe("Parsed content annotated with [chunk_id=...] markers, included when the artifact has parsed chunks. Chunk IDs are stable citation anchors usable to attribute extracted values to their source location. Null when the artifact has no parsed chunks."),
|
|
11034
|
+
"content_truncated": zod.boolean().describe("True when the response was too large for the response size limit and content_with_chunkids_md, then content_md if still needed, was replaced by a hint. The original file is still available from file_url when there is one.")
|
|
11080
11035
|
})
|
|
11081
11036
|
}),
|
|
11082
11037
|
"message": zod.string()
|
|
@@ -11151,21 +11106,12 @@ var UpdateArtifactMetadataResponse = zod.object({
|
|
|
11151
11106
|
"updated_at": zod.string().datetime({ "offset": true }),
|
|
11152
11107
|
"status": zod.enum(["processing", "parsed", "raw", "missing"]),
|
|
11153
11108
|
"content_md": zod.union([zod.string(), zod.null()]),
|
|
11154
|
-
"content_with_chunkids_md": zod.union([zod.string(), zod.null()]).describe("Parsed content annotated with [chunk_id=...] markers,
|
|
11109
|
+
"content_with_chunkids_md": zod.union([zod.string(), zod.null()]).describe("Parsed content annotated with [chunk_id=...] markers, included when the artifact has parsed chunks. Chunk IDs are stable citation anchors usable to attribute extracted values to their source location. Null when the artifact has no parsed chunks."),
|
|
11110
|
+
"content_truncated": zod.boolean().describe("True when the response was too large for the response size limit and content_with_chunkids_md, then content_md if still needed, was replaced by a hint. The original file is still available from file_url when there is one.")
|
|
11155
11111
|
})
|
|
11156
11112
|
}),
|
|
11157
11113
|
"message": zod.string()
|
|
11158
11114
|
});
|
|
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
11115
|
var SignInBody = zod.union([zod.object({
|
|
11170
11116
|
"type": zod.literal("password"),
|
|
11171
11117
|
"email": zod.string().email(),
|
|
@@ -17343,7 +17289,7 @@ var createMcpServer = (options) => {
|
|
|
17343
17289
|
"getArtifact",
|
|
17344
17290
|
{
|
|
17345
17291
|
title: "Get artifact",
|
|
17346
|
-
description: "Retrieve a single artifact by ID, including its metadata, file URL, extracted content, and chunk-annotated content.\n\nThe response
|
|
17292
|
+
description: "Retrieve a single artifact by ID, including its metadata, file URL, extracted content, and chunk-annotated content.\n\nThe response includes `content_with_chunkids_md`: the parsed content annotated with `[chunk_id=...]` markers when the artifact has parsed chunks. Chunk IDs are stable citation anchors \u2014 cite them to attribute extracted values to their source location.\n\nWhen the response would exceed the size limit, `content_with_chunkids_md`, then `content_md` if still needed, is replaced by a hint, and `content_truncated` is true. The original file is still available from `file_url` when there is one.",
|
|
17347
17293
|
inputSchema: {
|
|
17348
17294
|
pathParams: GetArtifactParams
|
|
17349
17295
|
},
|
|
@@ -17436,27 +17382,11 @@ var createMcpServer = (options) => {
|
|
|
17436
17382
|
signal: options?.signal ? AbortSignal.any([options.signal, ctx.signal]) : ctx.signal
|
|
17437
17383
|
})
|
|
17438
17384
|
);
|
|
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
17385
|
tools.signIn = server2.registerTool(
|
|
17456
17386
|
"signIn",
|
|
17457
17387
|
{
|
|
17458
17388
|
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
|
|
17389
|
+
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
17390
|
inputSchema: {
|
|
17461
17391
|
bodyParams: SignInBody.optional()
|
|
17462
17392
|
},
|
|
@@ -20757,4 +20687,4 @@ var transport = new StdioServerTransport();
|
|
|
20757
20687
|
server.connect(transport).then(() => {
|
|
20758
20688
|
console.error("MCP server running on stdio");
|
|
20759
20689
|
}).catch(console.error);
|
|
20760
|
-
//# sourceMappingURL=server-
|
|
20690
|
+
//# sourceMappingURL=server-ZQTEQX3I.js.map
|