Create environment variable

Create an environment variable; a key that exists already is a conflict. Requires project.env_vars.write.

Arguments

  • project_referencestring

    Project ID or slug

  • environment_idstring · uuidrequired

    Environment ID to create the variable in.

  • keystring · min length 1required

    Variable name (e.g., API_KEY, DATABASE_URL). A key that exists already is refused as a conflict.

  • valuestringrequired

    Variable 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__create_environment_variable",    "arguments": {      "environment_id": "00000000-0000-0000-0000-000000000000",      "key": "A",      "value": "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.