Skip to content
Discussion options

You must be logged in to vote

They are two mechanisms that you can link. Delegation chains (theauth.delegate) are database records: one agent grants a subset of its own permissions to another, with an expiry and a depth limit (default 3). Token exchange (RFC 8693) is an OAuth grant on the MCP token endpoint. It trades a token this server issued for a narrower one, and the new token carries a nested act claim naming each actor. Earlier hops sit inside the newest one.

const mcp = createMcpModule({
  config: {
    // ...
    jtiDenylist: createInMemoryJtiDenylist(), // required with tokenExchange
    tokenExchange: {
      enabled: true,
      maxChainDepth: 3, // default
      authorize: async ({ client, subject, scopes, …

Replies: 1 comment

Comment options

thegdsks
Oct 17, 2026
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by thegdsks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant