ha-mcp-patching

Apply JSON Patch and Semantic Patch operations to existing MCP configurations.

5|1|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/zorak1103/ha-mcp --skill ha-mcp-patching
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ha-mcp-patching
Source: https://github.com/zorak1103/ha-mcp/tree/main/.claude/skills/ha-mcp/ha-mcp-patching
Command: npx skills add https://github.com/zorak1103/ha-mcp --skill ha-mcp-patching

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Patching enables safe, incremental edits to existing MCP assets (automation, script, scene, or dashboard) by applying small, atomic changes instead of rewriting full configurations.

Core Features & Use Cases

  • Supports RFC 6902 path-based operations (replace, add, remove, test, move, copy) for precise edits.
  • Supports semantic patching when element position is unreliable to modify targeted triggers, conditions, actions, or views.
  • Useful for updating automations, scripts, scenes, or dashboards with minimal risk, such as adding a trigger, changing a mode, or adjusting a view.

Quick Start

Identify the target automation, script, scene, or dashboard and apply a small patch using the provided JSON Patch or Semantic Patch operations.

Frequently Asked Questions about ha-mcp-patching

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely update a Home Assistant automation without rewriting the entire configuration?

To safely update a Home Assistant automation without rewriting the configuration, apply atomic JSON Patch or Semantic Patch operations to target specific triggers, conditions, or actions for minimal risk.

What is semantic patching and when should I use it for Home Assistant scripts?

Semantic patching modifies targeted elements like triggers or actions when element position is unreliable. Use it for Home Assistant scripts when path-based operations cannot accurately target the configuration node.

How do I apply RFC 6902 JSON Patch operations to modify a dashboard configuration?

To apply RFC 6902 JSON Patch operations to a dashboard configuration, use path-based replace, add, remove, test, move, or copy operations to execute precise, atomic edits on targeted views.

Do I need to fetch the current configuration before patching an automation?

Yes, you must always call the get operation to fetch the current configuration before patching an automation, ensuring your path-based or semantic patch targets the correct elements accurately.

What is the best way to add a trigger or change a mode in an existing scene?

The best way to add a trigger or change a mode in an existing scene is using atomic patches, which apply small, incremental edits instead of rewriting the full configuration to minimize risk.

Why use atomic edits instead of full configuration rewrites for Home Assistant dashboards?

Atomic edits prevent full configuration rewrites by applying small, controlled changes to Home Assistant dashboards, significantly reducing the risk of breaking existing views, automations, or scripts.