Repository navigation
v0.1.2 — auto-reconnect for fire-and-forget commands
Auto-reconnect now covers fire-and-forget commands too. Previously call() would lazy-reconnect if PPSSPP had been closed and reopened, but fireAndForget() (used by pause/resume/screenshot) still threw the old 'PPSSPP not connected — did you start() the client?' error, leaving those tools broken across PPSSPP restarts until the MCP client itself restarted.
Fixed
fireAndForget()now auto-reconnects — extracted the lazy connection guard fromcall()into a sharedensureConnected()helper, then routedfireAndForget()through it too.ppsspp_pause,ppsspp_resume, andppsspp_screenshot(which internally uses fire-and-forget for the pause/capture/resume bracket) now survive a PPSSPP close-and-relaunch without needing the MCP server itself to restart. Same memoized-readyPromisesafety as before: concurrent callers share a single underlying connect attempt.
Changed
fireAndForget()is nowasync(returnsPromise<void>instead ofvoid). All in-tree callers insrc/tools.tsandscripts/smoke.cjsupdated toawaitit.
Install: npm install -g mcp-ppsspp@0.1.2 or npx -y mcp-ppsspp
Full Changelog: https://github.com/dmang-dev/mcp-ppsspp/blob/v0.1.2/CHANGELOG.md