@frontmcp/sdk 1.10.8 → 1.10.9-rc.2
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/auth/flows/auth.verify.flow.d.ts +1 -1
- package/auth/flows/oauth.auth-ui.flow.d.ts +2 -2
- package/auth/flows/oauth.authorize.flow.d.ts +2 -2
- package/auth/flows/oauth.callback.flow.d.ts +2 -2
- package/auth/flows/oauth.connect.flow.d.ts +2 -2
- package/auth/flows/oauth.provider-callback.flow.d.ts +2 -2
- package/auth/flows/oauth.register.flow.d.ts +2 -2
- package/auth/flows/oauth.token.flow.d.ts +2 -2
- package/auth/flows/oauth.userinfo.flow.d.ts +2 -2
- package/auth/flows/session.verify.flow.d.ts +1 -1
- package/auth/flows/well-known.jwks.flow.d.ts +2 -2
- package/auth/flows/well-known.oauth-authorization-server.flow.d.ts +2 -2
- package/auth/flows/well-known.prm.flow.d.ts +2 -2
- package/auth/instances/instance.local-primary-auth.d.ts.map +1 -1
- package/browser/agent/agent.registry.mjs +1 -1
- package/browser/app/instances/app.esm.instance.mjs +4 -4
- package/browser/app/instances/app.remote.instance.mjs +6 -6
- package/browser/auth/auth-ui/auth-ui.registry.mjs +6 -6
- package/browser/auth/flows/oauth.authorize.flow.mjs +5 -5
- package/browser/auth/flows/oauth.callback.flow.mjs +11 -11
- package/browser/auth/flows/oauth.connect.flow.mjs +1 -1
- package/browser/auth/flows/oauth.register.flow.mjs +1 -1
- package/browser/auth/flows/oauth.token.flow.mjs +1 -1
- package/browser/auth/flows/well-known.oauth-authorization-server.flow.mjs +5 -5
- package/browser/auth/instances/instance.local-primary-auth.mjs +35 -11
- package/browser/auth/session/utils/session-id.utils.mjs +1 -1
- package/browser/common/entries/skill.entry.mjs +2 -2
- package/browser/common/entries/tool.entry.mjs +3 -3
- package/browser/common/interfaces/channel.interface.mjs +1 -1
- package/browser/common/interfaces/execution-context.interface.mjs +4 -4
- package/browser/common/interfaces/flow.interface.mjs +10 -0
- package/browser/common/interfaces/internal/primary-auth-provider.interface.mjs +2 -2
- package/browser/common/metadata/app.metadata.mjs +1 -1
- package/browser/common/metadata/front-mcp.metadata.mjs +5 -5
- package/browser/common/schemas/http-input.schema.mjs +9 -3
- package/browser/common/tokens/app.tokens.mjs +1 -1
- package/browser/common/tokens/front-mcp.tokens.mjs +1 -1
- package/browser/common/types/options/http/schema.mjs +4 -4
- package/browser/common/types/options/redis/schema.mjs +1 -1
- package/browser/common/types/options/sqlite/schema.mjs +3 -3
- package/browser/common/types/options/transport/schema.mjs +4 -4
- package/browser/common/utils/decide-request-intent.utils.mjs +13 -11
- package/browser/context/frontmcp-context.mjs +1 -1
- package/browser/direct/direct-client.mjs +29 -29
- package/browser/direct/direct-server.mjs +14 -14
- package/browser/errors/job.errors.mjs +1 -1
- package/browser/errors/mcp.error.mjs +4 -4
- package/browser/errors/plugin.errors.mjs +1 -1
- package/browser/errors/task.error.mjs +1 -1
- package/browser/errors/tool-credentials-required.error.mjs +2 -2
- package/browser/esm-loader/esm-module-loader.mjs +1 -7
- package/browser/esm-loader/import-computed.mjs +11 -0
- package/browser/esm-loader/semver.utils.mjs +17 -11
- package/browser/flows/flow.instance.mjs +55 -24
- package/browser/flows/flow.stages.mjs +3 -2
- package/browser/front-mcp/front-mcp.mjs +10 -14
- package/browser/ha/ha-manager.mjs +1 -1
- package/browser/ha/notification-relay.mjs +1 -1
- package/browser/index.cjs +1346 -1490
- package/browser/index.mjs +4 -4
- package/browser/job/store/job-definition-store.factory.mjs +1 -1
- package/browser/job/store/redis-job-definition.store.mjs +2 -2
- package/browser/job/tools/get-job-status.tool.mjs +1 -1
- package/browser/logger/logger.registry.mjs +1 -1
- package/browser/metrics/metrics.service.mjs +3 -3
- package/browser/prompt/prompt.registry.mjs +1 -1
- package/browser/provider/provider.registry.mjs +4 -4
- package/browser/remote-mcp/mcp-client.service.mjs +19 -19
- package/browser/remote-mcp/resilience/circuit-breaker.mjs +2 -2
- package/browser/resource/resource.registry.mjs +2 -2
- package/browser/scope/flows/http.request.flow.mjs +3 -3
- package/browser/scope/scope.instance.mjs +4 -4
- package/browser/scope/scope.utils.mjs +1 -1
- package/browser/skill/providers/memory-skill.provider.mjs +31 -9
- package/browser/skill/skill.registry.mjs +10 -10
- package/browser/task/flows/tasks-result.flow.mjs +2 -2
- package/browser/task/task.registry.mjs +5 -5
- package/browser/tool/flows/call-tool.flow.mjs +4 -4
- package/browser/tool/tool.instance.mjs +16 -7
- package/browser/tool/tool.registry.mjs +4 -4
- package/browser/tool/ui/ui-shared.mjs +1 -1
- package/browser/transport/adapters/transport.local.adapter.mjs +2 -2
- package/browser/transport/adapters/transport.streamable-http.adapter.mjs +13 -4
- package/browser/transport/event-stores/redis.event-store.mjs +1 -1
- package/browser/transport/mcp-20260728/client/mcp-stateless.client.mjs +1 -1
- package/browser/transport/mcp-20260728/request-notifications.mjs +1 -1
- package/browser/transport/transport.registry.mjs +15 -9
- package/browser/transport/web-response.renderer.mjs +2 -2
- package/browser/utils/lineage.utils.mjs +1 -1
- package/browser/workflow/tools/get-workflow-status.tool.mjs +1 -1
- package/common/interfaces/flow.interface.d.ts.map +1 -1
- package/common/schemas/http-input.schema.d.ts +3 -3
- package/common/schemas/http-input.schema.d.ts.map +1 -1
- package/common/utils/decide-request-intent.utils.d.ts.map +1 -1
- package/esm/esm-loader/import-computed.mjs +10 -0
- package/esm/index.mjs +136 -77029
- package/esm-loader/esm-module-loader.d.ts.map +1 -1
- package/esm-loader/import-computed.d.ts +21 -0
- package/esm-loader/import-computed.d.ts.map +1 -0
- package/esm-loader/import-computed.js +34 -0
- package/esm-loader/semver.utils.d.ts.map +1 -1
- package/flows/flow.instance.d.ts +1 -0
- package/flows/flow.instance.d.ts.map +1 -1
- package/flows/flow.stages.d.ts.map +1 -1
- package/front-mcp/front-mcp.d.ts.map +1 -1
- package/index.d.ts +9 -8
- package/index.d.ts.map +1 -1
- package/index.js +140 -77685
- package/mcp-registry/flows/server-card.flow.d.ts +2 -2
- package/mcp-registry/flows/well-known.ai-catalog.flow.d.ts +2 -2
- package/mcp-registry/flows/well-known.mcp-registry-auth.flow.d.ts +2 -2
- package/package.json +14 -10
- package/skill/flows/http/llm-full-txt.flow.d.ts +2 -2
- package/skill/flows/http/llm-txt.flow.d.ts +2 -2
- package/skill/flows/http/skills-api.flow.d.ts +2 -2
- package/skill/providers/memory-skill.provider.d.ts +1 -0
- package/skill/providers/memory-skill.provider.d.ts.map +1 -1
- package/tool/tool.instance.d.ts +3 -0
- package/tool/tool.instance.d.ts.map +1 -1
- package/transport/adapters/transport.streamable-http.adapter.d.ts +2 -1
- package/transport/adapters/transport.streamable-http.adapter.d.ts.map +1 -1
- package/transport/transport.registry.d.ts +1 -0
- package/transport/transport.registry.d.ts.map +1 -1
- package/browser/transport/index.mjs +0 -32
|
@@ -3,7 +3,7 @@ import 'reflect-metadata';
|
|
|
3
3
|
import { type Authorization } from '@frontmcp/auth';
|
|
4
4
|
import { z } from '@frontmcp/lazy-zod';
|
|
5
5
|
declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
6
|
-
request: import("
|
|
6
|
+
request: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
7
7
|
}, import("zod/v4/core").$strip>;
|
|
8
8
|
declare const stateSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
9
9
|
baseUrl: import("@frontmcp/lazy-zod").ZodString;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FlowBase, type FlowRunOptions } from '../../common';
|
|
2
2
|
declare const extraInputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
3
|
-
request: import("
|
|
4
|
-
response: import("
|
|
3
|
+
request: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
4
|
+
response: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
5
5
|
next: import("@frontmcp/lazy-zod").ZodOptional<import("zod").ZodFunction<import("zod/v4/core").$ZodFunctionArgs, import("zod/v4/core").$ZodFunctionOut>>;
|
|
6
6
|
}, import("zod/v4/core").$strip>;
|
|
7
7
|
declare const extraStateSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
@@ -42,8 +42,8 @@ declare const anonymousAuthorizeRequestSchema: import("@frontmcp/lazy-zod").ZodO
|
|
|
42
42
|
export type OAuthAuthorizeRequest = z.infer<typeof oauthAuthorizeRequestSchema>;
|
|
43
43
|
export type AnonymousAuthorizeRequest = z.infer<typeof anonymousAuthorizeRequestSchema>;
|
|
44
44
|
declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
45
|
-
request: import("
|
|
46
|
-
response: import("
|
|
45
|
+
request: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
46
|
+
response: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
47
47
|
next: import("@frontmcp/lazy-zod").ZodOptional<import("zod").ZodFunction<import("zod/v4/core").$ZodFunctionArgs, import("zod/v4/core").$ZodFunctionOut>>;
|
|
48
48
|
}, import("zod/v4/core").$strip>;
|
|
49
49
|
declare const stateSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
import { z } from '@frontmcp/lazy-zod';
|
|
14
14
|
import { FlowBase, type FlowRunOptions } from '../../common';
|
|
15
15
|
declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
16
|
-
request: import("
|
|
17
|
-
response: import("
|
|
16
|
+
request: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
17
|
+
response: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
18
18
|
next: import("@frontmcp/lazy-zod").ZodOptional<import("zod").ZodFunction<import("zod/v4/core").$ZodFunctionArgs, import("zod/v4/core").$ZodFunctionOut>>;
|
|
19
19
|
}, import("zod/v4/core").$strip>;
|
|
20
20
|
declare const stateSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
*/
|
|
19
19
|
import { FlowBase, type FlowRunOptions } from '../../common';
|
|
20
20
|
declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
21
|
-
request: import("
|
|
22
|
-
response: import("
|
|
21
|
+
request: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
22
|
+
response: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
23
23
|
next: import("@frontmcp/lazy-zod").ZodOptional<import("zod").ZodFunction<import("zod/v4/core").$ZodFunctionArgs, import("zod/v4/core").$ZodFunctionOut>>;
|
|
24
24
|
}, import("zod/v4/core").$strip>;
|
|
25
25
|
declare const stateSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
import { z } from '@frontmcp/lazy-zod';
|
|
21
21
|
import { FlowBase, type FlowRunOptions } from '../../common';
|
|
22
22
|
declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
23
|
-
request: import("
|
|
24
|
-
response: import("
|
|
23
|
+
request: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
24
|
+
response: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
25
25
|
next: import("@frontmcp/lazy-zod").ZodOptional<import("zod").ZodFunction<import("zod/v4/core").$ZodFunctionArgs, import("zod/v4/core").$ZodFunctionOut>>;
|
|
26
26
|
}, import("zod/v4/core").$strip>;
|
|
27
27
|
declare const stateSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
*/
|
|
20
20
|
import { FlowBase, type FlowRunOptions } from '../../common';
|
|
21
21
|
declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
22
|
-
request: import("
|
|
23
|
-
response: import("
|
|
22
|
+
request: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
23
|
+
response: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
24
24
|
next: import("@frontmcp/lazy-zod").ZodOptional<import("zod").ZodFunction<import("zod/v4/core").$ZodFunctionArgs, import("zod/v4/core").$ZodFunctionOut>>;
|
|
25
25
|
}, import("zod/v4/core").$strip>;
|
|
26
26
|
declare const outputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
*/
|
|
31
31
|
import { FlowBase, type FlowRunOptions } from '../../common';
|
|
32
32
|
declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
33
|
-
request: import("
|
|
34
|
-
response: import("
|
|
33
|
+
request: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
34
|
+
response: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
35
35
|
next: import("@frontmcp/lazy-zod").ZodOptional<import("zod").ZodFunction<import("zod/v4/core").$ZodFunctionArgs, import("zod/v4/core").$ZodFunctionOut>>;
|
|
36
36
|
}, import("zod/v4/core").$strip>;
|
|
37
37
|
declare const stateSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
import 'reflect-metadata';
|
|
19
19
|
import { FlowBase, type FlowRunOptions } from '../../common';
|
|
20
20
|
declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
21
|
-
request: import("
|
|
22
|
-
response: import("
|
|
21
|
+
request: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
22
|
+
response: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
23
23
|
next: import("@frontmcp/lazy-zod").ZodOptional<import("zod").ZodFunction<import("zod/v4/core").$ZodFunctionArgs, import("zod/v4/core").$ZodFunctionOut>>;
|
|
24
24
|
}, import("zod/v4/core").$strip>;
|
|
25
25
|
declare const stateSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FlowBase, type FlowRunOptions } from '../../common';
|
|
2
2
|
import 'reflect-metadata';
|
|
3
3
|
declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
4
|
-
request: import("
|
|
4
|
+
request: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
5
5
|
sessionless: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
|
|
6
6
|
}, import("zod/v4/core").$strip>;
|
|
7
7
|
declare const stateSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
@@ -2,8 +2,8 @@ import { FlowBase, type FlowRunOptions, type ScopeEntry, type ServerRequest } fr
|
|
|
2
2
|
import 'reflect-metadata';
|
|
3
3
|
import { z } from '@frontmcp/lazy-zod';
|
|
4
4
|
declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
5
|
-
request: import("
|
|
6
|
-
response: import("
|
|
5
|
+
request: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
6
|
+
response: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
7
7
|
next: import("@frontmcp/lazy-zod").ZodOptional<import("zod").ZodFunction<import("zod/v4/core").$ZodFunctionArgs, import("zod/v4/core").$ZodFunctionOut>>;
|
|
8
8
|
}, import("zod/v4/core").$strip>;
|
|
9
9
|
declare const stateSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
@@ -2,8 +2,8 @@ import 'reflect-metadata';
|
|
|
2
2
|
import { z } from '@frontmcp/lazy-zod';
|
|
3
3
|
import { FlowBase, type FlowRunOptions, type ScopeEntry, type ServerRequest } from '../../common';
|
|
4
4
|
declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
5
|
-
request: import("
|
|
6
|
-
response: import("
|
|
5
|
+
request: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
6
|
+
response: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
7
7
|
next: import("@frontmcp/lazy-zod").ZodOptional<import("zod").ZodFunction<import("zod/v4/core").$ZodFunctionArgs, import("zod/v4/core").$ZodFunctionOut>>;
|
|
8
8
|
}, import("zod/v4/core").$strip>;
|
|
9
9
|
export declare const outputSchema: import("@frontmcp/lazy-zod").ZodUnion<readonly [import("@frontmcp/lazy-zod").ZodObject<{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
2
|
import { FlowBase, type FlowRunOptions, type ScopeEntry, type ServerRequest } from '../../common';
|
|
3
3
|
declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
4
|
-
request: import("
|
|
5
|
-
response: import("
|
|
4
|
+
request: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
5
|
+
response: import("zod").ZodCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
6
6
|
next: import("@frontmcp/lazy-zod").ZodOptional<import("zod").ZodFunction<import("zod/v4/core").$ZodFunctionArgs, import("zod/v4/core").$ZodFunctionOut>>;
|
|
7
7
|
}, import("zod/v4/core").$strip>;
|
|
8
8
|
declare const stateSchema: import("@frontmcp/lazy-zod").ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instance.local-primary-auth.d.ts","sourceRoot":"","sources":["../../../src/auth/instances/instance.local-primary-auth.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"instance.local-primary-auth.d.ts","sourceRoot":"","sources":["../../../src/auth/instances/instance.local-primary-auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EAUjB,sBAAsB,EAOtB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,aAAa,EAClB,KAAK,kBAAkB,EAEvB,KAAK,oBAAoB,EAEzB,KAAK,sBAAsB,IAAI,UAAU,EACzC,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAC;AAWxB,OAAO,EAGL,YAAY,EAIZ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AE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC;IAiE9G;;;;;;;;;;OAUG;YACW,qBAAqB;IAgCnC;;OAEG;IACG,oBAAoB,CACxB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,qBAAqB,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,iBAAiB,EAAE,MAAM,CAAA;KAAE,CAAC;IA+ChF;;;;OAIG;IACH,sBAAsB,IAAI,oBAAoB,GAAG,SAAS;YAc5C,kBAAkB;IAahC,2HAA2H;IAC3H,OAAO,CAAC,qBAAqB;CAI9B"}
|
|
@@ -230,7 +230,7 @@ var AgentRegistry = class extends RegistryAbstract {
|
|
|
230
230
|
return [...this.localRows, ...[...this.adopted.values()].flat()];
|
|
231
231
|
}
|
|
232
232
|
/**
|
|
233
|
-
* List all instances (locals + adopted)
|
|
233
|
+
* List all instances (locals + adopted) \u2014 unfiltered.
|
|
234
234
|
*/
|
|
235
235
|
listAllInstances() {
|
|
236
236
|
return this.listAllIndexed().map((r) => r.instance);
|
|
@@ -175,9 +175,9 @@ var AppEsmInstance = class extends AppEntry {
|
|
|
175
175
|
throw error;
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
//
|
|
178
|
+
// \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
|
|
179
179
|
// PUBLIC API
|
|
180
|
-
//
|
|
180
|
+
// \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
|
|
181
181
|
get providers() {
|
|
182
182
|
return this.scopeProviders;
|
|
183
183
|
}
|
|
@@ -229,9 +229,9 @@ var AppEsmInstance = class extends AppEntry {
|
|
|
229
229
|
async dispose() {
|
|
230
230
|
this.poller?.stop();
|
|
231
231
|
}
|
|
232
|
-
//
|
|
232
|
+
// \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
|
|
233
233
|
// PRIVATE METHODS
|
|
234
|
-
//
|
|
234
|
+
// \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
|
|
235
235
|
/**
|
|
236
236
|
* Register primitives from a loaded package manifest into standard registries.
|
|
237
237
|
*/
|
|
@@ -181,9 +181,9 @@ var AppRemoteInstance = class extends AppEntry {
|
|
|
181
181
|
throw error;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
//
|
|
184
|
+
// \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
|
|
185
185
|
// LAZY CAPABILITY LOADING
|
|
186
|
-
//
|
|
186
|
+
// \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
|
|
187
187
|
/**
|
|
188
188
|
* Ensure capabilities are loaded, using cache if available.
|
|
189
189
|
* This is called lazily when tools/resources/prompts are accessed.
|
|
@@ -211,9 +211,9 @@ var AppRemoteInstance = class extends AppEntry {
|
|
|
211
211
|
this.capabilitiesLoaded = false;
|
|
212
212
|
await this.ensureCapabilitiesLoaded();
|
|
213
213
|
}
|
|
214
|
-
//
|
|
214
|
+
// \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
|
|
215
215
|
// PUBLIC API
|
|
216
|
-
//
|
|
216
|
+
// \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
|
|
217
217
|
get providers() {
|
|
218
218
|
return this.scopeProviders;
|
|
219
219
|
}
|
|
@@ -283,9 +283,9 @@ var AppRemoteInstance = class extends AppEntry {
|
|
|
283
283
|
this.capabilitiesLoaded = false;
|
|
284
284
|
this.capabilityCache.invalidate(this.id);
|
|
285
285
|
}
|
|
286
|
-
//
|
|
286
|
+
// \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
|
|
287
287
|
// PRIVATE METHODS
|
|
288
|
-
//
|
|
288
|
+
// \u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
|
|
289
289
|
/**
|
|
290
290
|
* Map urlType to transport type
|
|
291
291
|
*/
|
|
@@ -17,7 +17,7 @@ var AuthUiRegistry = class {
|
|
|
17
17
|
this.logger = logger?.child("AuthUiRegistry");
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* Register the `auth.ui` slot
|
|
20
|
+
* Register the `auth.ui` slot\u2192file map. Each relative path is resolved against
|
|
21
21
|
* `sourceDir` (the declaring `@FrontMcp`/`@App` directory); absolute paths pass
|
|
22
22
|
* through. Later registrations for the same slot win (so a scope can override a
|
|
23
23
|
* server-level default).
|
|
@@ -36,7 +36,7 @@ var AuthUiRegistry = class {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
|
-
* Register the `auth.extras` name
|
|
39
|
+
* Register the `auth.extras` name\u2192handler map. Each value must be a function
|
|
40
40
|
* `(input, ctx) => AuthExtraResult | Promise<AuthExtraResult>`.
|
|
41
41
|
*/
|
|
42
42
|
registerAuthExtrasMap(map) {
|
|
@@ -87,7 +87,7 @@ var AuthUiRegistry = class {
|
|
|
87
87
|
return { file: entry.file };
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
|
-
* Whether a slot can be rendered
|
|
90
|
+
* Whether a slot can be rendered \u2014 i.e. a file is registered for it (and it
|
|
91
91
|
* hasn't recorded a build error). Used by the page assembler to decide between
|
|
92
92
|
* the custom page and the built-in fallback.
|
|
93
93
|
*/
|
|
@@ -150,7 +150,7 @@ var AuthUiRegistry = class {
|
|
|
150
150
|
// ============================================
|
|
151
151
|
/**
|
|
152
152
|
* Current accumulators for a pending-auth id (empty when none yet). Returns a
|
|
153
|
-
* DEEP copy
|
|
153
|
+
* DEEP copy \u2014 each array is cloned \u2014 so callers (e.g. an extra handler reading
|
|
154
154
|
* `ctx.current`) can never mutate the internal accumulator by reference.
|
|
155
155
|
*/
|
|
156
156
|
getAddedItems(pendingAuthId) {
|
|
@@ -195,7 +195,7 @@ var AuthUiRegistry = class {
|
|
|
195
195
|
* Returns `{ ok:false }` when no handler is registered for `name`.
|
|
196
196
|
*
|
|
197
197
|
* Note: the returned `addedItems` is the FULL accumulator MAP (keyed by extra
|
|
198
|
-
* name)
|
|
198
|
+
* name) \u2014 the client `AuthExtraResult` shape \u2014 not the handler's per-call
|
|
199
199
|
* `addedItems` (which is the list of NEW items).
|
|
200
200
|
*/
|
|
201
201
|
async runExtra(name, pendingAuthId, input) {
|
|
@@ -238,7 +238,7 @@ var AuthUiRegistry = class {
|
|
|
238
238
|
* `compileUIWidgets`): a missing / non-`.tsx` file is caught lazily at first
|
|
239
239
|
* render and cached as an error so the slot falls back to the built-in page
|
|
240
240
|
* instead of failing the request. This is just a cheap preflight log; it never
|
|
241
|
-
* throws
|
|
241
|
+
* throws \u2014 a broken component must not take the server down.
|
|
242
242
|
*/
|
|
243
243
|
async warmup() {
|
|
244
244
|
if (!this.hasAny()) return;
|
|
@@ -162,7 +162,7 @@ var OauthAuthorizeFlow = class extends FlowBase {
|
|
|
162
162
|
* The issuer identifier to advertise on an authorization response (RFC 9207).
|
|
163
163
|
*
|
|
164
164
|
* Returns `undefined` when the configured auth instance has no issuer, so the
|
|
165
|
-
* parameter is simply omitted rather than emitted empty
|
|
165
|
+
* parameter is simply omitted rather than emitted empty \u2014 a client validating
|
|
166
166
|
* `iss` treats absence as "not supported" and proceeds.
|
|
167
167
|
*
|
|
168
168
|
* With `request`, the issuer the tokens redeemed for this request name
|
|
@@ -423,7 +423,7 @@ var OauthAuthorizeFlow = class extends FlowBase {
|
|
|
423
423
|
*
|
|
424
424
|
* Returns the verified payload, or `undefined` when the parameter is absent,
|
|
425
425
|
* malformed, expired, or not signed by this server. Verification is
|
|
426
|
-
* side-effect free
|
|
426
|
+
* side-effect free \u2014 the ticket is CLAIMED (single use) later, in
|
|
427
427
|
* {@link prepareAuthorizationRequest}, so a request that fails OAuth
|
|
428
428
|
* validation does not burn the user's ticket.
|
|
429
429
|
*/
|
|
@@ -774,7 +774,7 @@ var OauthAuthorizeFlow = class extends FlowBase {
|
|
|
774
774
|
* upstream IdP's authorization endpoint. This reuses the exact federated
|
|
775
775
|
* machinery the multi-provider local path uses (`/oauth/provider/:id/callback`
|
|
776
776
|
* then completes the exchange, stores upstream tokens, and mints the FrontMCP
|
|
777
|
-
* session token whose identity comes from the upstream user)
|
|
777
|
+
* session token whose identity comes from the upstream user) \u2014 but skips the
|
|
778
778
|
* in-tree login page and the provider-selection page entirely.
|
|
779
779
|
*
|
|
780
780
|
* No identity is collected in-tree: the federated session is created with an
|
|
@@ -846,7 +846,7 @@ var OauthAuthorizeFlow = class extends FlowBase {
|
|
|
846
846
|
* for ALL clients (CIMD or not) as an open-redirect / lateral-movement guard.
|
|
847
847
|
* Returns a human-readable rejection reason, or `undefined` when the
|
|
848
848
|
* redirect_uri is allowed (including when no allowlist is configured, or the
|
|
849
|
-
* auth instance does not expose a DCR registry
|
|
849
|
+
* auth instance does not expose a DCR registry \u2014 e.g. non-local modes).
|
|
850
850
|
*/
|
|
851
851
|
checkDcrRedirectAllowlist(redirectUri) {
|
|
852
852
|
const registry = this.scope.auth?.dcrClientRegistry;
|
|
@@ -881,7 +881,7 @@ var OauthAuthorizeFlow = class extends FlowBase {
|
|
|
881
881
|
* Respond with OAuth error - redirect if possible, otherwise show error page.
|
|
882
882
|
*
|
|
883
883
|
* @param redirectUri A redirect_uri validated for the client; omit it for an error page.
|
|
884
|
-
* @param error The RFC 6749
|
|
884
|
+
* @param error The RFC 6749 \u00a74.1.2.1 error code. Default `invalid_request`.
|
|
885
885
|
*/
|
|
886
886
|
respondWithError(errors, redirectUri, state, error = "invalid_request") {
|
|
887
887
|
const errorDescription = errors.join("; ");
|
|
@@ -69,12 +69,12 @@ var stateSchema = z.object({
|
|
|
69
69
|
// Generated
|
|
70
70
|
authorizationCode: z.string().optional(),
|
|
71
71
|
userSub: z.string().optional(),
|
|
72
|
-
// Checkpoint 3a
|
|
72
|
+
// Checkpoint 3a \u2014 custom verification (authenticate()) results.
|
|
73
73
|
// Submitted login fields (built-in email/name + any custom `login.fields`).
|
|
74
74
|
loginFields: z.record(z.string(), z.string()).optional(),
|
|
75
75
|
// Custom claims returned by authenticate(), embedded (namespaced) in the token.
|
|
76
76
|
customClaims: z.record(z.string(), z.unknown()).optional(),
|
|
77
|
-
// Checkpoint 3b
|
|
77
|
+
// Checkpoint 3b \u2014 credentials returned by authenticate(), persisted into the
|
|
78
78
|
// per-session credential vault keyed by the minted userSub at code-mint time.
|
|
79
79
|
credentials: z.array(
|
|
80
80
|
z.object({
|
|
@@ -128,7 +128,7 @@ var OauthCallbackFlow = class extends FlowBase {
|
|
|
128
128
|
* The issuer identifier to advertise on an authorization response (RFC 9207).
|
|
129
129
|
*
|
|
130
130
|
* Returns `undefined` when the configured auth instance has no issuer, so the
|
|
131
|
-
* parameter is simply omitted rather than emitted empty
|
|
131
|
+
* parameter is simply omitted rather than emitted empty \u2014 a client validating
|
|
132
132
|
* `iss` treats absence as "not supported" and proceeds.
|
|
133
133
|
*
|
|
134
134
|
* With `request`, the issuer the tokens redeemed for this request name
|
|
@@ -426,7 +426,7 @@ var OauthCallbackFlow = class extends FlowBase {
|
|
|
426
426
|
originalState: pendingAuth.state,
|
|
427
427
|
resource: pendingAuth.resource,
|
|
428
428
|
userSub,
|
|
429
|
-
// Progressive/Incremental Authorization
|
|
429
|
+
// Progressive/Incremental Authorization \u2014 from the pending record ONLY.
|
|
430
430
|
// `isIncremental` was derived above from the record plus its proven
|
|
431
431
|
// subject; OR-ing a client-supplied flag in here is what let a caller
|
|
432
432
|
// override the server's `false` (GHSA-2c4g-9c8x-6m8g).
|
|
@@ -595,9 +595,9 @@ var OauthCallbackFlow = class extends FlowBase {
|
|
|
595
595
|
skippedProviders,
|
|
596
596
|
// Progressive/Incremental authorization grant (computed in handleIncrementalAuth)
|
|
597
597
|
authorizedAppIds,
|
|
598
|
-
// Checkpoint 3a
|
|
598
|
+
// Checkpoint 3a \u2014 custom claims from authenticate()
|
|
599
599
|
customClaims,
|
|
600
|
-
// Checkpoint 3b
|
|
600
|
+
// Checkpoint 3b \u2014 credentials from authenticate()
|
|
601
601
|
credentials
|
|
602
602
|
} = this.state;
|
|
603
603
|
if (!clientId || !redirectUri || !codeChallenge || !userSub) {
|
|
@@ -633,11 +633,11 @@ var OauthCallbackFlow = class extends FlowBase {
|
|
|
633
633
|
skippedProviderIds: skippedProviders,
|
|
634
634
|
consentEnabled,
|
|
635
635
|
federatedLoginUsed: isFederated,
|
|
636
|
-
// Progressive/Incremental authorization: granted app-id set
|
|
636
|
+
// Progressive/Incremental authorization: granted app-id set \u2192 minted as
|
|
637
637
|
// the token's `authorized_apps` claim. Only set when incremental auth is
|
|
638
638
|
// enabled (see handleIncrementalAuth); undefined otherwise (no claim).
|
|
639
639
|
authorizedAppIds,
|
|
640
|
-
// Checkpoint 3a
|
|
640
|
+
// Checkpoint 3a \u2014 custom claims to embed (namespaced) in the access token.
|
|
641
641
|
customClaims
|
|
642
642
|
});
|
|
643
643
|
this.logger.info(
|
|
@@ -731,12 +731,12 @@ var OauthCallbackFlow = class extends FlowBase {
|
|
|
731
731
|
* Same-origin (CSRF) check for a state-changing login/consent submission.
|
|
732
732
|
*
|
|
733
733
|
* Returns true when the request carries an `Origin` or `Referer` header whose
|
|
734
|
-
* host does NOT match the request's own host
|
|
734
|
+
* host does NOT match the request's own host \u2014 the signature of a cross-site
|
|
735
735
|
* login-CSRF/fixation. `Origin`/`Referer` are set by the browser and cannot
|
|
736
736
|
* be forged by a malicious page, so this reliably distinguishes a legitimate
|
|
737
737
|
* same-origin submission (the built-in form is served by THIS server) from a
|
|
738
738
|
* cross-site one. Returns false (do NOT block) when neither header is present
|
|
739
|
-
* or the request's own host cannot be determined
|
|
739
|
+
* or the request's own host cannot be determined \u2014 defense-in-depth, not a
|
|
740
740
|
* hard gate, so header-stripped GET navigations and existing flows keep working.
|
|
741
741
|
*/
|
|
742
742
|
isCrossOriginSubmission() {
|
|
@@ -830,7 +830,7 @@ var OauthCallbackFlow = class extends FlowBase {
|
|
|
830
830
|
* Derive a subject from the configured login subject strategy.
|
|
831
831
|
*
|
|
832
832
|
* - `per-account`: hash the value of `login.subject.fromField` into a stable
|
|
833
|
-
* subject (same account
|
|
833
|
+
* subject (same account \u2192 same `sub`).
|
|
834
834
|
* - otherwise (`per-session` / unset): return undefined so the caller falls
|
|
835
835
|
* back to the anonymous subject.
|
|
836
836
|
*/
|
|
@@ -286,7 +286,7 @@ OauthConnectFlow = __decorateClass([
|
|
|
286
286
|
outputSchema,
|
|
287
287
|
access: "public",
|
|
288
288
|
middleware: {
|
|
289
|
-
// No `method`
|
|
289
|
+
// No `method` \u2192 matches both GET (render) and POST (submit).
|
|
290
290
|
path: "/oauth/connect"
|
|
291
291
|
}
|
|
292
292
|
})
|
|
@@ -39,7 +39,7 @@ var registrationRequestSchema = z.object({
|
|
|
39
39
|
*
|
|
40
40
|
* MCP 2026-07-28 requires clients to state this during Dynamic Client
|
|
41
41
|
* Registration, because an OIDC authorization server applies different
|
|
42
|
-
* redirect-URI rules per type
|
|
42
|
+
* redirect-URI rules per type \u2014 a `native` client registering without it
|
|
43
43
|
* can be handed `web` rules and have its loopback/custom-scheme redirect
|
|
44
44
|
* rejected. Defaults to `web`, matching the OIDC registration default, so
|
|
45
45
|
* pre-2026 clients keep working unchanged.
|
|
@@ -407,7 +407,7 @@ OauthTokenFlow = __decorateClass([
|
|
|
407
407
|
middleware: {
|
|
408
408
|
method: "POST",
|
|
409
409
|
path: "/oauth/token",
|
|
410
|
-
// Never cached, errors included (RFC 6749
|
|
410
|
+
// Never cached, errors included (RFC 6749 \u00a75.1, \u00a75.2)
|
|
411
411
|
responseHeaders: NO_STORE_HEADERS
|
|
412
412
|
}
|
|
413
413
|
})
|
|
@@ -71,10 +71,10 @@ var wellKnownAsStateSchema = z.object({
|
|
|
71
71
|
// one on its authorization responses and tokens. Without it, `baseUrl`.
|
|
72
72
|
issuer: z.string().min(1).optional(),
|
|
73
73
|
// Root origin (proto://host WITHOUT the entryPath prefix). The OAuth
|
|
74
|
-
// endpoints (/oauth/authorize, /oauth/token, /oauth/register,
|
|
74
|
+
// endpoints (/oauth/authorize, /oauth/token, /oauth/register, \u2026) are
|
|
75
75
|
// registered at literal root paths by their flows, NOT under entryPath, so
|
|
76
76
|
// they must be advertised relative to this root rather than `baseUrl`
|
|
77
|
-
// (which carries the entryPath)
|
|
77
|
+
// (which carries the entryPath) \u2014 see #467.
|
|
78
78
|
oauthBaseUrl: z.string().min(1),
|
|
79
79
|
scopesSupported: z.array(z.string()).default(["openid", "profile", "email"]),
|
|
80
80
|
tokenEndpointAuthMethods: z.array(z.enum(["client_secret_basic", "client_secret_post", "private_key_jwt"])).default(["client_secret_basic", "client_secret_post"]),
|
|
@@ -121,7 +121,7 @@ var WellKnownAsFlow = class extends FlowBase {
|
|
|
121
121
|
// entries; a `*` glob names no scope a client could ask for.
|
|
122
122
|
scopesSupported: metadata.auth && isOrchestratedMode(metadata.auth) ? advertisedScopes(metadata.auth.allowedScopes) : [],
|
|
123
123
|
tokenEndpointAuthMethods: [],
|
|
124
|
-
// #462
|
|
124
|
+
// #462 \u2014 advertise registration_endpoint only when local-AS DCR is
|
|
125
125
|
// actually active (explicit auth.dcr.enabled, else dev/prod default).
|
|
126
126
|
dcrEnabled: resolveDcrEnabled(metadata.auth),
|
|
127
127
|
isOrchestrated: metadata.auth ? isOrchestratedMode(metadata.auth) : false,
|
|
@@ -156,7 +156,7 @@ var WellKnownAsFlow = class extends FlowBase {
|
|
|
156
156
|
token_endpoint: `${oauthBaseUrl}/oauth/token`,
|
|
157
157
|
userinfo_endpoint: `${oauthBaseUrl}/oauth/userinfo`,
|
|
158
158
|
jwks_uri: `${baseIssuer}/.well-known/jwks.json`,
|
|
159
|
-
// #462
|
|
159
|
+
// #462 \u2014 only advertise registration when DCR is active. When it is
|
|
160
160
|
// disabled, omitting the endpoint signals "no DCR" to clients.
|
|
161
161
|
// Dynamic Client Registration is DEPRECATED as of MCP 2026-07-28 in
|
|
162
162
|
// favour of Client ID Metadata Documents (PR #2858). It stays
|
|
@@ -168,7 +168,7 @@ var WellKnownAsFlow = class extends FlowBase {
|
|
|
168
168
|
grant_types_supported: ["authorization_code", "refresh_token"],
|
|
169
169
|
scopes_supported: scopesSupported,
|
|
170
170
|
code_challenge_methods_supported: ["S256"],
|
|
171
|
-
// Every authorization response, error responses included, carries `iss` (RFC 9207
|
|
171
|
+
// Every authorization response, error responses included, carries `iss` (RFC 9207 \u00a72, \u00a73).
|
|
172
172
|
authorization_response_iss_parameter_supported: true,
|
|
173
173
|
// CIMD support advertisement per draft-ietf-oauth-client-id-metadata-document-00
|
|
174
174
|
client_id_metadata_document_supported: cimdEnabled
|