power-automate — плагин для Claude Code: что делает и как установить
Плагин для Claude Code открывает доступ к облачным потокам Power Automate через автономный сервер FlowAgent. С его помощью правят логику, диагностируют сбои и переносят потоки между средами.
MIT ★ 1 167 обновлён 2026-10-29
/plugin marketplace add microsoft/power-platform-skills
/plugin install power-automate@power-platform-skillsЧто делает power-automate
Плагин подключает встроенный MCP-сервер FlowAgent с более чем 50 инструментами. Он работает без удалённых хостов и отдельной сборки через npm: движок упакован в один файл server/mcp.mjs и требует только Node.js 18+. Через набор навыков агент умеет собирать потоки по описанию, редактировать отдельные действия, сканировать историю запусков с разбором итераций циклов и управлять подключениями.
Перед каждым обновлением или удалением движок автоматически сохраняет сжатую копию схемы потока в локальный кэш. Это защищает от случайной потери логики: если создать резервный снимок не удалось, операция прерывается. Для связи с Power Platform обязательна предварительная авторизация в консоли через команду az login.
Какие задачи решает
- создать облачный поток Power Automate по текстовому описанию
- локализовать причину падения конкретного запуска с деталями по циклам
- точечно отредактировать действие внутри существующего потока
- перенести поток между средами без ручного экспорта в портале
Примеры запросов агенту
- Покажи список последних упавших запусков потока и разбери ошибку в цикле
- Собери новый облачный поток, который пересылает письма из Outlook в Teams
- Откати изменения в потоке из последней локальной резервной копии
Как установить power-automate
Через маркетплейс плагинов
/plugin marketplace add microsoft/power-platform-skills/plugin install power-automate@power-platform-skillsПо шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой
Вопросы о power-automate
Как установить power-automate в Claude Code?
Сначала добавьте каталог командой /plugin marketplace add microsoft/power-platform-skills. Затем установите сам плагин через /plugin install power-automate@power-platform-skills.
Что делает плагин power-automate?
Он связывает Claude Code со службой Power Automate через протокол MCP. Ассистент получает возможность создавать, изменять, тестировать и диагностировать облачные потоки прямо из терминала.
Нужен ли внешний сервер или пакеты npm для запуска?
Нет, движок FlowAgent вшит в плагин файлом server/mcp.mjs и работает локально. Потребуются только установленный Node.js 18+ и пройденный вход через az login.
Исходный текст
power-automate · MIT
# Power Automate plugin Build, edit, run, and debug **Power Automate cloud flows** from GitHub Copilot CLI or Claude Code, powered by the **FlowAgent** MCP server. This folder is the marketplace-packaged plugin: skills, MCP wiring, and a self-contained MCP engine bundled at `server/mcp.mjs`. ## Install From a GitHub Copilot CLI or Claude Code session: ```bash /plugin marketplace add microsoft/power-platform-skills /plugin install power-automate@power-platform-skills ``` > [!NOTE] > **Runs offline — no npm install or remote host required.** The plugin ships a > self-contained MCP engine at `server/mcp.mjs`, and `.mcp.json` loads it through > a small Node bootstrap that resolves the plugin's installation directory. Auth > still uses your local `az login` — see **MCP server** below. ## Capabilities - **Flows**: list, get, create, **edit** (surgical action-level edits), **copy** (within/across environments), update, publish/disable, delete - **Runs**: history, details, actions, **loop iteration drill-down**, **cancel**, **cancel all**, **resubmit**, **diagnose** - **Connections**: lifecycle (CRUD, fix), auto-discovery, dynamic value resolution - **Authoring**: templates/scaffolding, batch deploy, preflight + validation, **expression help** - **Desktop flows**, environment routing ## Skills | Skill | Purpose | |-------|---------| | `setup` | First-time prerequisite setup | | `browse-flows` | Browse environments and flows interactively | | `create-flow` | Guided flow creation | | `build-flow` | Autonomously generate a complete flow from a description | | `debug-flow` | Interactive debug of a failed run | | `diagnose-flow` | Autonomous deep diagnosis of a failed run | | `manage-flows` | Lifecycle ops: publish, test, batch, inventory | | `manage-desktop-flows` | List/run desktop (RPA) flows | | `route-environments` | Environment resolution/routing | ## MCP server `.mcp.json` registers the FlowAgent MCP server under the name `flowagent` and loads it from the bundled engine at `server/mcp.mjs` via a small Node bootstrap that resolves the plugin's installation directory and reports an actionable error if the bundle is missing. That file is a single self-contained ESM bundle (stdio transport, all 50+ tools, deps inlined). It needs only Node.js 18+ — no `npx`, no published npm package, no remote host. Auth uses Azure CLI (`az login`) plus MSAL for connectivity endpoints — see `references/connection-patterns.md` in this folder. ## Telemetry logs Power Automate hook telemetry writes per-session logs under `~/.power-platform-skills/telemetry/power-automate/sessions/` by default; the base directory follows `POWER_PLATFORM_SKILLS_CONFIG_DIR` when set. Old session logs are pruned after 14 days. The FlowAgent CLI/MCP engine writes a separate local mirror to `~/.flowagent/telemetry.jsonl` by default. Set `FLOWAGENT_TELEMETRY_LOG` to change its path. The core log is not automatically pruned. See [`skills/telemetry/SKILL.md`](skills/telemetry/SKILL.md) for telemetry controls and [`references/telemetry.md`](references/telemetry.md) for collection and routing details. Both guides ship inside the plugin. ## Local flow backups Before every update or delete, the engine saves the flow's current definition so `list_backups` / `restore_backup` can roll it back. These local snapshots provide a recovery option alongside Power Automate's recovery features. - **Location**: `%LOCALAPPDATA%\flowagent\backups` on Windows, otherwise `$XDG_CACHE_HOME/flowagent/backups` (default `~/.cache/flowagent/backups`). Setting `FLOWAGENT_HOME` moves them to `$FLOWAGENT_HOME/.flowagent/backups`. Backups from older versions in a project's `.flowagent/backups` folder are still listed and restorable (marked `legacy`) but never written to. - **Size**: files are gzipped, and a snapshot identical to the flow's latest backup is not written again. - **Retention**: per flow, the last 10 snapshots plus up to 5 pinned ones (the first snapshot each session, i.e. the state before the agent started editing). Files older than 30 days are pruned whenever a backup is written, across all flows, but each flow's newest backup is always kept. The whole store is capped at 100 MB, oldest unpinned first. Override with `FLOWAGENT_BACKUP_RETENTION`, `FLOWAGENT_BACKUP_PINNED_RETENTION`, `FLOWAGENT_BACKUP_MAX_AGE_DAYS` and `FLOWAGENT_BACKUP_MAX_TOTAL_MB`. - **Delete and restore are fail-closed**: if the backup of the current state can't be taken, the operation is refused. Pass `skipBackup` to delete anyway. - **Restore** compares the saved flow's trigger/action structure with the backup and reports any mismatch. If the flow no longer exists it is recreated with a new ID; a recreated solution flow sits outside its solution, and an admin can still restore the original (within 21 days of deletion) to keep its ID and solution membership.
© Microsoft · MIT · microsoft/power-platform-skills