Skip to content

Stdio transport writes non-JSON output to stdio #37

@leovalen

Description

@leovalen

The README states " Important: When using STDIO transport, never write to STDOUT in your handlers". However the package itself does just this, on line 83-86 in ServeCommand.php, breaking compatibility with Claude Desktop and probably other MCP clients:

$this->info('Starting MCP server');
        $this->line("  - Transport: STDIO");
        $this->line("  - Communication: STDIN/STDOUT");
        $this->line("  - Mode: JSON-RPC over Standard I/O");

These should probably be written to the log instead.

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