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

Method copy

src/tool/server.py:151–168  ·  view source on GitHub ↗

Copy an existing tool Args: tool_name: Name of the tool to copy new_name: New name for the copied tool. If None, uses original name. new_version: New version for the copied tool. If None, increments version. **override_config: Configur

(self, tool_name: str, new_name: Optional[str] = None,
                  new_version: Optional[str] = None, **override_config)

Source from the content-addressed store, hash-verified

149 return tool_config
150
151 async def copy(self, tool_name: str, new_name: Optional[str] = None,
152 new_version: Optional[str] = None, **override_config) -> ToolConfig:
153 """Copy an existing tool
154
155 Args:
156 tool_name: Name of the tool to copy
157 new_name: New name for the copied tool. If None, uses original name.
158 new_version: New version for the copied tool. If None, increments version.
159 **override_config: Configuration overrides
160
161 Returns:
162 ToolConfig: New tool configuration
163 """
164 tool_config = await self.tool_context_manager.copy(
165 tool_name, new_name, new_version, **override_config
166 )
167 self._registered_configs[tool_config.name] = tool_config
168 return tool_config
169
170 async def unregister(self, tool_name: str) -> bool:
171 """Unregister a tool

Callers 15

_prepare_chart_dataMethod · 0.45
flush_eval_queueMethod · 0.45
_cal_timeMethod · 0.45
_cal_labelMethod · 0.45
_init_assets_dataMethod · 0.45
_cal_timeMethod · 0.45
_cal_labelMethod · 0.45
_kmidMethod · 0.45
_klenMethod · 0.45
_kupMethod · 0.45
_klowMethod · 0.45

Calls

no outgoing calls

Tested by 5

__init__Method · 0.36
calculate_sigmaMethod · 0.36
_calculate_indicatorsMethod · 0.36
_update_cacheMethod · 0.36