Skip to content

Commit c5e6940

Browse files
Update mcp express readme
1 parent ff67b42 commit c5e6940

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/mcp-express/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ import {McpAuthServer} from '@asgardeo/mcp-express';
4242

4343
const app = express();
4444

45-
// Initialize McpAuthServer with baseUrl
45+
// Initialize McpAuthServer
4646
const 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

5052
app.use(express.json());
@@ -65,7 +67,11 @@ Creates a new instance of the MCP authentication server with the given configura
6567
```typescript
6668
import {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()

0 commit comments

Comments
 (0)