Skip to content

Commit c7612d4

Browse files
Merge pull request #10 from Achintha444/main
2 parents bf8da41 + fc4ae6c commit c7612d4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/mcp-express/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const app = express();
4444

4545
// Initialize McpAuthServer
4646
const 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

7987
Returns an Express router that sets up the necessary endpoints for MCP authentication.

0 commit comments

Comments
 (0)