Initial release: iai-mcp v0.1.0
Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: XNLLLLH <XNLLLLH@users.noreply.github.com>
This commit is contained in:
commit
f6b876fbe7
332 changed files with 97258 additions and 0 deletions
83
deploy/launchd/com.iai-mcp.daemon.plist
Normal file
83
deploy/launchd/com.iai-mcp.daemon.plist
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
|
||||
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>Label</key>
|
||||
<string>com.iai-mcp.daemon</string>
|
||||
|
||||
<key>ProgramArguments</key>
|
||||
<array>
|
||||
<string>/usr/local/bin/python3</string>
|
||||
<string>-m</string>
|
||||
<string>iai_mcp.daemon</string>
|
||||
</array>
|
||||
|
||||
<key>RunAtLoad</key>
|
||||
<true/>
|
||||
|
||||
<!--
|
||||
Phase 10.6 Plan 10.6-01 Task 1.7: KeepAlive policy uses ONLY
|
||||
`Crashed=true`. With this policy, launchd respawns ONLY on
|
||||
a non-zero exit (the new lifecycle state machine exits 0
|
||||
gracefully on Hibernation; an MCP wrapper kickstart is the
|
||||
sole wake mechanism in steady state).
|
||||
|
||||
Removed (was Phase 07.8): `SuccessfulExit=false`, which paired
|
||||
with the legacy 75/0 exit-code branching. Now that exit code
|
||||
is uniformly 0 for graceful shutdown, `SuccessfulExit=false`
|
||||
would put us in a respawn loop.
|
||||
-->
|
||||
<key>KeepAlive</key>
|
||||
<dict>
|
||||
<key>Crashed</key>
|
||||
<true/>
|
||||
</dict>
|
||||
|
||||
<key>ThrottleInterval</key>
|
||||
<integer>5</integer>
|
||||
|
||||
<key>ProcessType</key>
|
||||
<string>Background</string>
|
||||
|
||||
<key>StandardOutPath</key>
|
||||
<string>/Users/{USERNAME}/Library/Logs/iai-mcp-daemon.stdout.log</string>
|
||||
<key>StandardErrorPath</key>
|
||||
<string>/Users/{USERNAME}/Library/Logs/iai-mcp-daemon.stderr.log</string>
|
||||
|
||||
<key>WorkingDirectory</key>
|
||||
<string>/Users/{USERNAME}</string>
|
||||
|
||||
<!--
|
||||
Phase 10.6 Plan 10.6-01 Task 1.7: env-var update.
|
||||
REMOVED:
|
||||
- IAI_MCP_RSS_RESTART_THRESHOLD_MB (legacy RSS-watchdog gone)
|
||||
- IAI_DAEMON_IDLE_SHUTDOWN_SECS (legacy socket idle_watcher gone)
|
||||
- IAI_MCP_SKIP_STARTUP_OPTIMIZE (legacy boot-time optimize defer gone)
|
||||
ADDED (lifecycle cadence + sleep quarantine):
|
||||
- LIFECYCLE_DROWSY_AFTER_SEC (default 300 == 5 min)
|
||||
- LIFECYCLE_SLEEP_HEARTBEAT_IDLE_SEC (default 1800 == 30 min)
|
||||
- LIFECYCLE_HIBERNATE_AFTER_SEC (default 7200 == 2 h)
|
||||
- IAI_MCP_SLEEP_QUARANTINE_TTL_HOURS (default 24)
|
||||
-->
|
||||
<key>EnvironmentVariables</key>
|
||||
<dict>
|
||||
<key>PATH</key>
|
||||
<string>/usr/local/bin:/usr/bin:/bin</string>
|
||||
<key>IAI_MCP_STORE</key>
|
||||
<string>/Users/{USERNAME}/.iai-mcp</string>
|
||||
<key>HOME</key>
|
||||
<string>/Users/{USERNAME}</string>
|
||||
<key>LANG</key>
|
||||
<string>en_US.UTF-8</string>
|
||||
<key>LIFECYCLE_DROWSY_AFTER_SEC</key>
|
||||
<string>300</string>
|
||||
<key>LIFECYCLE_SLEEP_HEARTBEAT_IDLE_SEC</key>
|
||||
<string>1800</string>
|
||||
<key>LIFECYCLE_HIBERNATE_AFTER_SEC</key>
|
||||
<string>7200</string>
|
||||
<key>IAI_MCP_SLEEP_QUARANTINE_TTL_HOURS</key>
|
||||
<string>24</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
Loading…
Add table
Add a link
Reference in a new issue