@layervai/qurl-mcp 0.4.0 → 0.5.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/README.md +742 -46
- package/assets/fonts/NotoSansSC-Regular.ttf +0 -0
- package/assets/fonts/OFL.txt +93 -0
- package/assets/fonts/README.md +18 -0
- package/dist/auth/request-context.d.ts +13 -0
- package/dist/auth/request-context.d.ts.map +1 -0
- package/dist/auth/request-context.js +21 -0
- package/dist/auth/request-context.js.map +1 -0
- package/dist/auth/static-bearer.d.ts +12 -0
- package/dist/auth/static-bearer.d.ts.map +1 -0
- package/dist/auth/static-bearer.js +47 -0
- package/dist/auth/static-bearer.js.map +1 -0
- package/dist/client.d.ts +112 -23
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +173 -78
- package/dist/client.js.map +1 -1
- package/dist/config.d.ts +98 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +543 -0
- package/dist/config.js.map +1 -0
- package/dist/credential-rate-limit-store.d.ts +38 -0
- package/dist/credential-rate-limit-store.d.ts.map +1 -0
- package/dist/credential-rate-limit-store.js +135 -0
- package/dist/credential-rate-limit-store.js.map +1 -0
- package/dist/email-addresses.d.ts +7 -0
- package/dist/email-addresses.d.ts.map +1 -0
- package/dist/email-addresses.js +36 -0
- package/dist/email-addresses.js.map +1 -0
- package/dist/email-types.d.ts +33 -0
- package/dist/email-types.d.ts.map +1 -0
- package/dist/email-types.js +28 -0
- package/dist/email-types.js.map +1 -0
- package/dist/emf-metrics.d.ts +25 -0
- package/dist/emf-metrics.d.ts.map +1 -0
- package/dist/emf-metrics.js +87 -0
- package/dist/emf-metrics.js.map +1 -0
- package/dist/http-config.d.ts +38 -0
- package/dist/http-config.d.ts.map +1 -0
- package/dist/http-config.js +243 -0
- package/dist/http-config.js.map +1 -0
- package/dist/http-routes.d.ts +5 -0
- package/dist/http-routes.d.ts.map +1 -0
- package/dist/http-routes.js +12 -0
- package/dist/http-routes.js.map +1 -0
- package/dist/http.d.ts +33 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/http.js +1116 -0
- package/dist/http.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -25
- package/dist/index.js.map +1 -1
- package/dist/logging.d.ts +7 -0
- package/dist/logging.d.ts.map +1 -0
- package/dist/logging.js +110 -0
- package/dist/logging.js.map +1 -0
- package/dist/prompts/secure-a-service.d.ts +16 -4
- package/dist/prompts/secure-a-service.d.ts.map +1 -1
- package/dist/prompts/secure-a-service.js +7 -15
- package/dist/prompts/secure-a-service.js.map +1 -1
- package/dist/server.d.ts +18 -6
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +41 -8
- package/dist/server.js.map +1 -1
- package/dist/services/email.d.ts +17 -0
- package/dist/services/email.d.ts.map +1 -0
- package/dist/services/email.js +351 -0
- package/dist/services/email.js.map +1 -0
- package/dist/services/html.d.ts +5 -0
- package/dist/services/html.d.ts.map +1 -0
- package/dist/services/html.js +28 -0
- package/dist/services/html.js.map +1 -0
- package/dist/services/legal-pages.d.ts +12 -0
- package/dist/services/legal-pages.d.ts.map +1 -0
- package/dist/services/legal-pages.js +588 -0
- package/dist/services/legal-pages.js.map +1 -0
- package/dist/services/text-pdf.d.ts +16 -0
- package/dist/services/text-pdf.d.ts.map +1 -0
- package/dist/services/text-pdf.js +141 -0
- package/dist/services/text-pdf.js.map +1 -0
- package/dist/services/video-page.d.ts +4 -0
- package/dist/services/video-page.d.ts.map +1 -0
- package/dist/services/video-page.js +311 -0
- package/dist/services/video-page.js.map +1 -0
- package/dist/text.d.ts +4 -0
- package/dist/text.d.ts.map +1 -0
- package/dist/text.js +16 -0
- package/dist/text.js.map +1 -0
- package/dist/tools/_shared.d.ts +13 -3
- package/dist/tools/_shared.d.ts.map +1 -1
- package/dist/tools/_shared.js +31 -7
- package/dist/tools/_shared.js.map +1 -1
- package/dist/tools/batch-create.d.ts +36 -343
- package/dist/tools/batch-create.d.ts.map +1 -1
- package/dist/tools/batch-create.js +7 -4
- package/dist/tools/batch-create.js.map +1 -1
- package/dist/tools/create-qurl.d.ts +79 -237
- package/dist/tools/create-qurl.d.ts.map +1 -1
- package/dist/tools/create-qurl.js +77 -47
- package/dist/tools/create-qurl.js.map +1 -1
- package/dist/tools/delete-qurl.d.ts +5 -22
- package/dist/tools/delete-qurl.d.ts.map +1 -1
- package/dist/tools/delete-qurl.js +19 -13
- package/dist/tools/delete-qurl.js.map +1 -1
- package/dist/tools/email-delivery.d.ts +37 -0
- package/dist/tools/email-delivery.d.ts.map +1 -0
- package/dist/tools/email-delivery.js +115 -0
- package/dist/tools/email-delivery.js.map +1 -0
- package/dist/tools/extend-qurl.d.ts +36 -189
- package/dist/tools/extend-qurl.d.ts.map +1 -1
- package/dist/tools/extend-qurl.js +3 -3
- package/dist/tools/extend-qurl.js.map +1 -1
- package/dist/tools/get-qurl.d.ts +36 -185
- package/dist/tools/get-qurl.d.ts.map +1 -1
- package/dist/tools/get-qurl.js +8 -5
- package/dist/tools/get-qurl.js.map +1 -1
- package/dist/tools/list-qurl-sessions.d.ts +45 -0
- package/dist/tools/list-qurl-sessions.d.ts.map +1 -0
- package/dist/tools/list-qurl-sessions.js +33 -0
- package/dist/tools/list-qurl-sessions.js.map +1 -0
- package/dist/tools/list-qurls.d.ts +38 -319
- package/dist/tools/list-qurls.d.ts.map +1 -1
- package/dist/tools/list-qurls.js +45 -20
- package/dist/tools/list-qurls.js.map +1 -1
- package/dist/tools/mint-link.d.ts +72 -303
- package/dist/tools/mint-link.d.ts.map +1 -1
- package/dist/tools/mint-link.js +35 -21
- package/dist/tools/mint-link.js.map +1 -1
- package/dist/tools/output-schemas.d.ts +326 -1112
- package/dist/tools/output-schemas.d.ts.map +1 -1
- package/dist/tools/output-schemas.js +141 -40
- package/dist/tools/output-schemas.js.map +1 -1
- package/dist/tools/resolve-qurl.d.ts +6 -37
- package/dist/tools/resolve-qurl.d.ts.map +1 -1
- package/dist/tools/resolve-qurl.js +5 -5
- package/dist/tools/resolve-qurl.js.map +1 -1
- package/dist/tools/revoke-qurl-token.d.ts +41 -0
- package/dist/tools/revoke-qurl-token.d.ts.map +1 -0
- package/dist/tools/revoke-qurl-token.js +40 -0
- package/dist/tools/revoke-qurl-token.js.map +1 -0
- package/dist/tools/terminate-qurl-sessions.d.ts +41 -0
- package/dist/tools/terminate-qurl-sessions.d.ts.map +1 -0
- package/dist/tools/terminate-qurl-sessions.js +68 -0
- package/dist/tools/terminate-qurl-sessions.js.map +1 -0
- package/dist/tools/update-qurl-token.d.ts +142 -0
- package/dist/tools/update-qurl-token.d.ts.map +1 -0
- package/dist/tools/update-qurl-token.js +75 -0
- package/dist/tools/update-qurl-token.js.map +1 -0
- package/dist/tools/update-qurl.d.ts +43 -264
- package/dist/tools/update-qurl.d.ts.map +1 -1
- package/dist/tools/update-qurl.js +57 -8
- package/dist/tools/update-qurl.js.map +1 -1
- package/dist/tools/upload-file-data-qurl.d.ts +182 -0
- package/dist/tools/upload-file-data-qurl.d.ts.map +1 -0
- package/dist/tools/upload-file-data-qurl.js +200 -0
- package/dist/tools/upload-file-data-qurl.js.map +1 -0
- package/dist/tools/upload-file-qurl.d.ts +162 -0
- package/dist/tools/upload-file-qurl.d.ts.map +1 -0
- package/dist/tools/upload-file-qurl.js +167 -0
- package/dist/tools/upload-file-qurl.js.map +1 -0
- package/dist/tools/upload-file-shared.d.ts +36 -0
- package/dist/tools/upload-file-shared.d.ts.map +1 -0
- package/dist/tools/upload-file-shared.js +347 -0
- package/dist/tools/upload-file-shared.js.map +1 -0
- package/dist/tools/upload-mint-options.d.ts +22 -0
- package/dist/tools/upload-mint-options.d.ts.map +1 -0
- package/dist/tools/upload-mint-options.js +29 -0
- package/dist/tools/upload-mint-options.js.map +1 -0
- package/dist/tools/upload-text-qurl.d.ts +144 -0
- package/dist/tools/upload-text-qurl.d.ts.map +1 -0
- package/dist/tools/upload-text-qurl.js +102 -0
- package/dist/tools/upload-text-qurl.js.map +1 -0
- package/package.json +27 -8
|
Binary file
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'
|
|
2
|
+
|
|
3
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
4
|
+
This license is copied below, and is also available with a FAQ at:
|
|
5
|
+
https://scripts.sil.org/OFL
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
-----------------------------------------------------------
|
|
9
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
10
|
+
-----------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
PREAMBLE
|
|
13
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
14
|
+
development of collaborative font projects, to support the font creation
|
|
15
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
16
|
+
open framework in which fonts may be shared and improved in partnership
|
|
17
|
+
with others.
|
|
18
|
+
|
|
19
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
20
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
21
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
22
|
+
redistributed and/or sold with any software provided that any reserved
|
|
23
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
24
|
+
however, cannot be released under any other type of license. The
|
|
25
|
+
requirement for fonts to remain under this license does not apply
|
|
26
|
+
to any document created using the fonts or their derivatives.
|
|
27
|
+
|
|
28
|
+
DEFINITIONS
|
|
29
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
30
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
31
|
+
include source files, build scripts and documentation.
|
|
32
|
+
|
|
33
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
34
|
+
copyright statement(s).
|
|
35
|
+
|
|
36
|
+
"Original Version" refers to the collection of Font Software components as
|
|
37
|
+
distributed by the Copyright Holder(s).
|
|
38
|
+
|
|
39
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
40
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
41
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
42
|
+
new environment.
|
|
43
|
+
|
|
44
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
45
|
+
writer or other person who contributed to the Font Software.
|
|
46
|
+
|
|
47
|
+
PERMISSION & CONDITIONS
|
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
49
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
50
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
51
|
+
Software, subject to the following conditions:
|
|
52
|
+
|
|
53
|
+
1) Neither the Font Software nor any of its individual components,
|
|
54
|
+
in Original or Modified Versions, may be sold by itself.
|
|
55
|
+
|
|
56
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
57
|
+
redistributed and/or sold with any software, provided that each copy
|
|
58
|
+
contains the above copyright notice and this license. These can be
|
|
59
|
+
included either as stand-alone text files, human-readable headers or
|
|
60
|
+
in the appropriate machine-readable metadata fields within text or
|
|
61
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
62
|
+
|
|
63
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
64
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
65
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
66
|
+
presented to the users.
|
|
67
|
+
|
|
68
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
69
|
+
Software shall not be used to promote, endorse or advertise any
|
|
70
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
71
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
72
|
+
permission.
|
|
73
|
+
|
|
74
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
75
|
+
must be distributed entirely under this license, and must not be
|
|
76
|
+
distributed under any other license. The requirement for fonts to
|
|
77
|
+
remain under this license does not apply to any document created using
|
|
78
|
+
the Font Software.
|
|
79
|
+
|
|
80
|
+
TERMINATION
|
|
81
|
+
This license becomes null and void if any of the above conditions are
|
|
82
|
+
not met.
|
|
83
|
+
|
|
84
|
+
DISCLAIMER
|
|
85
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
86
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
87
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
88
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
89
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
90
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
91
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
92
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
93
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Noto Sans SC
|
|
2
|
+
|
|
3
|
+
`NotoSansSC-Regular.ttf` is the weight-400 instance of the previously bundled
|
|
4
|
+
`NotoSansSC-VF.ttf`. It retains all 30,890 Unicode mappings and the original glyphs,
|
|
5
|
+
but removes unused variation tables. PDFKit embeds only the used glyphs.
|
|
6
|
+
|
|
7
|
+
Reproduce from `assets/fonts/NotoSansSC-VF.ttf` at commit `4049006`:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
python -m pip install fonttools==4.65.0
|
|
11
|
+
python -m fontTools.varLib.instancer NotoSansSC-VF.ttf wght=400 --output=NotoSansSC-Regular.ttf
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Original SHA-256: `763146584cf0710223441356b4395e279021b0806c196614377a7a0174ae074a`.
|
|
15
|
+
The original SIL Open Font License remains in `OFL.txt`.
|
|
16
|
+
|
|
17
|
+
Keep TrueType: fontkit's WOFF2 path inflated even a short PDF to over 25 MB in
|
|
18
|
+
verification. No Python/fontTools dependency is needed at runtime.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface RequestAuthContext {
|
|
2
|
+
qurlApiKey?: string;
|
|
3
|
+
qurlConnectorUrl?: string;
|
|
4
|
+
maxUploadFileDataBytes?: number;
|
|
5
|
+
sessionId?: string;
|
|
6
|
+
markCredentialValidated?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function runWithRequestAuthContext<T>(context: RequestAuthContext, fn: () => Promise<T>): Promise<T>;
|
|
9
|
+
export declare function getRequestQurlApiKey(): string | undefined;
|
|
10
|
+
export declare function getRequestQurlConnectorUrl(): string | undefined;
|
|
11
|
+
export declare function getRequestMaxUploadFileDataBytes(): number | undefined;
|
|
12
|
+
export declare function markRequestCredentialValidated(): void;
|
|
13
|
+
//# sourceMappingURL=request-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-context.d.ts","sourceRoot":"","sources":["../../src/auth/request-context.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uBAAuB,CAAC,EAAE,MAAM,IAAI,CAAC;CACtC;AAID,wBAAgB,yBAAyB,CAAC,CAAC,EACzC,OAAO,EAAE,kBAAkB,EAC3B,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GACnB,OAAO,CAAC,CAAC,CAAC,CAEZ;AAED,wBAAgB,oBAAoB,IAAI,MAAM,GAAG,SAAS,CAGzD;AAED,wBAAgB,0BAA0B,IAAI,MAAM,GAAG,SAAS,CAG/D;AAED,wBAAgB,gCAAgC,IAAI,MAAM,GAAG,SAAS,CAGrE;AAED,wBAAgB,8BAA8B,IAAI,IAAI,CAErD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2
|
+
const requestAuthStorage = new AsyncLocalStorage();
|
|
3
|
+
export function runWithRequestAuthContext(context, fn) {
|
|
4
|
+
return requestAuthStorage.run(context, fn);
|
|
5
|
+
}
|
|
6
|
+
export function getRequestQurlApiKey() {
|
|
7
|
+
const apiKey = requestAuthStorage.getStore()?.qurlApiKey?.trim();
|
|
8
|
+
return apiKey || undefined;
|
|
9
|
+
}
|
|
10
|
+
export function getRequestQurlConnectorUrl() {
|
|
11
|
+
const connectorUrl = requestAuthStorage.getStore()?.qurlConnectorUrl?.trim();
|
|
12
|
+
return connectorUrl || undefined;
|
|
13
|
+
}
|
|
14
|
+
export function getRequestMaxUploadFileDataBytes() {
|
|
15
|
+
const value = requestAuthStorage.getStore()?.maxUploadFileDataBytes;
|
|
16
|
+
return typeof value === "number" && Number.isFinite(value) && value > 0 ? value : undefined;
|
|
17
|
+
}
|
|
18
|
+
export function markRequestCredentialValidated() {
|
|
19
|
+
requestAuthStorage.getStore()?.markCredentialValidated?.();
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=request-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-context.js","sourceRoot":"","sources":["../../src/auth/request-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAUrD,MAAM,kBAAkB,GAAG,IAAI,iBAAiB,EAAsB,CAAC;AAEvE,MAAM,UAAU,yBAAyB,CACvC,OAA2B,EAC3B,EAAoB;IAEpB,OAAO,kBAAkB,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,UAAU,oBAAoB;IAClC,MAAM,MAAM,GAAG,kBAAkB,CAAC,QAAQ,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;IACjE,OAAO,MAAM,IAAI,SAAS,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,0BAA0B;IACxC,MAAM,YAAY,GAAG,kBAAkB,CAAC,QAAQ,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC;IAC7E,OAAO,YAAY,IAAI,SAAS,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,gCAAgC;IAC9C,MAAM,KAAK,GAAG,kBAAkB,CAAC,QAAQ,EAAE,EAAE,sBAAsB,CAAC;IACpE,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9F,CAAC;AAED,MAAM,UAAU,8BAA8B;IAC5C,kBAAkB,CAAC,QAAQ,EAAE,EAAE,uBAAuB,EAAE,EAAE,CAAC;AAC7D,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AuthInfo } from "@modelcontextprotocol/sdk/server/auth/types.js";
|
|
2
|
+
import { QURLClient } from "../client.js";
|
|
3
|
+
export declare const PASSTHROUGH_BEARER_CLIENT_ID = "passthrough-bearer-client";
|
|
4
|
+
export interface PassthroughBearerAuthConfig {
|
|
5
|
+
qurlApiUrl: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function canonicalizeBearerToken(token: string): string | undefined;
|
|
8
|
+
export declare function createPassthroughBearerVerifier(): {
|
|
9
|
+
verifyAccessToken(token: string): Promise<AuthInfo>;
|
|
10
|
+
};
|
|
11
|
+
export declare function createQurlClientFromBearerToken(token: string, config: PassthroughBearerAuthConfig): QURLClient;
|
|
12
|
+
//# sourceMappingURL=static-bearer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static-bearer.d.ts","sourceRoot":"","sources":["../../src/auth/static-bearer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,eAAO,MAAM,4BAA4B,8BAA8B,CAAC;AAOxE,MAAM,WAAW,2BAA2B;IAC1C,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGzE;AAED,wBAAgB,+BAA+B,IAAI;IACjD,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CACrD,CAsBA;AAED,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,2BAA2B,GAClC,UAAU,CAOZ"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { InvalidTokenError } from "@modelcontextprotocol/sdk/server/auth/errors.js";
|
|
2
|
+
import { QURLClient } from "../client.js";
|
|
3
|
+
// This is intentionally shared, non-secret MCP metadata rather than an
|
|
4
|
+
// authorization boundary. HTTP sessions are isolated by their bearer-token
|
|
5
|
+
// digest and a separate per-session qURL client.
|
|
6
|
+
export const PASSTHROUGH_BEARER_CLIENT_ID = "passthrough-bearer-client";
|
|
7
|
+
// The MCP SDK requires an expiry for bearer middleware. Actual qURL key
|
|
8
|
+
// expiry/revocation is enforced by the downstream API, so use a distant
|
|
9
|
+
// UTC epoch-seconds sentinel rather than pretending to know the key's real
|
|
10
|
+
// expiry.
|
|
11
|
+
const DOWNSTREAM_VALIDATED_TOKEN_EXPIRY = Date.UTC(2100, 0, 1) / 1000;
|
|
12
|
+
export function canonicalizeBearerToken(token) {
|
|
13
|
+
const canonical = token.trim();
|
|
14
|
+
return canonical || undefined;
|
|
15
|
+
}
|
|
16
|
+
export function createPassthroughBearerVerifier() {
|
|
17
|
+
return {
|
|
18
|
+
async verifyAccessToken(token) {
|
|
19
|
+
const qurlApiKey = canonicalizeBearerToken(token);
|
|
20
|
+
if (!qurlApiKey) {
|
|
21
|
+
console.warn("[mcp-auth] rejected request: empty bearer token");
|
|
22
|
+
throw new InvalidTokenError("Invalid or expired token.");
|
|
23
|
+
}
|
|
24
|
+
// Deliberately accept any non-empty bearer here so MCP metadata and
|
|
25
|
+
// initialization remain available before the downstream qURL API has
|
|
26
|
+
// validated the credential. HTTP session caps, short validation TTLs,
|
|
27
|
+
// and per-request rate limits bound this pre-validation state; tool
|
|
28
|
+
// calls remain authorized by the downstream API using this exact key.
|
|
29
|
+
return {
|
|
30
|
+
token: qurlApiKey,
|
|
31
|
+
clientId: PASSTHROUGH_BEARER_CLIENT_ID,
|
|
32
|
+
scopes: ["mcp:tools"],
|
|
33
|
+
expiresAt: DOWNSTREAM_VALIDATED_TOKEN_EXPIRY,
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function createQurlClientFromBearerToken(token, config) {
|
|
39
|
+
const apiKey = canonicalizeBearerToken(token);
|
|
40
|
+
if (!apiKey)
|
|
41
|
+
throw new Error("Bearer token must not be empty.");
|
|
42
|
+
return new QURLClient({
|
|
43
|
+
apiKey,
|
|
44
|
+
baseURL: config.qurlApiUrl.trim(),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=static-bearer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static-bearer.js","sourceRoot":"","sources":["../../src/auth/static-bearer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AAEpF,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,uEAAuE;AACvE,2EAA2E;AAC3E,iDAAiD;AACjD,MAAM,CAAC,MAAM,4BAA4B,GAAG,2BAA2B,CAAC;AACxE,wEAAwE;AACxE,wEAAwE;AACxE,2EAA2E;AAC3E,UAAU;AACV,MAAM,iCAAiC,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC;AAMtE,MAAM,UAAU,uBAAuB,CAAC,KAAa;IACnD,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC/B,OAAO,SAAS,IAAI,SAAS,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,+BAA+B;IAG7C,OAAO;QACL,KAAK,CAAC,iBAAiB,CAAC,KAAa;YACnC,MAAM,UAAU,GAAG,uBAAuB,CAAC,KAAK,CAAC,CAAC;YAClD,IAAI,CAAC,UAAU,EAAE,CAAC;gBAChB,OAAO,CAAC,IAAI,CAAC,iDAAiD,CAAC,CAAC;gBAChE,MAAM,IAAI,iBAAiB,CAAC,2BAA2B,CAAC,CAAC;YAC3D,CAAC;YAED,oEAAoE;YACpE,qEAAqE;YACrE,sEAAsE;YACtE,oEAAoE;YACpE,sEAAsE;YACtE,OAAO;gBACL,KAAK,EAAE,UAAU;gBACjB,QAAQ,EAAE,4BAA4B;gBACtC,MAAM,EAAE,CAAC,WAAW,CAAC;gBACrB,SAAS,EAAE,iCAAiC;aAC7C,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,+BAA+B,CAC7C,KAAa,EACb,MAAmC;IAEnC,MAAM,MAAM,GAAG,uBAAuB,CAAC,KAAK,CAAC,CAAC;IAC9C,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;IAChE,OAAO,IAAI,UAAU,CAAC;QACpB,MAAM;QACN,OAAO,EAAE,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE;KAClC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/client.d.ts
CHANGED
|
@@ -1,33 +1,53 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* qURL API client for the MCP server.
|
|
3
|
+
*
|
|
4
|
+
* The exported `QURLClient` is a thin adapter over the published
|
|
5
|
+
* `@layervai/qurl` SDK: the SDK owns all HTTP, retry, and error-parsing
|
|
6
|
+
* behavior, and this file translates between the SDK's surface and the local
|
|
7
|
+
* domain types/`IQURLClient` contract the tools, resources, and output schemas
|
|
8
|
+
* are written against (`{ data }` wrapping, the `qurls` field name, and the
|
|
9
|
+
* `QURLAPIError` error class).
|
|
3
10
|
*/
|
|
4
11
|
export interface QURLClientConfig {
|
|
5
12
|
apiKey: string;
|
|
6
13
|
baseURL: string;
|
|
7
14
|
}
|
|
15
|
+
export interface TombstoneInfo {
|
|
16
|
+
tombstoned_at: string;
|
|
17
|
+
final_access_count?: number;
|
|
18
|
+
}
|
|
8
19
|
export interface AccessToken {
|
|
9
20
|
qurl_id: string;
|
|
10
21
|
label?: string;
|
|
11
|
-
status: "active" | "consumed" | "expired" | "revoked";
|
|
12
|
-
one_time_use
|
|
13
|
-
max_sessions
|
|
14
|
-
session_duration
|
|
15
|
-
use_count
|
|
22
|
+
status: "active" | "consumed" | "expired" | "revoked" | "unknown";
|
|
23
|
+
one_time_use?: boolean;
|
|
24
|
+
max_sessions?: number;
|
|
25
|
+
session_duration?: number;
|
|
26
|
+
use_count?: number;
|
|
16
27
|
qurl_site?: string;
|
|
17
28
|
access_policy?: AccessPolicy;
|
|
18
|
-
created_at
|
|
19
|
-
expires_at
|
|
29
|
+
created_at?: string;
|
|
30
|
+
expires_at?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface SessionData {
|
|
33
|
+
session_id: string;
|
|
34
|
+
qurl_id?: string;
|
|
35
|
+
src_ip?: string;
|
|
36
|
+
user_agent?: string;
|
|
37
|
+
created_at?: string;
|
|
38
|
+
last_seen_at?: string;
|
|
20
39
|
}
|
|
21
40
|
export interface QURL {
|
|
22
41
|
resource_id: string;
|
|
23
42
|
qurl_site?: string;
|
|
24
|
-
target_url
|
|
43
|
+
target_url?: string;
|
|
25
44
|
description?: string;
|
|
26
45
|
tags?: string[];
|
|
27
46
|
expires_at: string;
|
|
28
47
|
created_at: string;
|
|
29
|
-
status: "active" | "revoked";
|
|
48
|
+
status: "active" | "revoked" | "expired" | "unknown";
|
|
30
49
|
custom_domain?: string | null;
|
|
50
|
+
slug?: string;
|
|
31
51
|
preserve_host?: boolean;
|
|
32
52
|
qurl_count?: number;
|
|
33
53
|
qurls?: AccessToken[];
|
|
@@ -36,9 +56,11 @@ export interface CreateQURLData {
|
|
|
36
56
|
qurl_id: string;
|
|
37
57
|
resource_id: string;
|
|
38
58
|
qurl_link: string;
|
|
59
|
+
branded_domain?: string;
|
|
39
60
|
qurl_site: string;
|
|
40
61
|
expires_at: string;
|
|
41
62
|
label?: string;
|
|
63
|
+
type?: string;
|
|
42
64
|
}
|
|
43
65
|
export interface AIAgentPolicy {
|
|
44
66
|
block_all?: boolean;
|
|
@@ -55,6 +77,8 @@ export interface AccessPolicy {
|
|
|
55
77
|
ai_agent_policy?: AIAgentPolicy;
|
|
56
78
|
}
|
|
57
79
|
export interface CreateQURLInput {
|
|
80
|
+
/** Resource type for integrations that are allowed to mint non-url qURLs. Defaults to "url". */
|
|
81
|
+
type?: string;
|
|
58
82
|
target_url: string;
|
|
59
83
|
label?: string;
|
|
60
84
|
expires_in?: string;
|
|
@@ -87,6 +111,10 @@ export interface UpdateQURLInput {
|
|
|
87
111
|
expires_at?: string;
|
|
88
112
|
tags?: string[];
|
|
89
113
|
description?: string;
|
|
114
|
+
}
|
|
115
|
+
export interface UpdateResourceInput {
|
|
116
|
+
tags?: string[];
|
|
117
|
+
description?: string;
|
|
90
118
|
custom_domain?: string;
|
|
91
119
|
preserve_host?: boolean;
|
|
92
120
|
}
|
|
@@ -108,6 +136,14 @@ export interface MintLinkInput {
|
|
|
108
136
|
export interface BatchCreateInput {
|
|
109
137
|
items: CreateQURLInput[];
|
|
110
138
|
}
|
|
139
|
+
export interface UpdateQurlTokenInput {
|
|
140
|
+
extend_by?: string;
|
|
141
|
+
expires_at?: string;
|
|
142
|
+
label?: string;
|
|
143
|
+
access_policy?: AccessPolicy;
|
|
144
|
+
max_sessions?: number;
|
|
145
|
+
session_duration?: string;
|
|
146
|
+
}
|
|
111
147
|
export interface ListQURLsOutput {
|
|
112
148
|
data: QURL[];
|
|
113
149
|
meta: {
|
|
@@ -147,14 +183,18 @@ export interface QuotaOutput {
|
|
|
147
183
|
};
|
|
148
184
|
}
|
|
149
185
|
export interface MintLinkOutput {
|
|
186
|
+
qurl_id: string;
|
|
150
187
|
qurl_link: string;
|
|
188
|
+
branded_domain?: string;
|
|
151
189
|
expires_at: string;
|
|
190
|
+
type?: string;
|
|
152
191
|
}
|
|
153
192
|
export type BatchItemResult = {
|
|
154
193
|
index: number;
|
|
155
194
|
success: true;
|
|
156
195
|
resource_id: string;
|
|
157
196
|
qurl_link: string;
|
|
197
|
+
branded_domain?: string;
|
|
158
198
|
qurl_site: string;
|
|
159
199
|
expires_at: string;
|
|
160
200
|
} | {
|
|
@@ -175,6 +215,20 @@ export interface BatchCreateOutput {
|
|
|
175
215
|
request_id?: string;
|
|
176
216
|
};
|
|
177
217
|
}
|
|
218
|
+
export interface SessionListOutput {
|
|
219
|
+
data: SessionData[];
|
|
220
|
+
meta?: {
|
|
221
|
+
request_id?: string;
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
export interface SessionTerminateOutput {
|
|
225
|
+
data: {
|
|
226
|
+
terminated: number;
|
|
227
|
+
};
|
|
228
|
+
meta?: {
|
|
229
|
+
request_id?: string;
|
|
230
|
+
};
|
|
231
|
+
}
|
|
178
232
|
export interface IQURLClient {
|
|
179
233
|
/**
|
|
180
234
|
* Create a new qURL. Returns `CreateQURLData` — the ephemeral create-time
|
|
@@ -197,6 +251,9 @@ export interface IQURLClient {
|
|
|
197
251
|
updateQURL(id: string, input: UpdateQURLInput): Promise<{
|
|
198
252
|
data: QURL;
|
|
199
253
|
}>;
|
|
254
|
+
updateResource(id: string, input: UpdateResourceInput): Promise<{
|
|
255
|
+
data: QURL;
|
|
256
|
+
}>;
|
|
200
257
|
extendQURL(id: string, input: ExtendQURLInput): Promise<{
|
|
201
258
|
data: QURL;
|
|
202
259
|
}>;
|
|
@@ -210,6 +267,13 @@ export interface IQURLClient {
|
|
|
210
267
|
data: MintLinkOutput;
|
|
211
268
|
}>;
|
|
212
269
|
batchCreate(input: BatchCreateInput): Promise<BatchCreateOutput>;
|
|
270
|
+
revokeQurlToken(resourceId: string, qurlId: string): Promise<void>;
|
|
271
|
+
updateQurlToken(resourceId: string, qurlId: string, input: UpdateQurlTokenInput): Promise<{
|
|
272
|
+
data: AccessToken;
|
|
273
|
+
}>;
|
|
274
|
+
listResourceSessions(resourceId: string): Promise<SessionListOutput>;
|
|
275
|
+
terminateResourceSession(resourceId: string, sessionId: string): Promise<void>;
|
|
276
|
+
terminateAllResourceSessions(resourceId: string): Promise<SessionTerminateOutput>;
|
|
213
277
|
}
|
|
214
278
|
/**
|
|
215
279
|
* Error thrown by `QURLClient` for any API or pre-flight failure.
|
|
@@ -225,31 +289,46 @@ export declare class QURLAPIError extends Error {
|
|
|
225
289
|
type?: string | undefined;
|
|
226
290
|
instance?: string | undefined;
|
|
227
291
|
requestId?: string | undefined;
|
|
228
|
-
|
|
292
|
+
tombstone?: TombstoneInfo | undefined;
|
|
293
|
+
constructor(statusCode: number, code: string, message: string, type?: string | undefined, instance?: string | undefined, requestId?: string | undefined, tombstone?: TombstoneInfo | undefined);
|
|
229
294
|
}
|
|
230
295
|
/**
|
|
231
296
|
* Shared message for the missing-API-key condition. Emitted both at boot
|
|
232
|
-
* (stderr warning in `index.ts`) and on every API call
|
|
297
|
+
* (stderr warning in `index.ts`) and on every API call (the lazy `sdk` getter
|
|
298
|
+
* throws it when no key is configured).
|
|
233
299
|
* Keeping a single string means a user grepping logs/transcripts hits the
|
|
234
300
|
* same phrase from both sites, and the CI introspection probe has a stable
|
|
235
301
|
* substring to assert against.
|
|
236
302
|
*/
|
|
237
|
-
export declare const MISSING_API_KEY_MESSAGE = "QURL_API_KEY is not set. Set it in the MCP server environment and restart to make API calls.";
|
|
303
|
+
export declare const MISSING_API_KEY_MESSAGE = "QURL_API_KEY is not set. Set it in the MCP server environment or runtime config and restart to make API calls.";
|
|
304
|
+
/**
|
|
305
|
+
* Adapter implementing {@link IQURLClient} over the `@layervai/qurl` SDK.
|
|
306
|
+
*
|
|
307
|
+
* The SDK owns HTTP, retries, and error parsing. This class only translates
|
|
308
|
+
* shapes (re-wraps the SDK's unwrapped returns into `{ data }`, renames
|
|
309
|
+
* `access_tokens` → `qurls`, reshapes list/batch/session envelopes) and maps
|
|
310
|
+
* the SDK's `QURLError` subclasses onto `QURLAPIError`.
|
|
311
|
+
*/
|
|
238
312
|
export declare class QURLClient implements IQURLClient {
|
|
239
|
-
private apiKey;
|
|
240
|
-
private baseURL;
|
|
313
|
+
private readonly apiKey;
|
|
314
|
+
private readonly baseURL;
|
|
315
|
+
/**
|
|
316
|
+
* Constructed lazily on first API call. The SDK constructor throws on an
|
|
317
|
+
* empty key, but `index.ts` deliberately boots the server keyless so MCP
|
|
318
|
+
* introspection (tools/list, resources/list, prompts/list) works without a
|
|
319
|
+
* configured key — the missing-key error must defer to the first real call.
|
|
320
|
+
*/
|
|
321
|
+
private _sdk?;
|
|
241
322
|
constructor(config: QURLClientConfig);
|
|
242
323
|
/**
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
* `
|
|
246
|
-
*
|
|
247
|
-
* used by `batchCreate`, where the API returns a structured BatchCreateResponse
|
|
248
|
-
* on HTTP 400 (all items rejected) — throwing would drop the per-item errors.
|
|
324
|
+
* Lazily build the SDK client. Throws the typed `missing_api_key` error
|
|
325
|
+
* (status 0) when no key is configured, matching the pre-SDK behavior that
|
|
326
|
+
* `withMissingApiKeyHandler` and the CI introspection probe rely on. Note
|
|
327
|
+
* the SDK option is `baseUrl` (lowercase) vs. the MCP config's `baseURL`.
|
|
249
328
|
*/
|
|
250
|
-
private
|
|
251
|
-
|
|
252
|
-
private
|
|
329
|
+
private get sdk();
|
|
330
|
+
/** Run an SDK call, translating its errors into `QURLAPIError`. */
|
|
331
|
+
private call;
|
|
253
332
|
createQURL(input: CreateQURLInput): Promise<{
|
|
254
333
|
data: CreateQURLData;
|
|
255
334
|
}>;
|
|
@@ -261,6 +340,9 @@ export declare class QURLClient implements IQURLClient {
|
|
|
261
340
|
updateQURL(id: string, input: UpdateQURLInput): Promise<{
|
|
262
341
|
data: QURL;
|
|
263
342
|
}>;
|
|
343
|
+
updateResource(id: string, input: UpdateResourceInput): Promise<{
|
|
344
|
+
data: QURL;
|
|
345
|
+
}>;
|
|
264
346
|
extendQURL(id: string, input: ExtendQURLInput): Promise<{
|
|
265
347
|
data: QURL;
|
|
266
348
|
}>;
|
|
@@ -274,5 +356,12 @@ export declare class QURLClient implements IQURLClient {
|
|
|
274
356
|
data: MintLinkOutput;
|
|
275
357
|
}>;
|
|
276
358
|
batchCreate(input: BatchCreateInput): Promise<BatchCreateOutput>;
|
|
359
|
+
revokeQurlToken(resourceId: string, qurlId: string): Promise<void>;
|
|
360
|
+
updateQurlToken(resourceId: string, qurlId: string, input: UpdateQurlTokenInput): Promise<{
|
|
361
|
+
data: AccessToken;
|
|
362
|
+
}>;
|
|
363
|
+
listResourceSessions(resourceId: string): Promise<SessionListOutput>;
|
|
364
|
+
terminateResourceSession(resourceId: string, sessionId: string): Promise<void>;
|
|
365
|
+
terminateAllResourceSessions(resourceId: string): Promise<SessionTerminateOutput>;
|
|
277
366
|
}
|
|
278
367
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAUH,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAID,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,M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