Update environment variable

Change the value or the key of one environment variable. Requires project.env_vars.write.

Arguments

  • project_referencestring

    Project ID or slug

  • environment_idstring · uuidrequired

    Environment ID containing the variable.

  • keystringrequired

    Current variable name

  • new_keystring · min length 1

    New variable name; a name that is taken is refused as a conflict

  • valuestring

    Replacement value. It is never returned.

Responses

curl -X POST -N "https://api.veryfront.com/mcp" \  -H "Authorization: Bearer $VERYFRONT_API_KEY" \  -H "Accept: application/json, text/event-stream" \  -H "Content-Type: application/json" \  -d '{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "veryfront__update_environment_variable",    "arguments": {      "environment_id": "00000000-0000-0000-0000-000000000000",      "key": "string"    }  }}'
{  "jsonrpc": "2.0",  "id": 1,  "result": {    "content": [      {        "type": "text",        "text": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"key\":\"string\",\"value\":\"********\",\"has_value\":false}"      }    ],    "structuredContent": {      "id": "00000000-0000-0000-0000-000000000000",      "key": "string",      "value": "********",      "has_value": false    }  }}

The tool ran; its output is result.structuredContent.