Back to MCP directory
publicPublicdnsLocal runtime

asgardeo-mcp-server

Asgardeo MCP服务器,用于通过LLM工具与Asgardeo组织交互

article

README

🚀 Asgardeo MCP 服务器

Asgardeo MCP 服务器可借助 LLM 工具实现与您的 Asgardeo 组织进行交互,为您提供便捷的组织管理体验。

🚀 快速开始

📦 安装指南

在 Asgardeo 平台的操作

  1. 在您的 Asgardeo 组织中创建一个 M2M 应用。
  2. 将您希望 MCP 服务器使用的管理 API 授权给已创建的 M2M 应用。
  3. 复制该 M2M 应用的客户端 ID 和客户端密钥。

在本地机器上的操作

  1. 克隆代码库。
  2. 安装依赖项,执行以下命令:
go mod tidy
  1. 构建代码库,这将生成一个名为 asgardeo-mcp 的可执行文件,命令如下:
go build -o asgardeo-mcp

💻 使用示例

配置 MCP 客户端

  • Claude Desktop
    1. 打开 Claude Desktop。
    2. 点击菜单栏中的 Claude > 设置
    3. 切换到 开发者 标签页。
    4. 点击底部的 编辑配置 按钮,此操作将指向 claude_desktop_config.json 文件。
    5. 打开该文件,进入 mcpServers 对象,添加以下内容:
"asgardeo-mcp": {
    "command": "<绝对路径到 asgardeo-mcp 可执行文件>",
    "args": [],
    "env": {
        "ASGARDEO_BASE_URL" : "https://api.asgardeo.io/t/<asgardeo 组织>",
        "ASGARDEO_CLIENT_ID" : "<客户端 ID>",
        "ASGARDEO_CLIENT_SECRET" : "<客户端密钥>"
    }
}
6. 重启 Claude Desktop。
  • Cursor
    1. 打开 Cursor。
    2. 点击菜单栏中的 Cursor > 设置 > 光标设置
    3. 切换到 MCP 标签页。
    4. 点击底部的 添加新的全局 MCP 服务器 按钮,这将打开 mcp.json 文件。
    5. mcpServers 对象中添加以下内容:
"asgardeo-mcp": {
    "command": "<绝对路径到 asgardeo-mcp 可执行文件>",
    "args": [],
    "env": {
        "ASGARDEO_BASE_URL" : "https://api.asgardeo.io/t/<asgardeo 组织>",
        "ASGARDEO_CLIENT_ID" : "<客户端 ID>",
        "ASGARDEO_CLIENT_SECRET" : "<客户端密钥>"
    }
}
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