MCPpre-alphaAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

libtmux_mcp.middleware.AuditMiddleware

class libtmux_mcp.middleware.AuditMiddleware
Bases:
  • Middleware

Emit a structured log record per tool invocation.

Description#

Records carry: tool name, outcome (ok/error), duration in ms, error type on failure, the fastmcp client_id / request_id when available, and a redacted argument summary. The logger name is libtmux_mcp.audit by default so operators can route it independently (e.g. to a JSON file) without touching the module libtmux_mcp logger.

Members2#

Esc

Type to search.

Reference previewOpen reference