Description
Implement truncation for long values in client metadata fields when logging tool invocations to prevent log inflation and improve readability.
Scope
Apply truncation to all client metadata fields logged in tool invocation messages:
client_name
client_version
protocol_version
meta_dict (all values within the dictionary)
Location
File: blockscout_mcp_server/tools/decorators.py
Lines: 42-49 (log message construction in log_tool_invocation decorator)
Context
Related to PR #316 discussion about logging the _meta field from MCP request context.
Backlinks
Description
Implement truncation for long values in client metadata fields when logging tool invocations to prevent log inflation and improve readability.
Scope
Apply truncation to all client metadata fields logged in tool invocation messages:
client_nameclient_versionprotocol_versionmeta_dict(all values within the dictionary)Location
File:
blockscout_mcp_server/tools/decorators.pyLines: 42-49 (log message construction in
log_tool_invocationdecorator)Context
Related to PR #316 discussion about logging the
_metafield from MCP request context.Backlinks
_metafrom request context #316_metafrom request context #316 (comment)