Skip to content

Response message due to Parse Error has invalid id #201

Closed
@emicklei

Description

@emicklei

When a MCP server is misbehaving (typically during development) and there are issues with message processing or response writing,
an Error response is written, see

response := createErrorResponse(nil, mcp.PARSE_ERROR, "Parse error")

(v0.23.0)

The createErrorResponse is called with a nil for id which is invalid according to the specification ; this causes errors in the client (when that is validating the message) and therefore hides the actual cause.

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