Repository navigation
|
The MCP spec requires OAuth 2.1 with PKCE. What does @glinr/theauth give me, and what do I still have to supply? |
Answered by
thegdsks
Oct 17, 2026
Replies: 1 comment
|
Use 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 trip people up:
Full setup and config table: docs/mcp.mdx (MCP OAuth 2.1). |
0 replies
Answer selected by
thegdsks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
createMcpModulefrom@glinr/theauth/mcpand 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.Things that …