Skip to content

Ping request from non-Dart client leads to error response. #238

@ksokolovskyi

Description

@ksokolovskyi

Steps to reproduce

  1. Use dart_mcp: 0.3.2
  2. Build any MCP server from the dart_mcp/example directory (e.g. `dart_mcp/example/tools_server.dart)
  3. Connect the built server to any non-Dart MCP Client
  4. Send a ping request, and you will receive the error

Expected results

An empty response is getting received.

Actual results

Error response is getting received.

{
   "error": "MCP error -32000: type 'CastMap<String, dynamic, String, Object?>' is not a subtype of type 'Null' in   type cast"
}

Screenshots or Video

ping.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    package:dart_mcptype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions