Skip to content

Truncate long values in client metadata logging #318

Description

@coderabbitai

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions