MCPcopy Create free account
hub / github.com/modelscope/ms-agent / mount_skill_directory

Method mount_skill_directory

ms_agent/skill/container.py:436–447  ·  view source on GitHub ↗

Mount a skill directory for sandbox access. Args: skill_id: Unique identifier for the skill. skill_dir: Path to the skill directory.

(self, skill_id: str, skill_dir: Union[str,
                                                                    Path])

Source from the content-addressed store, hash-verified

434 return self._sandbox
435
436 def mount_skill_directory(self, skill_id: str, skill_dir: Union[str,
437 Path]):
438 """
439 Mount a skill directory for sandbox access.
440
441 Args:
442 skill_id: Unique identifier for the skill.
443 skill_dir: Path to the skill directory.
444 """
445 self._skill_dirs[skill_id] = str(Path(skill_dir).resolve())
446 # Reset sandbox to recreate with new mount
447 self._sandbox = None
448
449 def get_skill_sandbox_path(self, skill_id: str) -> str:
450 """

Callers 2

_execute_directMethod · 0.80

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected