Commit f8287f1
LittleCoinCoin
feat(kiro): add configuration file backup support
Integrate Kiro with the MCP host configuration backup system to provide
automatic backup creation before configuration changes.
Key changes:
- Add 'kiro' to supported hostnames in BackupInfo validator
- Update KiroHostStrategy.write_configuration() to use atomic operations
- Implement backup creation with MCPHostConfigBackupManager
- Add rollback capability on write failures
- Support configurable backup skipping via no_backup parameter
Backup files follow established naming: mcp.json.kiro.YYYYMMDD_HHMMSS_microseconds
Stored in: ~/.hatch/mcp_host_config_backups/kiro/1 parent 04b3733 commit f8287f1
2 files changed
+14
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
457 | 458 | | |
458 | 459 | | |
459 | 460 | | |
460 | | - | |
| 461 | + | |
461 | 462 | | |
462 | 463 | | |
463 | 464 | | |
| |||
479 | 480 | | |
480 | 481 | | |
481 | 482 | | |
482 | | - | |
483 | | - | |
484 | | - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
485 | 494 | | |
486 | 495 | | |
487 | 496 | | |
| |||
0 commit comments