Skip to content

"Starting MCP server with STDIO transport" Log breaks MCP #22

Closed
@parsasi

Description

@parsasi

Hi All,

I just started experiencing the following issue. I will update the issue as I find more info. Thank you for the incredible work!

It seems like the "Starting MCP server with STDIO transport" log entry on the ServeCommand gets picked up by the MCP client (in my case Claude Desktop) as JSON and fails.

The following gets logged in the Claude MCP logs:

2025-06-23T03:35:29.569Z [info] [navtraa] Client transport closed
2025-06-23T03:35:29.570Z [info] [navtraa] Server transport closed
2025-06-23T03:35:29.570Z [info] [navtraa] Client transport closed
2025-06-23T03:35:29.570Z [info] [navtraa] Server transport closed unexpectedly, this is likely due to the process exiting early. If you are developing this MCP server you can add output to stderr (i.e. `console.error('...')` in JavaScript, `print('...', file=sys.stderr)` in python) and it will appear in this log.
2025-06-23T03:35:29.570Z [error] [navtraa] Server disconnected. For troubleshooting guidance, please visit our [debugging documentation](https://modelcontextprotocol.io/docs/tools/debugging)
2025-06-23T03:35:29.612Z [info] [navtraa] Server transport closed
2025-06-23T03:35:29.612Z [info] [navtraa] Client transport closed
2025-06-25T03:45:05.355Z [info] [navtraa] Shutting down server...
2025-06-25T03:45:05.356Z [info] [navtraa] Client transport closed
2025-06-25T03:45:09.567Z [info] [navtraa] Initializing server...
2025-06-25T03:45:09.567Z [info] [navtraa] Generated authentication token for server
2025-06-25T03:45:09.577Z [info] [navtraa] Server started and connected successfully
2025-06-25T03:45:09.578Z [info] [navtraa] Message from client: {"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"claude-ai","version":"0.1.0"}},"jsonrpc":"2.0","id":0}
2025-06-25T03:45:09.864Z [error] [navtraa] Unexpected token 'S', "Starting M"... is not valid JSON

Package version: 2.1.0
Laravel version: 12^
OS: macOs 15.3.1

I'd be happy to make a PR if I knew what the expected behavior is.

Thank you for your help 😊

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