Back to MCP directory
publicPublicdnsLocal runtime

entra-id-mcp-server-demo

一个展示如何实现Entra ID认证的最小化MCP服务器项目,包含HTTP+SSE传输协议支持。

article

README

🚀 最小的Entra ID身份验证MCP服务器

本项目展示了如何使用Entra ID实现MCP身份验证,同时采用HTTP+SSE传输协议的最小服务器。该项目能帮助开发者快速了解相关技术的基础实现。

⚠️ 重要提示

此仓库已归档。请参考参考资料集合获取最新示例和最佳实践。

⚠️ 注意事项

此实现不适合生产环境使用。如果您打算采用其中任何做法,请确保实施适当的缓存和安全的令牌/凭据处理措施。

🚀 快速开始

📦 安装指南

npm install
npm run build
npm run start

💻 使用示例

测试

您需要使用MCP Inspector或支持HTTP+SSE传输协议用于MCP服务器_和_身份验证的工具。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client