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
Update canvas-apps connect tool docs for new auth params (#223)
Ryan Gammonf6528d55a0e4
diff --git a/plugins/canvas-apps/AGENTS.md b/plugins/canvas-apps/AGENTS.mdindex f6d57d459..3494b7e70 100644--- a/plugins/canvas-apps/AGENTS.md+++ b/plugins/canvas-apps/AGENTS.md@@ -65,7 +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) |+| `connect` | Connects to a coauthoring session for a specific canvas app (environment ID, app ID, cluster category; optional auth flow, login hint, tenant ID, and forced account selection). Must be called before any other tool; calling again switches environment/app || `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 9405994b0..1e0dd393b 100644--- a/plugins/canvas-apps/README.md+++ b/plugins/canvas-apps/README.md@@ -53,7 +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) |+| `connect` | Connects to a coauthoring session for a specific canvas app (environment ID, app ID, cluster category; optional auth flow, login hint, tenant ID, and forced account selection). Must be called before any other tool; calling again switches environment/app || `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/skills/configure-canvas-mcp/SKILL.md b/plugins/canvas-apps/skills/configure-canvas-mcp/SKILL.mdindex f9afb9c8e..5b13412cd 100644--- a/plugins/canvas-apps/skills/configure-canvas-mcp/SKILL.md+++ b/plugins/canvas-apps/skills/configure-canvas-mcp/SKILL.md@@ -78,23 +78,27 @@ mcp__canvas-authoring__connect(environment_id: ENV_ID,app_id: APP_ID,cluster_category: CLUSTER_CATEGORY,- // Optional — include only if the user has expressed a preference (see below):- auth_flow: "broker" | "browser",- login_hint: "[email protected]"+ // Optional — include only if the user has expressed a preference or a prior sign-in failed (see below):+ auth_flow: "broker" | "browser" | "devicecode",+ login_hint: "[email protected]",+ tenant_id: "00000000-0000-0000-0000-000000000000",+ force_account_select: true)```-**Optional parameters — do NOT prompt the user for these.** Only include them if the user has already expressed a preference earlier in the conversation:+**Optional parameters — do NOT prompt the user for these.** Only include them if the user has already expressed a preference earlier in the conversation, or if a prior connect attempt failed:-- `login_hint`: Pass the user's UPN or email **only if** they have indicated they want to connect as a specific/different user (e.g. "log in as [email protected]"). These values cannot be derived from the maker portal URL — never guess. Omit otherwise to use the first signed-in user.-- `auth_flow`: Pass `"browser"` or `"broker"` **only if** the user has explicitly stated a preferred auth flow (e.g. "use browser sign-in"). Omit otherwise to use the default.+- `login_hint`: Pass the user's UPN or email **only if** they have indicated they want to connect as a specific/different user (e.g. "log in as [email protected]"). These values cannot be derived from the maker portal URL — never guess. Omit otherwise to use the first signed-in user. When reconnecting to switch environment/app, reuse the same `login_hint` value as the previous successful connect (if known) so the same user is reused without re-prompting.+- `auth_flow`: Pass `"browser"`, `"broker"`, or `"devicecode"` **only if** the user has explicitly stated a preferred auth flow (e.g. "use browser sign-in"). Use `"devicecode"` on headless/SSH hosts where neither broker nor browser flow can pop a UI — the verification URL and user code are surfaced via an MCP elicitation request and require a client that supports elicitation. Omit otherwise to use the default.+- `tenant_id`: Pass a tenant GUID **only** for Entra B2B guest access — set it to the host/resource tenant where the user is a guest so the token is issued by that tenant rather than the user's home tenant. Combine with `login_hint` (the guest's home UPN) to pre-fill the account. Omit for normal same-tenant sign-in.+- `force_account_select`: Pass `true` **only** to force the account picker instead of silently reusing a cached account — set this when a previous connect failed with a 401/403 and no `login_hint` was given, so the user can pick the correct account. Omit otherwise.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 open2. Coauthoring is enabled in the app settings3. .NET 10 SDK is correctly installed-4. If sign-in failed, the user may need to specify `auth_flow` (`broker` vs. `browser`) or a `login_hint` (UPN/email) to authenticate as the correct account+4. If sign-in failed, the user may need to specify `auth_flow` (`broker`, `browser`, or `devicecode`) or a `login_hint` (UPN/email) to authenticate as the correct account. On a headless/SSH host, use `auth_flow: "devicecode"`. If a cached account keeps getting picked, retry with `force_account_select: true`. For Entra B2B guest access, set `tenant_id` to the host tenant.### 4. Confirm