EDF: Login
edf_auth_loginSign in to EDF to authenticate the read-only energy tools. On macOS it opens Safari and captures the one-time code automatically; otherwise pass the redirect URL to complete login.
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. An EDF login lasts 20 minutes; after that the server renews it silently through Safari while Safari stays signed in to EDF, so calling this again is only needed when a tool answers signedIn: false.
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). |