MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / copy

Method copy

src/environment/server.py:184–204  ·  view source on GitHub ↗

Copy an existing environment Args: env_name: Name of the environment to copy new_name: New name for the copied environment. If None, uses original name. new_version: New version for the copied environment. If None, increments version.

(self, 
                  env_name: str,
                  new_name: Optional[str] = None, 
                  new_version: Optional[str] = None, 
                  new_config: Optional[Dict[str, Any]] = None)

Source from the content-addressed store, hash-verified

182 return env_config
183
184 async def copy(self,
185 env_name: str,
186 new_name: Optional[str] = None,
187 new_version: Optional[str] = None,
188 new_config: Optional[Dict[str, Any]] = None) -> EnvironmentConfig:
189 """Copy an existing environment
190
191 Args:
192 env_name: Name of the environment to copy
193 new_name: New name for the copied environment. If None, uses original name.
194 new_version: New version for the copied environment. If None, increments version.
195 new_config: New configuration dict for the copied environment. If None, uses original config.
196
197 Returns:
198 EnvironmentConfig: New environment configuration
199 """
200 env_config = await self.environment_context_manager.copy(
201 env_name, new_name, new_version, new_config
202 )
203 self._registered_configs[env_config.name] = env_config
204 return env_config
205
206 async def unregister(self, env_name: str) -> bool:
207 """Unregister an environment

Callers 15

add_documentsMethod · 0.45
search_similarMethod · 0.45
delete_documentsMethod · 0.45
get_index_infoMethod · 0.45
clickMethod · 0.45
double_clickMethod · 0.45
scrollMethod · 0.45
type_textMethod · 0.45
waitMethod · 0.45
moveMethod · 0.45
keypressMethod · 0.45
dragMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected