Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion packages/mcp-express/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const app = express();

// Initialize McpAuthServer
const mcpAuthServer = new McpAuthServer({
baseUrl: process.env.BASE_URL as string,
baseUrl: process.env.AUTH_SERVER_BASE_URL as string,
issuer: process.env.ISSUER as string,
resource: 'http://localhost:8000/mcp', // MCP server URL
});
Expand Down Expand Up @@ -74,6 +74,14 @@ const mcpAuthServer = new McpAuthServer({
});
```

If you are using Asgardeo this will be

```typescript
import {McpAuthServer} from '@asgardeo/mcp-express';

const mcpAuthServer = new McpAuthServer({baseUrl: 'https://api.asgardeo.io/t/<your-organization>'});
```

#### mcpAuthServer.router()

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