@usemcpkit/core 0.13.3 → 0.13.5
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.
|
@@ -216,7 +216,7 @@ export declare interface Manifest {
|
|
|
216
216
|
category: string;
|
|
217
217
|
version: string;
|
|
218
218
|
description?: string;
|
|
219
|
-
/** May contain `{domain}`, as may the oauth URLs
|
|
219
|
+
/** May contain `{domain}`, as may the oauth URLs (`discovery` included) and an HTTP upstream's `url`; `domain` then says where the value comes from. An `upstream` manifest never requests it, so it only names the service's https home. */
|
|
220
220
|
baseUrl: string;
|
|
221
221
|
domain?: DomainSpec;
|
|
222
222
|
/** Deployments picked by the domain's host; a domain matching none uses the tools' own requests. */
|
|
@@ -257,7 +257,7 @@ export declare type OAuthAuth = OAuthEndpointsAuth | OAuthDiscoveryAuth;
|
|
|
257
257
|
*/
|
|
258
258
|
export declare interface OAuthDiscoveryAuth extends OAuthSignInOptions {
|
|
259
259
|
type: "oauth";
|
|
260
|
-
/** The MCP server url, https only
|
|
260
|
+
/** The MCP server url, https only; may contain `{domain}`. */
|
|
261
261
|
discovery: string;
|
|
262
262
|
clientId?: string;
|
|
263
263
|
}
|
package/build/usemcpkit.core.js
CHANGED
|
@@ -96,7 +96,11 @@ var fillDomainUrl = (template, domain, loopbackHttp) => {
|
|
|
96
96
|
//#endregion
|
|
97
97
|
//#region src/manifest/domain/apply-auth-domain.ts
|
|
98
98
|
var applyAuthDomain = (auth, domain, loopbackHttp) => {
|
|
99
|
-
if (auth.type !== "oauth"
|
|
99
|
+
if (auth.type !== "oauth") return auth;
|
|
100
|
+
if ("discovery" in auth) return {
|
|
101
|
+
...auth,
|
|
102
|
+
discovery: fillDomainUrl(auth.discovery, domain, loopbackHttp)
|
|
103
|
+
};
|
|
100
104
|
return {
|
|
101
105
|
...auth,
|
|
102
106
|
authorizationUrl: fillDomainUrl(auth.authorizationUrl, domain, loopbackHttp),
|