yade-mcp-bridge v0.2.0
·
119 commits
to master
since this release
What's New
Non-Blocking Console Mode
start() no longer blocks the YADE Python console. The task pump now runs in a background daemon thread, allowing users to continue typing commands while the bridge is active.
- Background thread pump replaces blocking
while Trueloop - Stdout log handler removed in console mode to avoid prompt interference
- Works in both
autoandconsolemodes
User Console Input Capture
Captures what users type in the YADE IPython console and persists to disk (JSONL format). MCP clients can query the history to understand user intent.
- IPython
pre_run_cell/post_run_cellhooks capture input, output, and errors - JSONL persistence — crash-safe, survives bridge/MCP restarts
- Cursor-based delivery — bridge tracks what was already consumed
- WebSocket handler (
console_history) + push notification (console_entry) - Finds YADE's
InteractiveShellEmbedvia gc scan (YADE doesn't register the singleton)
Other
TeeBuffernow acceptsterminal=Nonefor suppressing terminal output- Fixed incorrect test assertions in
test_tasks.py