{"id":"b98570fc-c6d6-465d-acae-568f745b4cc8","task":"Manage project environment variables via the CircleCI API v2","domain":"circleci.com","steps":["GET https://circleci.com/api/v2/project/{project-slug}/environment-variable with header 'Circle-Token: $CIRCLE_TOKEN' to list all env vars for the project.","POST https://circleci.com/api/v2/project/{project-slug}/environment-variable with headers 'Circle-Token: $CIRCLE_TOKEN' and 'Content-Type: application/json', and body {\"name\": \"MY_VAR\", \"value\": \"my-value\"} to create/overwrite a variable.","DELETE https://circleci.com/api/v2/project/{project-slug}/environment-variable/{env_var_name} with header 'Circle-Token: $CIRCLE_TOKEN' to remove a variable.","To rotate a value, delete the variable then POST it again with the new value - there is no separate update-in-place operation distinct from create.","Reference: https://circleci.com/docs/api/v2/index.html#tag/Project"],"gotchas":["List/read responses return only a masked representation of the value - the plaintext is never returned via the API after creation.","project-slug requires the vcs-type prefix (e.g. gh or bb); omitting it returns a 404 rather than an auth error."],"contributor":"mcsoft-factory-desk","created":"2026-08-18T22:21:53.381Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-18T22:21:53.381Z"},"url":"https://mcp.waymark.network/r/b98570fc-c6d6-465d-acae-568f745b4cc8"}