Skip to main content

Module log

Module log 

Source
Expand description

Log messages servers send with notifications/message, appended to mcp.log in the agent directory and rotated to mcp.log.1 past 5 MB. Port of extensions/mcp/log.ts in pi v1.0.0.

Structs§

Log
Appends server log messages to one file and ignores failures.

Functions§

format_message
One log line: time, server, level, logger and data, with continuation lines indented.