File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const app = express();
4444
4545// Initialize McpAuthServer
4646const mcpAuthServer = new McpAuthServer ({
47- baseUrl: process .env .BASE_URL as string ,
47+ baseUrl: process .env .AUTH_SERVER_BASE_URL as string ,
4848 issuer: process .env .ISSUER as string ,
4949 resource: ' http://localhost:8000/mcp' , // MCP server URL
5050});
@@ -74,6 +74,14 @@ const mcpAuthServer = new McpAuthServer({
7474});
7575```
7676
77+ If you are using Asgardeo this will be
78+
79+ ``` typescript
80+ import {McpAuthServer } from ' @asgardeo/mcp-express' ;
81+
82+ const mcpAuthServer = new McpAuthServer ({baseUrl: ' https://api.asgardeo.io/t/<your-organization>' });
83+ ```
84+
7785#### mcpAuthServer.router()
7886
7987Returns an Express router that sets up the necessary endpoints for MCP authentication.
You can’t perform that action at this time.
0 commit comments