steamos-mcp
by kas5852
README.md
# steamos-mcp
Zero-sudo MCP server and stdlib user daemon (`steamos-agentd`) for SteamOS, Bazzite, Steam Deck and Intel Xe handhelds.
*Live-tested on Intel Xe3 / Panther Lake (OneXPlayer 3, SteamOS 3.11); AMD RDNA (`amdgpu` / Steam Deck / Bazzite) telemetry paths are implemented and unit-tested.*
## Features
- Captures composited Gamescope frames over PipeWire with automatic 15s stream suspend plus `gamescopectl` fallback.
- Drives Player 1 controller inputs, chords, analog trajectories and macros through InputPlumber D-Bus or `/dev/uinput` with automatic disconnect release.
- Lists apps, validates Non-Steam shortcuts with `shortcuts.vdf` backups and applies 4-slot artwork over Steam `SharedJSContext` CEF.
- Samples zero-sudo AMD RDNA (`amdgpu`) and Intel (`xe` / `i915`) GPU clocks, `fdinfo` engine busy%, RAPL / `hwmon` watts, CPU clocks and MangoHud frametime lows.
- Freezes background builds inside `steamos-mcp-bg.slice` via cgroup v2 `cgroup.freeze` (`0.00 W` in `<10 ms`) whenever a game runs.
## Quickstart
```bash
# 1. Install host MCP server (macOS or Linux, Python >= 3.11)
python3 -m venv .venv && .venv/bin/pip install -e .
# 2. Install zero-dependency user daemon on handheld (survives SteamOS A/B updates)
scp -r agent steamos:/tmp/steamos-mcp-agent && ssh steamos "bash /tmp/steamos-mcp-agent/install.sh && rm -rf /tmp/steamos-mcp-agent"
# 3. Register with MCP client (default SSH host alias is STEAMOS_MCP_HOST or "steamos")
claude mcp add steamos-mcp -e STEAMOS_MCP_HOST=steamos -- "$(pwd)/.venv/bin/steamos-mcp"
```
## Documentation
- [Setup & Multi-Host Config](docs/SETUP.md)
- [MCP Tools Reference (23 tools)](docs/TOOLS.md)
- [Architecture & Internals](docs/ARCHITECTURE.md)
- [Security Model](SECURITY.md)
- [Contributing & Tests](CONTRIBUTING.md)
## License
[MIT](LICENSE)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues