MCPcopy
hub / github.com/dagger/container-use / CreateEnvironment

Method CreateEnvironment

environment/integration/helpers.go:230–234  ·  view source on GitHub ↗

CreateEnvironment mirrors environment_create MCP tool behavior

(title, explanation string)

Source from the content-addressed store, hash-verified

228
229// CreateEnvironment mirrors environment_create MCP tool behavior
230func (u *UserActions) CreateEnvironment(title, explanation string) *environment.Environment {
231 env, err := u.repo.Create(u.ctx, u.dag, title, explanation, "HEAD")
232 require.NoError(u.t, err, "Create environment should succeed")
233 return env
234}
235
236// UpdateEnvironment mirrors environment_update MCP tool behavior
237func (u *UserActions) UpdateEnvironment(envID, title, explanation string, config *environment.EnvironmentConfig) {

Callers 15

TestRepositoryCreateFunction · 0.45
TestRepositoryGetFunction · 0.45
TestRepositoryListFunction · 0.45
TestRepositoryDeleteFunction · 0.45
TestRepositoryCheckoutFunction · 0.45
TestRepositoryLogFunction · 0.45
TestRepositoryDiffFunction · 0.45
TestRepositoryMergeFunction · 0.45
TestRepositoryApplyFunction · 0.45

Calls 1

CreateMethod · 0.80

Tested by 15

TestRepositoryCreateFunction · 0.36
TestRepositoryGetFunction · 0.36
TestRepositoryListFunction · 0.36
TestRepositoryDeleteFunction · 0.36
TestRepositoryCheckoutFunction · 0.36
TestRepositoryLogFunction · 0.36
TestRepositoryDiffFunction · 0.36
TestRepositoryMergeFunction · 0.36
TestRepositoryApplyFunction · 0.36