Skip to content
Discussion options

You must be logged in to vote

Use createMcpModule from @glinr/theauth/mcp and mount it through a framework adapter. It serves dynamic client registration, authorize, token, and the two discovery documents. PKCE accepts S256 and nothing else; plain is rejected at the authorize endpoint.

export const mcp = createMcpModule({
  config: {
    enabled: true,
    issuer: 'https://auth.yourapp.com',
    baseUrl: 'https://auth.yourapp.com/api/theauth',
    signingSecret: process.env.MCP_SIGNING_SECRET!, // at least 32 characters
    scopes: ['mcp:read', 'mcp:execute'],
    loginPage: 'https://auth.yourapp.com/login',
  },
  ...mcpStore,
});
// app.route('/api/theauth', theAuthHono(theauth, { mcp, authenticate }));

Things that …

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