MCP.so
登录

powerplatform mcp/cli

@michsob

关于 powerplatform mcp/cli

PowerPlatform CLI and MCP tools

基本信息

分类

开发工具

许可证

MIT

运行时

node

传输方式

stdio

发布者

michsob

提交者

michsob

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "powerplatform": {
      "command": "npx",
      "args": [
        "-y",
        "powerplatform-mcp"
      ],
      "env": {
        "POWERPLATFORM_ENVIRONMENTS": "DEV,UAT,PROD",
        "POWERPLATFORM_DEV_URL": "https://dev-org.crm.dynamics.com",
        "POWERPLATFORM_DEV_CLIENT_ID": "...",
        "POWERPLATFORM_DEV_CLIENT_SECRET": "...",
        "POWERPLATFORM_DEV_TENANT_ID": "...",
        "POWERPLATFORM_UAT_URL": "https://uat-org.crm.dynamics.com",
        "POWERPLATFORM_UAT_CLIENT_ID": "...",
        "POWERPLATFORM_UAT_CLIENT_SECRET": "...",
        "POWERPLATFORM_UAT_TENANT_ID": "..."
      }
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is powerplatform mcp/cli?

A Model Context Protocol (MCP) server and standalone CLI for querying and configuring PowerPlatform / Dataverse environments. It supports multiple environments, entity metadata, records, plugins, flows, solutions, workflows, business rules, security roles, custom APIs, web resources, and write operations for automated environment setup. It is designed for developers and administrators using AI-powered clients like Claude, Cursor, and GitHub Copilot.

How to use powerplatform mcp/cli?

Install via npm (npm install -g powerplatform-mcp or npx powerplatform-mcp for the MCP server; npm install -g powerplatform-cli or npx powerplatform-cli for the CLI) or via Docker. Configure multiple environments using environment variables (e.g., POWERPLATFORM_DEV_URL, POWERPLATFORM_DEV_CLIENT_ID). The MCP server exposes 67 tools that accept an optional environment parameter; the CLI writes results to a file system cache to avoid context window limits.

Key features of powerplatform mcp/cli

  • Query and configure Dataverse environments via MCP or CLI.
  • Supports 67 tools covering entities, records, plugins, flows, solutions, security roles, and more.
  • Multiple environment support with environment-specific credentials.
  • Write operations for automated environment setup (e.g., create attributes, plugin steps, security roles).
  • CLI persists full results to disk to avoid AI context window truncation.
  • Docker images available for both MCP server and CLI.

Use cases of powerplatform mcp/cli

  • Conversational exploration of PowerPlatform environments using AI clients.
  • Automated environment setup and configuration via scripts or AI assistants.
  • Bulk analysis of flows, plugins, solutions, and security roles.
  • Troubleshooting using plugin trace logs and flow run history.
  • Exporting solutions and managing solution components.

FAQ from powerplatform mcp/cli

What is the difference between the MCP server and the CLI?

The MCP server integrates with AI clients for interactive use, returning results inline. The CLI writes results to a file system cache to avoid context window limits, persisting full results for follow-up analysis.

What are the runtime requirements?

Requires Node.js 22+ (less than 25).

How do I configure multiple environments?

Define environment variables: POWERPLATFORM_ENVIRONMENTS=DEV,UAT,PROD and for each environment set POWERPLATFORM_<ENV>_URL, _CLIENT_ID, _CLIENT_SECRET, and _TENANT_ID.

What transport does the MCP server use?

The README does not specify the transport protocol (e.g., stdio, HTTP). It is designed for AI-powered clients but does not detail transport.

Are there any known limits?

The CLI avoids AI context window limits by writing to disk. The query-records tool has a default maxRecords of 50. Other tools mention maxRecords optional parameters.

评论

开发工具 分类下的更多 MCP 服务器