Add asynchronous machine over and out to shared MCP

This commit is contained in:
Александр Петров
2026-09-17 23:32:46 +03:00
parent 259c782190
commit a8d0692eb2
15 changed files with 241 additions and 19 deletions
+10
View File
@@ -193,6 +193,16 @@ def make_server(client: McpSession | ManagedMcpSession,
"""Выполнить 1..64 машинных инструкций Z80 и вернуть текущую позицию."""
return client.step_instruction(count)
@tool()
def step_over_instruction(count: int = 1) -> dict[str, Any]:
"""Перешагнуть 1..64 машинных инструкций Z80 (вызовы — целиком)."""
return client.step_over_instruction(count)
@tool()
def step_out_instruction() -> dict[str, Any]:
"""Выйти из текущего машинного frame Z80; C source-step не используется."""
return client.step_out_instruction()
@tool()
def step_source(kind: str = 'into') -> dict[str, Any]:
"""Начать асинхронный C-шаг: into, over или out; результат в recent_events."""