easee-mcp
# easee-mcp
An Easee car charger's status, read by voice: a read-only MCP server and claude-voice plugin.
It answers four questions by voice: is the car charging and how fast, what
current the charger may give, how many charging sessions there were lately,
and how much energy went in today, this week or this month. It only reads.
It never starts, stops or changes the charger, and a test proves it cannot;
see [ADR-EM-001](decisions/ADR-EM-001-read-only-kept-by-the-code.md).
To set it up, follow [docs/setup.md](docs/setup.md). It starts on a made-up charger, with no
login and nothing sent, and ends with the two steps only the owner can do: saving the Easee
login and approving the plugin. The login is read only when a question is asked, and never
printed or logged. The charger's ID is never written anywhere.
Easee allows the charger list twice a minute, and sessions and energy ten
reads an hour each. So the plugin keeps the state for 30 seconds, sessions for
ten minutes and energy for thirty. Past a limit it sends nothing, and gives the
last answer with its age, or says how long to wait.
## The gates
Every one of these runs in continuous integration, and all of them run here:
```console
$ uv run ruff check .
All checks passed!
```
<!-- not run: the workflow runs each of these; nesting them here would run the suite inside itself -->
```bash
uv run ruff format --check . # layout
uv run mypy src # types
uv run pytest -q # behaviour
python scripts/mutate.py # that each rule's own test can fail
uv run python scripts/ratchet.py check --base origin/main # that nothing got worse
```
The last one measures coverage, the rules' own tests, the test count, lint and
type errors, import cycles, imports that cross the layers, copied code and the
most tangled function per module. A pull request may make none of them worse
unless its text has a line `Ratchet-Exception: <measure> - the reason`. Main
keeps what it measured with its own CI run, for the code-health page;
`quality.json` holds only the suite's time budget, and no measured number is
ever committed.
`CONTRIBUTING.md` says what each one is for, and
[`decisions/`](decisions/README.md) records the choices that shaped them,
including how a change is made here.
## Licence
GPL-3.0-or-later. See [LICENSE](LICENSE).
TDQS
Scored across 4 tools
Each tool covers a distinct facet: live status, current limits, session history, and energy totals. There is minor overlap because charger_status also reports power, session energy, and current limit, which can blur its boundary with charger_energy and charger_current, but the descriptions provide enough separation.
All names use a consistent snake_case charger_ prefix and noun-style suffixes. The only small inconsistency is plural charger_sessions versus the singular forms, but the pattern remains predictable.
Four tools is a well-scoped set for a read-only charger monitoring server. Each tool has a clear role: status, current, sessions, and energy.
The surface covers the core monitoring needs: live charging state, current limits, recent sessions, and energy totals. Gaps are minor for a read-only server, though control operations (start/stop, set current) and more detailed session data are absent.