EDF: Login
edf_auth_loginSign in to EDF to authorize read-only electricity and gas consumption queries. Opens Safari on macOS to capture the login code, or accepts a redirect URL as a manual fallback.
Instructions
Sign in to EDF. On macOS this opens the EDF login in a Safari tab and catches the one-time code when EDF redirects back: if Safari is already signed in to EDF it completes in a second or two with nothing to do; otherwise Safari comes forward and the user logs in as usual. The first run triggers macOS's 'allow to control Safari' prompt. Waits up to wait_seconds, then keeps listening in the background for 5 minutes: call edf_auth_status afterwards. Elsewhere, pass redirect_url instead (see that argument). Logging in again replaces the stored login.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "edf_auth_login"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| redirect_url | No | Manual fallback, without Safari automation: the full address the browser landed on after logging in, https://suiviconso.edf.fr/openid?code=…&state=…. The Suivi Conso page uses and erases the code within a second, so it must be copied before the page loads (e.g. with JavaScript disabled). Leave unset for the automatic login. | |
| wait_seconds | No | How long to wait for the login before returning. Defaults to 90 (MCP calls time out near 120). |