mcpField
O
open-wrap-url

open-wrap-url

github.com/microsoftDevelopment1.1k129 installsUpdated today
Repository

About open-wrap-url

A skill that builds and opens a Wrap URL for a Power Apps code app from its app and environment IDs. It supports Prod and Test hosts and returns the URL if automatic browser opening fails.

Key features

  1. 01Build Wrap URL from app and environment IDs
  2. 02Select Prod or Test host
  3. 03Open URL in a browser
  4. 04Return URL when auto-open fails

Use cases

  1. 01Open the Wrap page for a specified code app
  2. 02Generate a Test-environment Wrap link
  3. 03Copy the link when browser launch is unavailable

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/microsoft/power-platform-skills --skill open-wrap-url

After installing, type/open-wrap-urlin Claude Code to confirm it loaded.

Details

From the project README

Plugin check: Run node "${PLUGIN_ROOT}/scripts/check-version.js" - if it outputs a message, show it to the user before proceeding.

📋 Shared instructions: shared-instructions.md — read first.

Open Wrap URL

Builds and opens the Wrap URL for a code app:

https://make.powerapps.com/environments/<envID>/wrap?appID=<appID> for --env Prod

https://make.test.powerapps.com/environments/<envID>/wrap?appID=<appID> for --env Test

This skill delegates URL construction and browser open behavior to scripts/open-wrap-url.js.

Workflow

  1. Resolve app ID + env ID → 2. Open Wrap URL

Step 1 — Resolve app ID + env ID

Telemetry checkpoint: resolve_wrap_target

Both arguments are required:

  • --app-id <app-id>
  • --env-id <environment-id>

Optional host selector:

  • --env <Prod|Test> (default: Prod)

If either value is missing in $ARGUMENTS, ask once for the missing value(s). If still missing, STOP.

Step 2 — Open Wrap URL

Telemetry checkpoint: open_power_apps_wrap

Run from the plugin root (or any app root):

node scripts/open-wrap-url.js --app-id "<app-id>" --env-id "<environment-id>" [--env "Prod|Test"]

Return the generated URL in the response. If the browser auto-open fails, still print the URL and tell the user to open it manually.

Notes

  • This skill is read-only with respect to project source files.
  • Works on macOS (open), Linux (xdg-open), and Windows (start).

Comments

Markdown supported