Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Powerplatform Core

FreeNot checked

Shared core infrastructure for PowerPlatform MCP packages - authentication, HTTP client, and modular services

GitHubEmbed

About

Shared core infrastructure for PowerPlatform MCP packages - authentication, HTTP client, and modular services

README

Modular Model Context Protocol (MCP) server providing AI-powered access to Microsoft PowerPlatform, Azure DevOps, Figma, Azure monitoring services, databases, and GitHub Enterprise.

npm version License: MIT

Overview

MCP Consultant Tools is a modular monorepo with 22 independently published npm packages under the @mcp-consultant-tools organization. Install individual packages for specific integrations or the complete meta-package for everything.

PII protection (v32): A 4-layer redaction pipeline is built into powerplatform-data, azure-devops, azure-sql, rest-api, and azure-b2c to keep personal data from reaching the US-hosted LLM during MCP tool calls against client production environments. It is opt-in — off by default; enable it per server with PII_PROTECTION=true. See docs/documentation/pii-protection.md.

  • PII audit logging (opt-in): when enabled with MCP_AUDIT_LEVEL=lean|full, every Dataverse MCP tool call produces a tamper-evident audit record (Phase A — local file; Phase B — central sync follows).

Package Architecture

Core Package

Package Description
@mcp-consultant-tools/core Shared utilities, MCP helpers, audit logging

Service Packages

Package Integration Tools CLI Binary Documentation
powerplatform-core Shared PowerPlatform services (internal) N/A N/A
powerplatform PowerPlatform/Dataverse (Read-Only) 49 mcp-pp-cli Setup & Usage
powerplatform-customization PowerPlatform Schema Changes 85 mcp-pp-custom-cli Setup & Usage
powerplatform-data PowerPlatform Data CRUD 14 mcp-pp-data-cli Setup & Usage
azure-devops Azure DevOps Wikis, Work Items, PRs, Builds, Test Runs 65 mcp-ado-cli Setup & Usage
azure-devops-admin Azure DevOps Pipelines, Service Conns, Pools 66 mcp-ado-admin-cli Setup & Usage
azure-management Azure ARM API (Functions, App Services, Key Vault, SQL, Monitoring) 31 mcp-azure-mgmt-cli Setup & Usage
sharepoint SharePoint Online 16-22 mcp-spo-cli Setup & Usage
github-enterprise GitHub Enterprise 22 mcp-ghe-cli Setup & Usage
figma Figma Design Extraction 4 mcp-figma-cli Setup & Usage
application-insights Application Insights 10 mcp-appins-cli Setup & Usage
log-analytics Log Analytics 13 mcp-loganalytics-cli Setup & Usage
1password 1Password Vault & Item Management 21 mcp-op-cli Setup & Usage
azure-sql Azure SQL Database 20 mcp-sql-cli Setup & Usage
service-bus Azure Service Bus 8 mcp-sb-cli Setup & Usage
azure-b2c Azure AD B2C 11 mcp-azure-b2c-cli Setup & Usage
azure-storage Azure Blob, Files, Queue, Table Storage 47 mcp-storage-cli Setup & Usage
azure-data-factory Azure Data Factory 24 mcp-adf-cli Setup & Usage
fabric Microsoft Fabric (Workspaces, Capacities, Items, Shortcuts, Domains, Admin) 27 mcp-fabric-cli Setup & Usage
rest-api Generic REST API (OAuth2) 4 mcp-rest-api-cli Setup & Usage
teams Microsoft Teams messaging 7 mcp-teams-cli Setup & Usage

Meta-Package

Package Description
mcp-consultant-tools Complete package with all integrations

Troubleshooting: npx Cache Issues

If you experience authentication failures after switching package versions (e.g., between @beta and @latest), clear the npx cache:

npx clear-npx-cache

Then restart your MCP client. See Azure DevOps Troubleshooting for details.

Troubleshooting: npm error code E401 (Unable to authenticate)

Symptom — an MCP server fails to start and the stderr tail shows:

npm warn Unknown project config "always-auth". This will stop working in the next major version of npm.
npm error code E401
npm error Unable to authenticate, your authentication token seems to be invalid.
npm error To correct this please try logging in again with: npm login

This is npm failing to authenticate to a package registry — not the MCP server crashing. It happens on machines (common at consulting shops / corporate setups) where npm's default registry is a private feed — Azure DevOps Artifacts, GitHub Packages, or an internal Verdaccio/Nexus proxy — usually with always-auth=true and a PAT that has expired. With always-auth on, npm tries to authenticate even when fetching the public @mcp-consultant-tools/* packages, and the dead token makes it bomb out before npx ever runs. The always-auth warning is the giveaway.

Fix (recommended): pin the scope to the public npm registry

Tell npm that the @mcp-consultant-tools scope always comes from public npm, regardless of the default registry. This is non-destructive — it leaves the private feed working for everything else.

  1. Open (or create) your user-level .npmrc:
    • Windows: C:\Users\<your-username>\.npmrc
    • macOS / Linux: ~/.npmrc
  2. Add this line:
    @mcp-consultant-tools:registry=https://registry.npmjs.org/
    
  3. Verify (run from any directory):
    npm config get @mcp-consultant-tools:registry
    # → should print: https://registry.npmjs.org/
    
    npm view @mcp-consultant-tools/azure-devops@beta version
    # → should print a version (e.g. 32.0.0-beta.2), NOT "npm error code E401"
    
  4. In your MCP client, reconnect the server (in Claude Code: /mcp → reconnect, or restart the session). The first launch is slow while npx fetches the package, then it connects.

Diagnosing / alternative fixes

  • Confirm the diagnosis — force the public registry for one call:
    npx --registry=https://registry.npmjs.org -y --package=@mcp-consultant-tools/PACKAGE BINARY --help
    
    If that works, it's 100% an .npmrc / registry-config issue.
  • Inspect the offending configcat ~/.npmrc (and any project-level .npmrc in the working directory). Look for: always-auth=true, a registry=https://... pointing at a private feed, //pkgs.dev.azure.com/...:_authToken=... (expired PAT), or a stray @mcp-consultant-tools:registry= pointing somewhere other than public npm.
  • Check the active default registrynpm config get registry must return https://registry.npmjs.org/. If it returns a private feed and the scope pin above isn't an option, that's the root cause.
  • Stored / env-var tokensnpm logout to clear stored tokens, then retry. Also check env | grep -i npmNPM_CONFIG_REGISTRY, NPM_TOKEN, NODE_AUTH_TOKEN override .npmrc.

npx clear-npx-cache does not help here — the cache isn't the problem, the registry config is.


Install All CLI Tools

Install every CLI tool globally with one command. Ideal for AI agents, investigation workflows, and developers who want all tools available instantly.

# macOS / Linux
curl -sL https://raw.githubusercontent.com/klemensms/mcp-consultant-tools/main/docs/cli-setup/install-cli-tools.sh | bash

# Windows (PowerShell)
irm https://raw.githubusercontent.com/klemensms/mcp-consultant-tools/main/docs/cli-setup/install-cli-tools.ps1 | iex

After installation, all 21 CLI binaries are in your PATH and ready to use. Pass credentials via --env-file .env or --mcp-server SERVER_NAME (reads from .mcp.json).

Full setup guide with agent prompt: CLI Setup Guide


Quick Start

Option 1: Individual Package (Recommended)

# Install only what you need
npx @mcp-consultant-tools/powerplatform

Option 2: Complete Package

# All integrations in one package
npx mcp-consultant-tools

MCP Client Configuration

Each package documentation includes complete setup instructions with configuration examples for Claude Desktop and VS Code. See the Documentation column in the table above.

Example (PowerPlatform with Claude Desktop):

{
  "mcpServers": {
    "powerplatform": {
      "command": "npx",
      "args": ["-y", "--package=@mcp-consultant-tools/powerplatform", "mcp-consultant-tools-powerplatform"],
      "env": {
        "POWERPLATFORM_URL": "https://yourenv.crm.dynamics.com",
        "POWERPLATFORM_CLIENT_ID": "your-client-id",
        "POWERPLATFORM_TENANT_ID": "your-tenant-id"
      }
    }
  }
}

For complete setup including authentication options, permissions, and troubleshooting, see PowerPlatform Documentation.

Option 3: CLI Usage

Every package also includes a Commander.js CLI for shell-based access to the same tools:

# Run any CLI via npx
npx --package=@mcp-consultant-tools/azure-devops mcp-ado-cli wiki list MyProject

# JSON output mode
npx --package=@mcp-consultant-tools/azure-devops mcp-ado-cli --json wiki list MyProject

# List all available CLIs
npx --package=mcp-consultant-tools mcp-tools-cli list

CLI tools use the same environment variables as MCP servers. See the CLI Binary column in the package table above.

CLI Access for AI Agents (Copy-Paste for CLAUDE.md)

If you have MCP servers configured in another repo and want agents/subagents to also use CLI tools (e.g., in hooks, subagents that don't inherit MCP connections, or shell scripts), add this to that repo's CLAUDE.md:

CLI Tools (for subagents, hooks, and scripting)

MCP servers are configured for native tool access, but CLI equivalents are also available via npx for use in subagents (which don't inherit MCP connections), hooks, and shell scripts. They use the same environment variables already configured for the MCP servers. Run npx --package=@mcp-consultant-tools/<package> <binary> --help for available commands. Common CLIs: mcp-ado-cli (Azure DevOps), mcp-pp-cli (PowerPlatform read-only), mcp-pp-custom-cli (PowerPlatform customization), mcp-pp-data-cli (PowerPlatform data), mcp-ado-admin-cli (ADO pipelines/admin), mcp-spo-cli (SharePoint), mcp-sql-cli (Azure SQL), mcp-appins-cli (Application Insights), mcp-loganalytics-cli (Log Analytics), mcp-storage-cli (Azure Storage), mcp-adf-cli (Data Factory), mcp-azure-mgmt-cli (Azure Management), mcp-ghe-cli (GitHub Enterprise), mcp-azure-b2c-cli (Azure B2C), mcp-sb-cli (Service Bus), mcp-figma-cli (Figma), mcp-fabric-cli (Microsoft Fabric), mcp-rest-api-cli (REST API), mcp-teams-cli (Teams), mcp-audit-cli (audit log verify/quarantine/search). Use --json for raw JSON output suitable for piping.

PowerPlatform Security Split

The PowerPlatform integration is split into 3 security-isolated packages:

Package Purpose Production-Safe?
powerplatform Read-only access ✅ YES
powerplatform-customization Schema changes ⚠️ Dev/config only
powerplatform-data Data CRUD ⚠️ Operational use

Security is enforced through package selection - install only what you need per environment.

Documentation

Setup Guides (Start Here)

Each integration has comprehensive documentation with quick start, configuration, tool reference, and examples:

Development & Technical Guides

Development

Build All Packages

npm install
npm run build

Build Individual Package

cd packages/powerplatform
npm run build

Local Testing

{
  "mcpServers": {
    "local-dev": {
      "command": "node",
      "args": ["/path/to/mcp-consultant-tools/packages/powerplatform/build/index.js"],
      "env": { "..." }
    }
  }
}

Links

License

MIT License - see LICENSE for details.

from github.com/klemensms/mcp-consultant-tools

Install Powerplatform Core in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install powerplatform-core

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add powerplatform-core -- npx -y @mcp-consultant-tools/powerplatform-core

FAQ

Is Powerplatform Core MCP free?

Yes, Powerplatform Core MCP is free — one-click install via Unyly at no cost.

Does Powerplatform Core need an API key?

No, Powerplatform Core runs without API keys or environment variables.

Is Powerplatform Core hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Powerplatform Core in Claude Desktop, Claude Code or Cursor?

Open Powerplatform Core on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Powerplatform Core with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs