Add asynchronous machine over and out to shared MCP
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user