Configuration
Example (per app, split‑by‑app server)
Keys & JWKS
- Omit
signKeyto auto‑generate keys (exposed via the local JWKS endpoint). - Provide
jwksorsignKeyto pin keys for stable environments.
auth: {
type: 'local',
id: 'local',
name: 'Local Auth',
scopes?: string[],
grantTypes?: ('authorization_code' | 'refresh_token')[],
allowAnonymous?: boolean, // default true
consent?: boolean,
jwks?: JSONWebKeySet, // inline JWKS (optional)
signKey?: JWK | Uint8Array // private key (optional; auto‑generated if omitted)
}
@FrontMcp({
info: { name: 'Workspace', version: '1.0.0' },
auth: { type: 'local' },
apps: [DocsApp, MailApp],
splitByApp: true,
})
export default class Server {}
@App({
name: 'Docs',
})
export default class DocsApp {}
splitByApp: true, define auth per app; server‑level auth is not allowed.signKey to auto‑generate keys (exposed via the local JWKS endpoint).jwks or signKey to pin keys for stable environments.Was this page helpful?