File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,11 @@ import {McpAuthServer} from '@asgardeo/mcp-express';
4242
4343const app = express ();
4444
45- // Initialize McpAuthServer with baseUrl
45+ // Initialize McpAuthServer
4646const mcpAuthServer = new McpAuthServer ({
4747 baseUrl: process .env .BASE_URL as string ,
48+ issuer: process .env .ISSUER as string ,
49+ resource: ' http://localhost:8000/mcp' , // MCP server URL
4850});
4951
5052app .use (express .json ());
@@ -65,7 +67,11 @@ Creates a new instance of the MCP authentication server with the given configura
6567``` typescript
6668import {McpAuthServer } from ' @asgardeo/mcp-express' ;
6769
68- const mcpAuthServer = new McpAuthServer ({baseUrl: ' https://auth.example.com' });
70+ const mcpAuthServer = new McpAuthServer ({
71+ baseUrl: ' https://auth.example.com'
72+ issuer : ' https://auth.example.com/oauth2/token'
73+ resource : ' http://localhost:8000/mcp'
74+ });
6975```
7076
7177#### mcpAuthServer.router()
You can’t perform that action at this time.
0 commit comments