Skip to content

mcp: cap_text_blocks ignores separator newlines (cap bypass via empty blocks) #250

Closed

Description

@ajianaz

mcp.rs:275 the '\n' after each block is not counted toward len — N empty blocks each add 1 uncounted byte... blocks defeat MAX_RESULT_CHARS. Scan 070-rescan #130 (MAJOR security). Fix: count separators toward the cap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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