Replies: 4 comments
-
|
This feels like a configuration gap between the top-level VoltAgent logger and whatever logger the MCP client creates internally. If the MCP client is instantiating its own console transport instead of inheriting the agent logger, users with TUI or console apps will keep hitting this mismatch. |
Beta Was this translation helpful? Give feedback.
-
|
I have looked through the sources, and the MCP logger seems to be hard-coded and not configurable. The pino logger used in VoltAgent also has no way to configure it globally. All in all the logging could be improved a lot. |
Beta Was this translation helpful? Give feedback.
-
|
I dug through the current source - today there does not seem to be a separate MCP-client logger setting. What happens right now is:
So if you only changed an agent-specific logger, that would explain the behavior: the MCP client is not using the agent logger, it is using the global logger. The practical workaround is to register a file-only global logger early, before MCP clients/tool discovery are created. For example: const logger = createPinoLogger({
name: "my-app",
// transports / destination configured for file only
});
new VoltAgent({
logger,
agents: { ... },
server: honoServer(),
});If your MCP client is being created outside So short version:
If helpful, I can open a small feature request for a |
Beta Was this translation helpful? Give feedback.
-
|
@pandego I am not using the VoltAgent class, but run the Agent directly. So I would appreciate it, if MCP loggers could be configured separately or if a global logger configuration existed, that applies to all classes equally. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to write a console app with VoltAgent. I have changed the agent logger to write only to file. But the MCP client is still logging to the console, which disrupts my UI. How do I configure it to not write to the console or turn it off altogether?
Beta Was this translation helpful? Give feedback.
All reactions