MCPcopy
hub / github.com/StructuredLabs/preswald / run_sync

Method run_sync

preswald/engine/runner.py:300–309  ·  view source on GitHub ↗

Run the script synchronously for CLI tools like export.

(self, script_path: str)

Source from the content-addressed store, hash-verified

298 logger.debug("[ScriptRunner] Restored stdout")
299
300 def run_sync(self, script_path: str):
301 """Run the script synchronously for CLI tools like export."""
302 import asyncio
303
304 self.script_path = script_path
305 self._state = ScriptState.RUNNING
306 self._run_count = 1
307
308 # block on the async `run_script()` method
309 asyncio.run(self.run_script())
310
311 async def run_script(self):
312 """

Callers 1

render_onceFunction · 0.95

Calls 1

run_scriptMethod · 0.95

Tested by

no test coverage detected