Skip to content

[power-automate][Bug] FlowAgent MCP bundle fails to start: dynamic require of buffer is not supported #343

Description

Plugin

power-automate

Plugin Version

2.1.0

Skill / Command

setup / browse-flows

Bug Description

The bundled FlowAgent MCP server fails immediately with Node.js 24, preventing FlowAgent tools from being registered.

Steps to Reproduce

  1. Install power-automate plugin version 2.1.0.
  2. Launch server/mcp.mjs using Node.js 24.
  3. Observe the startup failure.

Expected Behavior

The MCP server starts and exposes its tools.

Actual Behavior

Error: Dynamic require of buffer is not supported
    at <plugin-root>/server/mcp.mjs:13:9
    at node_modules/safe-buffer/index.js

A launch shim that sets globalThis.require before importing the bundle works.

Environment

Windows 25H2, AMD64
Node.js v24.18.0
Codex CLI 0.146.0
Plugin 2.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions