Skip to content

Feature: Add sensitive data sanitization to ServerSession.Log() #748

@nader-ziada

Description

@nader-ziada

Describe the solution you'd like
The MCP specification logging section states that servers should "Remove sensitive information" and that log messages MUST NOT contain "Credentials or secrets" or "Personal identifying information." Every server implementation will need to implement this same logic. It would be beneficial to have baseline sanitization built into the SDK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalA proposal for an a new API or behavior. See CONTRIBUTING.md.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions