A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.
JavaScript claude-code-pluginclaude-code-skillscode-appsgithub-copilot-pluginpower-appspower-pagespower-platform
Simplify Configure skill, allow reconnecting mid-session (#152)
McCall Saltzmana05500edf933
diff --git a/plugins/canvas-apps/.claude-plugin/plugin.json b/plugins/canvas-apps/.claude-plugin/plugin.jsonindex c6a768762..142a9e794 100644--- a/plugins/canvas-apps/.claude-plugin/plugin.json+++ b/plugins/canvas-apps/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "canvas-apps",- "version": "1.0.7",+ "version": "2.1.0","description": "Build Power Apps Canvas Apps using the Canvas Authoring MCP server.","author": {"name": "Microsoft",diff --git a/plugins/canvas-apps/.mcp.json b/plugins/canvas-apps/.mcp.jsonnew file mode 100644index 000000000..7d5a0193e--- /dev/null+++ b/plugins/canvas-apps/.mcp.json@@ -0,0 +1,12 @@+{+ "canvas-authoring": {+ "command": "dnx",+ "args": [+ "Microsoft.PowerApps.CanvasAuthoring.McpServer",+ "--yes",+ "--prerelease",+ "--source",+ "https://api.nuget.org/v3/index.json"+ ]+ }+}diff --git a/plugins/canvas-apps/AGENTS.md b/plugins/canvas-apps/AGENTS.mdindex 9249ba8b2..3ee0a9c10 100644--- a/plugins/canvas-apps/AGENTS.md+++ b/plugins/canvas-apps/AGENTS.md@@ -20,6 +20,7 @@ claude --plugin-dir /path/to/plugins/canvas-apps```.claude-plugin/plugin.json ← Plugin metadata (name, version, keywords)+.mcp.json ← MCP server config (canvas-authoring, auto-registered)AGENTS.md ← Plugin guidance for AI agents (this file)CLAUDE.md ← Symlink → AGENTS.mdreferences/@@ -46,7 +47,7 @@ skills/| Skill | Description ||-------|-------------|| `/canvas-app` | Create or edit a Canvas App — auto-detects whether to generate from scratch or edit existing |-| `/configure-canvas-mcp` | Register the Canvas Authoring MCP server with Claude Code |+| `/configure-canvas-mcp` | Configure the Canvas Authoring MCP server for the current coauthoring session || `/add-data-source` | Guide the user to add a data source, connection, or API connector in Studio, then verify it is available |## Agents@@ -64,6 +65,7 @@ The `canvas-authoring` MCP server exposes the following tools:| Tool | Description ||------|-------------|+| `configure` | Configures the MCP server for a specific coauthoring session (environment ID, app ID, cluster category) || `compile_canvas` | Validates canvas app YAML files in a directory using the Power Apps authoring service || `describe_api` | Gets detailed information about a specific API (connector) including its operations and parameters || `describe_control` | Gets detailed information about a specific Power Apps control including properties, variants, and metadata |diff --git a/plugins/canvas-apps/README.md b/plugins/canvas-apps/README.mdindex a5b791f5d..9405994b0 100644--- a/plugins/canvas-apps/README.md+++ b/plugins/canvas-apps/README.md@@ -39,9 +39,9 @@ or edit an existing one based on the current app state.### `/configure-canvas-mcp`-Register the Canvas Authoring MCP server with Claude Code or GitHub Copilot.+Configure the Canvas Authoring MCP server for the current coauthoring session. The MCP server is auto-registered by the plugin — this skill connects it to a specific app.-**Usage:** Invoke directly with `/configure-canvas-mcp`, or use any of the keywords below to trigger the skill automatically:+**Usage:** Invoke directly with `/configure-canvas-mcp`, or use any of the keywords below to trigger it automatically:- `Configure MCP for Canvas Apps`- `Set up the Canvas Authoring MCP server`@@ -53,6 +53,7 @@ The `canvas-authoring` MCP server exposes the following tools:| Tool | Description ||------|-------------|+| `configure` | Configures the MCP server for a specific coauthoring session (environment ID, app ID, cluster category) || `compile_canvas` | Validates canvas app YAML files in a directory using the Power Apps authoring service || `describe_api` | Gets detailed information about a specific API (connector) including its operations and parameters || `describe_control` | Gets detailed information about a specific Power Apps control including properties, variants, and metadata |diff --git a/plugins/canvas-apps/agents/canvas-app-planner.md b/plugins/canvas-apps/agents/canvas-app-planner.mdindex f61b0152c..44e400615 100644--- a/plugins/canvas-apps/agents/canvas-app-planner.md+++ b/plugins/canvas-apps/agents/canvas-app-planner.md@@ -110,7 +110,17 @@ in the existing app — their property names can be read directly from the exist### Both modes-Collect the full output of each `describe_control` call for embedding in the plan document.+After all `describe_control` calls complete, perform a **property-name audit** before writing+the plan document:++1. List every property name you intend to include in the Control Definitions section of+ the plan document.+2. For each property, confirm it appears verbatim in the raw `describe_control` output for+ that control.+3. Remove any property that does not appear in the `describe_control` output — it does not+ exist, regardless of what training knowledge suggests.++This audit is mandatory. Do not skip it.Mark the "Gather control property definitions" task complete when done (or skip if EDIT modeand no new controls are needed).@@ -189,5 +199,8 @@ Plan document: [working directory]/canvas-app-plan.mdscreens have been generated or edited.- **Embed full `describe_control` output** in the plan document — never summarize propertynames. Downstream agents must be able to write correct YAML from the plan document alone.+- **Only include properties that were returned by `describe_control` specifically for that control.**+ If you are uncertain whether a property exists for a control, it does not exist. Only the `describe_control`+ output is authoritative — not training data, not intuition, not analogies to similar controls.- **Embed exact RGBA values** from the approved plan — not prose color descriptions.Consistent visual design across parallel agents depends on exact values.diff --git a/plugins/canvas-apps/skills/configure-canvas-mcp/SKILL.md b/plugins/canvas-apps/skills/configure-canvas-mcp/SKILL.mdindex 55b5274ce..a56d7bf26 100644--- a/plugins/canvas-apps/skills/configure-canvas-mcp/SKILL.md+++ b/plugins/canvas-apps/skills/configure-canvas-mcp/SKILL.md@@ -1,21 +1,21 @@---name: configure-canvas-mcp-version: 1.0.0-description: Configure the Canvas Authoring MCP server for Claude Code, VS Code Copilot, or GitHub Copilot CLI. USE WHEN "configure MCP", "set up MCP server", "MCP not working", "connect Canvas Apps MCP", "canvas-authoring not available", "MCP not configured", "set up canvas apps". DO NOT USE WHEN prerequisites are missing — direct the user to install .NET 10 SDK first.+version: 2.0.0+description: Configure the Canvas Authoring MCP server for the current coauthoring session. USE WHEN "configure MCP", "set up MCP server", "MCP not working", "connect Canvas Apps MCP", "canvas-authoring not available", "MCP not configured", "set up canvas apps". DO NOT USE WHEN prerequisites are missing — direct the user to install .NET 10 SDK first.author: Microsoft Corporationuser-invocable: true-allowed-tools: Bash, AskUserQuestion, Read, Edit, Write+allowed-tools: Bash, AskUserQuestion, mcp__canvas-authoring__configure---# Configure the Canvas Authoring MCP Server-This skill registers the Canvas Authoring MCP server with Claude Code, VS Code Copilot, or GitHub Copilot CLI using the user's Power Platform environment ID.+This skill configures the Canvas Authoring MCP server for the user's current Power Apps coauthoring session. The MCP server is auto-registered by the plugin — this skill connects it to a specific app session.## Instructions### 0. Check prerequisites-Verify that .NET 10 SDK or higher is installed+Verify that .NET 10 SDK or higher is installed:```bashdotnet --list-sdks@@ -27,59 +27,7 @@ If a version 10.x.y or higher is not listed, tell the user:Then wait for the user to install it before continuing. If they say it's installed, run the command again to confirm. If it's still not found, repeat the message until they have it installed.-### 1. Determine which tool to configure--Determine whether the user needs to configure MCP for VS Code Copilot, GitHub Copilot CLI, or Claude Code:-- If explicitly mentioned in prompt, use that.-- Otherwise, determine which tool the user is running from the context.-- Only if choosing based on the context is impossible, ask the user:--> Which tool would you like to configure the Canvas Authoring (canvas-authoring) MCP server for?-> 1. **VS Code Copilot**-> 2. **GitHub Copilot CLI**-> 3. **Claude**--Based on the result, set the `TOOL_TYPE` variable to `vscode-copilot`, `copilot`, or `claude`. Store this for use in all subsequent steps.--### 2. Determine the MCP scope--Choose the configuration scope based on the tool. Use the scope explicitly mentioned by the user, or ask the user to choose.--**If TOOL_TYPE is `vscode-copilot`:**--There is only one configuration path: `.vscode/mcp.json` (relative to the current working directory).--Set `CONFIG_PATH` = `.vscode/mcp.json`. No scope selection is needed.--Store this path for use in steps 4 and 5.--**If TOOL_TYPE is `copilot`:**--The options are:-1. **Globally** (default, available in all projects)-2. **Project-only** (available only in this project)--Based on the scope, set the `CONFIG_PATH` variable:-- **Global**: `~/.copilot/mcp-config.json` (use the user's home directory)-- **Project**: `.mcp.json` (relative to the current working directory)--Store this path for use in steps 4 and 5.--**If TOOL_TYPE is `claude`:**--The options are:-1. **User** (available in all projects for this user)-2. **Project** (default, available only in this project)-3. **Local** (scoped to current project directory)--Based on the scope, set the `CLAUDE_SCOPE` variable:-- **User**: `CLAUDE_SCOPE` = `user`-- **Project**: `CLAUDE_SCOPE` = `project`-- **Local**: `CLAUDE_SCOPE` = `local`--Store this value for use in step 5.--### 3. Ask for the studio URL+### 1. Ask for the studio URLAsk the user:@@ -91,7 +39,10 @@ Ask the user:>> **Keep this browser tab open for the entire session.** The MCP server communicates with Power Apps through the coauthoring session tied to that tab. Closing the tab ends the coauthoring session, which prevents `compile_canvas` and `sync_canvas` from working and means you can't see or save generated changes.-Then extract from the URL:+### 2. Extract parameters from the URL++Parse the following from the studio URL:+- **ENV_ID**: the path segment between `/e/` and the next `/` (e.g. `Default-91bee3d9-0c15-4f17-8624-c92bb8b36ead`).- **APP_ID**: URL-decode the `app-id` query parameter value, then take the last segment after the final `/` (e.g. `6fc3e3d1-292b-4281-8826-577f78512e56`)- **MAKER_HOSTNAME**: the hostname of the URL (e.g. `make.powerapps.com`)@@ -118,108 +69,29 @@ Example URL: `https://make.powerapps.com/e/Default-91bee3d9-0c15-4f17-8624-c92bb- MAKER_HOSTNAME → `make.powerapps.com`- CLUSTER_CATEGORY → `prod`-Store these as `ENV_ID`, `APP_ID`, and `CLUSTER_CATEGORY` for use in step 4.--### 4. Register the MCP server+### 3. Configure the MCP server-**If TOOL_TYPE is `claude`:**-Run the following command to register the server with Claude Code:+Call the `configure` MCP tool to connect the server to the user's coauthoring session:-```bash-claude mcp add --scope {CLAUDE_SCOPE} canvas-authoring \- -e CANVAS_ENVIRONMENT_ID={ENV_ID} \- -e CANVAS_APP_ID={APP_ID} \- -e CANVAS_CLUSTER_CATEGORY={CLUSTER_CATEGORY} \- -- dnx Microsoft.PowerApps.CanvasAuthoring.McpServer --yes --prerelease --source https://api.nuget.org/v3/index.json```--If the command fails because `canvas-authoring` is already registered, remove it first, then re-add:--```bash-claude mcp remove canvas-authoring-claude mcp add --scope {CLAUDE_SCOPE} canvas-authoring \- -e CANVAS_ENVIRONMENT_ID={ENV_ID} \- -e CANVAS_APP_ID={APP_ID} \- -e CANVAS_CLUSTER_CATEGORY={CLUSTER_CATEGORY} \- -- dnx Microsoft.PowerApps.CanvasAuthoring.McpServer --yes --prerelease --source https://api.nuget.org/v3/index.json+mcp__canvas-authoring__configure(+ environmentId: ENV_ID,+ appId: APP_ID,+ clusterCategory: CLUSTER_CATEGORY+)```-**If TOOL_TYPE is `vscode-copilot` or `copilot`:**-1. Ensure the parent directory exists:- - If `CONFIG_PATH` is `.vscode/mcp.json`, run: `mkdir -p .vscode`- - If `CONFIG_PATH` is the global `~/.copilot/mcp-config.json` or `.mcp.json`, no directory creation is needed.--2. Read the existing configuration file at `CONFIG_PATH`, or create a new empty config if it doesn't exist:- ```json- {}- ```--3. Determine which top-level key to use:- - If the config already has `"servers"`, or if the TOOL_TYPE is `vscode-copilot`, use that- - Otherwise, use `"mcpServers"`--4. Add or update the server entry:- ```json- {- "mcpServers": {- "canvas-authoring": {- "type": "stdio",- "command": "dnx",- "args": [- "Microsoft.PowerApps.CanvasAuthoring.McpServer",- "--yes",- "--prerelease",- "--source",- "https://api.nuget.org/v3/index.json"- ],- "env": {- "CANVAS_ENVIRONMENT_ID": "{ENV_ID}",- "CANVAS_APP_ID": "{APP_ID}",- "CANVAS_CLUSTER_CATEGORY": "{CLUSTER_CATEGORY}"- }- }- }- }- ```--5. Write the updated configuration back to `CONFIG_PATH` with proper JSON formatting (2-space indentation).--**Important notes:**-- Do NOT overwrite other entries in the configuration file-- Preserve the existing structure and formatting--### 5. Confirm and provide next steps--If TOOL_TYPE is `claude`:--Tell the user:--> ✅ Canvas Authoring MCP server configured (`canvas-authoring`, scope: `{CLAUDE_SCOPE}`).->-> **Restart Claude Code to activate it.** Remember to use `claude --continue` to resume this session without losing context.->-> After restarting, verify the setup:-> - `canvas-authoring` should appear in the MCP server list-> - Ask Claude: "List available Canvas App controls" — should invoke `list_controls`--If TOOL_TYPE is `vscode-copilot`:--Tell the user:--> ✅ Canvas Authoring MCP server configured (`canvas-authoring`, configPath: `{CONFIG_PATH}`).->-> After saving, verify the setup:-> - `canvas-authoring` should appear in the MCP server list-> - Ask Copilot: "List available Canvas App controls" — should invoke `list_controls`+If the call fails, report the error to the user and suggest checking that:+1. The studio URL is correct and the browser tab is still open+2. Coauthoring is enabled in the app settings+3. .NET 10 SDK is correctly installed-If TOOL_TYPE is `copilot`:+### 4. ConfirmTell the user:-> ✅ Canvas Authoring MCP server configured (`canvas-authoring`, configPath: `{CONFIG_PATH}`).+> ✅ Canvas Authoring MCP server configured for your coauthoring session.>-> **Restart GitHub Copilot CLI to activate it.**+> You can now use Canvas App skills like `/canvas-app` to create or edit your app.>-> After restarting, verify the setup:-> - `canvas-authoring` should appear in the MCP server list-> - Ask Copilot: "List available Canvas App controls" — should invoke `list_controls`\ No newline at end of file+> To verify the setup, try: "List available Canvas App controls" — this should invoke `list_controls`.\ No newline at end of file