Expose owned C breakpoints through shared MCP session
This commit is contained in:
@@ -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; чужие точки отклоняются."""
|
||||
|
||||
Reference in New Issue
Block a user