Expose owned C breakpoints through shared MCP session

This commit is contained in:
Александр Петров
2026-09-17 23:03:59 +03:00
parent 0ade3b4821
commit 113d468c48
12 changed files with 78 additions and 16 deletions
+5
View File
@@ -143,6 +143,11 @@ def make_server(client: McpSession | ManagedMcpSession,
"""Поставить личную точку по имени C-функции."""
return client.break_function(name)
@tool(annotations=reading)
def list_breakpoints() -> dict[str, Any]:
"""Читать C-точки всех владельцев с логическими ID и условиями банка."""
return client.list_breakpoints()
@tool()
def clear_breakpoint(identifier: int) -> dict[str, Any]:
"""Удалить свою логическую точку по ID; чужие точки отклоняются."""