8000 clipboard_read has no size cap · Issue #10 · Mnehmos/mnehmos.ooda.mcp · GitHub
[go: up one dir, main page]

Skip to content

clipboard_read has no size cap #10

Open

Description

@Mnehmos

clipboard_read returns the entire clipboard with no truncation and no size parameter.

Repro

During a playtest, a single clipboard_read() call returned 21,608 characters straight into the model context. There is no maxChars argument and no truncation notice.

Impact

Every other read path in this server is bounded — read_file truncates at 500 lines, cliOutput.maxOutputChars is 50,000, batchOperations.maxAggregateChars is 200,000. Clipboard is the one unbounded ingress, and clipboards routinely hold whole documents.

Fix

Add a maxChars parameter (default from config, e.g. clipboard.maxChars: 20000), return truncated: true plus the original length when the cap is hit, and note the cap in the tool description.

Activity

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

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0