emit (unchanged legacy behavior,
[fastmcp]-prefixed strings); the server’s framework logger when attached
via FastMCPOptions.middleware or use(); a plain stderr write. The default
was console.log before v-next, which corrupted the stdio protocol stream.
Implements
Constructors
Constructor
Parameters
emit?
(msg) => void
Returns
LoggingMiddleware
Methods
onRequest()
Parameters
ctx
MiddlewareContext
next
Next
Returns
Promise<unknown>
Implementation of
Middleware.onRequest