MCPcopy Create free account
hub / github.com/bugy/script-server / __replace_secure_variables

Method __replace_secure_variables

src/execution/executor.py:122–131  ·  view source on GitHub ↗
(self, output)

Source from the content-addressed store, hash-verified

120 return word_replacements
121
122 def __replace_secure_variables(self, output):
123 result = output
124
125 replacements = self.secure_replacements
126
127 if replacements:
128 for word, replacement in replacements.items():
129 result = re.sub(word, replacement, result)
130
131 return result
132
133 def get_secure_command(self):
134 audit_script_args = build_command_args(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected