https://github.com/dend/entra-id-mcp-server-session-demo
Demo showing how to use Entra ID with MCP servers without passing access tokens through.
https://github.com/dend/entra-id-mcp-server-session-demo
Last synced: about 2 months ago
JSON representation
Demo showing how to use Entra ID with MCP servers without passing access tokens through.
- Host: GitHub
- URL: https://github.com/dend/entra-id-mcp-server-session-demo
- Owner: dend
- License: mit
- Created: 2025-03-14T22:23:46.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-14T22:24:51.000Z (2 months ago)
- Last Synced: 2025-03-14T23:25:55.494Z (2 months ago)
- Language: TypeScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🔒 Minimal Entra ID-authenticated MCP Server
Minimal server showing how to implement Entra ID authentication with MCP and HTTP+SSE transport. Unlike the previous server implementation, this relies on a confidential client living inside the MCP server, and then using "session mapping" to make sure that the client gets a session assignment through, what looks like, a JWT token (since we can't use cookies).
>[!WARNING]
>This is not intended for production use. If you are to adopt any of the practices in this implementation, ensure that you are implementing proper caching and secure token/credential handling practices.## Run server
```
npm install
npm run build
npm run start
```## Testing
You will need to use [**MCP Inspector**](https://github.com/modelcontextprotocol/inspector) or a tool that supports HTTP+SSE transport for MCP servers _and_ authentication.