Skip to content

Increase default child process maxBuffer, and make configurable #88

Description

@jspahrsummers

From https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback:

maxBuffer Largest amount of data in bytes allowed on stdout or stderr. If exceeded, the child process is terminated and any output is truncated. See caveat at maxBuffer and Unicode. Default: 1024 * 1024.

This (1 MiB) is a pretty low default for MCP on stdio. If exceeded, you'll see an error like the following:

stdout maxBuffer length exceeded

We probably want to bump the default, and make it overridable.

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

    P3Nice to haves, rare edge casesenhancementRequest for a new feature that's not currently supportedneeds decisionIssue is actionable, needs maintainer decision on whether to implement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions