基本能力
产品定位
genaiscript-pac-az-mcp 是一个用于开发者的工具集,旨在通过 MCP 协议标准化 AI 模型与数据源(如 Graph API、Azure REST API 和 Power Platform API)的交互。
核心功能
- 提供与 Graph API、Azure REST API 和 Power Platform API 的交互能力。
- 支持通过 GenAIScript 框架与 AI 模型(包括本地模型)通信。
- 可以在 VSCode Insiders 或 Claude Desktop 中运行 MCP 服务器。
- 提供配置文件和工具来简化开发流程。
适用场景
- 开发者需要与 Graph API、Azure REST API 或 Power Platform API 交互的场景。
- 需要标准化 AI 模型与数据源连接的场景。
- 在 VSCode Insiders 或 Claude Desktop 中运行 MCP 服务器的场景。
工具列表
- GenAIScript CLI:用于安装和运行 MCP 服务器的命令行工具。
- Dev Container CLI:用于在开发容器中运行 MCP 的工具。
- Docker:用于支持开发容器的运行。
常见问题解答
- GitHub Copilot 在 Windows 上的问题:Power Platform CLI 可能会因认证问题失败,建议使用 DevContainers 或 Claude Desktop 来避免此问题。
- 配置问题:提供了详细的配置文件示例,适用于 Windows 和 MacOS/Linux。
使用教程
使用依赖
- 安装 VSCode Insiders(2025 年 3 月版本)或 Claude Desktop。
- 安装 Azure CLI 和 Power Platform CLI,并在本地机器上完成认证(如果不使用 DevContainer 选项)。
- 安装 Dev Container CLI(如果需要在 Dev Container 中运行 MCP)。
- 安装 Docker(如果需要运行 Dev Containers)。
安装教程
- 安装 NodeJS。
- 安装
genaiscript
CLI:
bash
npm install -g genaiscript
或使用npx genaiscript
。
调试方式
- 在 VSCode Insiders 中运行 MCP 服务器,可以通过
mcp.json
文件配置服务器。 - 使用
--remote
标志时,无需安装 GenAIScript 扩展,npx
会自动拉取所需内容。 - 在 Claude Desktop 中,可以通过上传提示文件来使用 MCP 工具。
配置文件示例
- Windows 配置:
json
{
"globalShortcut": "Ctrl+Space",
"mcpServers": {
"genaiscript-mcp": {
"type": "stdio",
"command": "cmd",
"args": [
"/c",
"npx",
"genaiscript",
"mcp",
"--remote",
"https://github.com/rajyraman/genaiscript-pac-az-mcp/",
"--remote-branch",
"main",
"--groups",
"mcp",
"--startup",
"mcp_resources"
],
"env": {
"DEBUG": "*"
}
}
}
} - MacOS/Linux 配置:
json
{
"globalShortcut": "Ctrl+Space",
"mcpServers": {
"genaiscript-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"genaiscript",
"mcp",
"--remote",
"https://github.com/rajyraman/genaiscript-pac-az-mcp/",
"--remote-branch",
"main",
"--groups",
"mcp",
"--startup",
"mcp_resources"
],
"env": {
"DEBUG": "*"
}
}
}
}