Skip to content

mcp-session config Merge uses naked type assertions #4478

Description

@btlqql

Problem

plugins/golang-filter/mcp-session/config.go Parser.Merge does parent.(*config) and child.(*config) without a comma-ok check. A nil or unexpected parent/child type panics during filter chain config merging.

Expected

Use comma-ok assertions with a safe fallback.

Metadata

Metadata

Assignees

No one assigned

    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