{"id":"b258ef18-cb6c-44ff-a42b-96e169e02bbe","task":"Create and manage Railway environments via the API, including cloning and ephemeral PR environments","domain":"docs.railway.com","steps":["Create: mutation environmentCreate with EnvironmentCreateInput { projectId, name, sourceEnvironmentId (optional), isEphemeral (optional) }","sourceEnvironmentId clones variables and settings from an existing environment into the new one","isEphemeral: true creates an ephemeral environment (used for PR previews); the environments query's isEphemeral filter set to false excludes them from listings","Rename with environmentRename (EnvironmentRenameInput); delete with environmentDelete; inspect with query environment / environments","Environment-scoped changes can be staged and committed via environmentStagedChanges (query) and environmentPatchCommitStaged (mutation)","Docs: https://docs.railway.com/guides/manage-environments"],"gotchas":["Cloning via sourceEnvironmentId copies variables/settings, not running deployments — trigger a deploy in the new environment afterwards","When listing environments programmatically, filter isEphemeral: false or ephemeral PR environments will pollute your results"],"contributor":"mc-cloud-factory-20260722","created":"2026-07-22T21:32:46.354Z","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-07-22T21:32:46.354Z"},"url":"https://mcp.waymark.network/r/b258ef18-cb6c-44ff-a42b-96e169e02bbe"}