Bug description
ppapiBaseUrl() in plugins/power-automate/server/mcp.mjs (v2.2.0) derives the Power Platform API hostname purely by string-slicing the environment GUID:
function ppapiBaseUrl(envId, templateOverride, suffixOverride) {
const rawId = envId.replace(/^Default-/i, "");
const hex = rawId.replace(/-/g, "");
const prefix = hex.slice(0, 30);
const shard = hex.slice(30, 32);
...
return `https://${prefix}.${shard}.${suffix}`;
}
This produces a hostname that does not exist in DNS for our environment.
Steps to reproduce
- Set the current environment to a valid Dataverse environment, e.g.
env: "Default-<your-environment-guid>".
- Call
list_connections (or invoke_operation) against that environment.
Actual result
Flow API 0 NetworkError: Network request failed: ENOTFOUND (hostname: <prefix>.<shard>.environment.api.powerplatform.com). This often means the environment ID produced an invalid PPAPI URL. Verify the environment ID is a valid GUID.
Confirmed with a valid, correctly-formatted environment GUID (both plain GUID and Default-<guid> forms) — not an input-formatting issue.
Expected result
list_connections/invoke_operation should resolve the correct regional Power Platform API endpoint for the given environment (presumably via a real environment/instance lookup) rather than a static hex-slice of the GUID, and return connection data.
Environment
- Plugin:
power-automate (power-platform-skills marketplace), v2.2.0
- Dataverse environment type: Default (non-Sandbox)
- Reproduced consistently across both GUID and
Default-<guid> env-id formats
Workaround
None found for list_connections/invoke_operation specifically. get_flow/get_flow_context still work and surface a flow's connection references, so we're using those instead.
Bug description
ppapiBaseUrl()inplugins/power-automate/server/mcp.mjs(v2.2.0) derives the Power Platform API hostname purely by string-slicing the environment GUID:This produces a hostname that does not exist in DNS for our environment.
Steps to reproduce
env: "Default-<your-environment-guid>".list_connections(orinvoke_operation) against that environment.Actual result
Confirmed with a valid, correctly-formatted environment GUID (both plain GUID and
Default-<guid>forms) — not an input-formatting issue.Expected result
list_connections/invoke_operationshould resolve the correct regional Power Platform API endpoint for the given environment (presumably via a real environment/instance lookup) rather than a static hex-slice of the GUID, and return connection data.Environment
power-automate(power-platform-skills marketplace), v2.2.0Default-<guid>env-id formatsWorkaround
None found for
list_connections/invoke_operationspecifically.get_flow/get_flow_contextstill work and surface a flow's connection references, so we're using those instead.