Update environment

Update an environment. Requires project.environments.manage.

Arguments

  • project_referencestring

    Project ID or slug

  • environment_idstring · uuidrequired

    Environment ID

  • namestring

    New environment name

  • protectedboolean

    Whether the environment is protected

  • variablesarray of object

    Atomic variable upserts in this environment. Existing keys retain their IDs; omitted keys remain unchanged and returned values are masked. A non-empty list also requires project.env_vars.write.

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",    "arguments": {      "environment_id": "00000000-0000-0000-0000-000000000000"    }  }}'
{  "jsonrpc": "2.0",  "id": 1,  "result": {    "content": [      {        "type": "text",        "text": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"name\":\"string\",\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"protected\":false,\"domains\":[\"string\"],\"environment_variables\":[{\"id\":\"string\",\"key\":\"string\",\"value\":\"********\",\"has_value\":false}]}"      }    ],    "structuredContent": {      "id": "00000000-0000-0000-0000-000000000000",      "name": "string",      "project_id": "00000000-0000-0000-0000-000000000000",      "protected": false,      "domains": [        "string"      ],      "environment_variables": [        {          "id": "string",          "key": "string",          "value": "********",          "has_value": false        }      ]    }  }}

The tool ran; its output is result.structuredContent.