MCPcopy Create free account
hub / github.com/AutoForgeAI/autoforge / get_project_allowed_commands

Function get_project_allowed_commands

security.py:788–801  ·  view source on GitHub ↗

Get the set of allowed commands for a project. Uses hierarchy resolution from get_effective_commands(). Args: project_dir: Path to the project directory, or None Returns: Set of allowed command names (including patterns)

(project_dir: Optional[Path])

Source from the content-addressed store, hash-verified

786
787
788def get_project_allowed_commands(project_dir: Optional[Path]) -> set[str]:
789 """
790 Get the set of allowed commands for a project.
791
792 Uses hierarchy resolution from get_effective_commands().
793
794 Args:
795 project_dir: Path to the project directory, or None
796
797 Returns:
798 Set of allowed command names (including patterns)
799 """
800 allowed, blocked = get_effective_commands(project_dir)
801 return allowed
802
803
804def get_effective_pkill_processes(project_dir: Optional[Path]) -> set[str]:

Callers

nothing calls this directly

Calls 1

get_effective_commandsFunction · 0.85

Tested by

no test coverage detected