fixed deprecated set_variable in mcp