MCPcopy
hub / github.com/msoedov/agentic_security / entrypoint

Method entrypoint

agentic_security/lib.py:202–223  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200 )
201
202 def entrypoint(self):
203 # Load configuration from the default path
204 if not self.has_local_config():
205 print("`agesec.toml` configuration file not found.")
206 exit(1)
207
208 self.load_config(self.default_path)
209 logger.info("Configuration loaded successfully.")
210 print(self.config)
211 datasets = list(self.get_config_value("modules", {}).values())
212 for d in datasets:
213 d["selected"] = True
214 self.scan(
215 llmSpec=self.get_config_value("general.llmSpec"),
216 maxBudget=self.get_config_value("general.maxBudget"),
217 datasets=datasets,
218 max_th=self.get_config_value("general.max_th"),
219 optimize=self.get_config_value("general.optimize"),
220 enableMultiStepAttack=self.get_config_value(
221 "general.enableMultiStepAttack"
222 ),
223 )
224
225 def list_checks(self):
226 """

Callers 1

ciMethod · 0.80

Calls 4

scanMethod · 0.95
has_local_configMethod · 0.80
load_configMethod · 0.80
get_config_valueMethod · 0.80

Tested by

no test coverage detected