MCPcopy Create free account
hub / github.com/Dizzy-K/AutoPT / _build_command_tool_provider

Function _build_command_tool_provider

config/loader.py:193–199  ·  view source on GitHub ↗
(data: Mapping[str, Any], *, default_executable: str = "")

Source from the content-addressed store, hash-verified

191
192
193def _build_command_tool_provider(data: Mapping[str, Any], *, default_executable: str = "") -> CommandToolProviderConfig:
194 return CommandToolProviderConfig(
195 executable=str(data.get("executable", default_executable)),
196 extra_args=[str(item) for item in data.get("extra_args", [])] if isinstance(data.get("extra_args", []), list) else [],
197 env={str(key): str(value) for key, value in _as_mapping(data.get("env")).items()},
198 working_directory=str(data.get("working_directory", "")),
199 )
200
201
202def _build_tools(raw: Mapping[str, Any]) -> ToolsConfig:

Callers 1

_build_toolsFunction · 0.85

Calls 2

_as_mappingFunction · 0.85

Tested by

no test coverage detected