resourceNotFound

Build a "resource not found" error whose code is selected for the negotiated protocol version: draft aligns it to invalidParams (-32602), while earlier versions use the MCP-specific -32002 (see versions.resourceNotFoundCode).

  1. McpException resourceNotFound(string uri, Json data)
  2. McpException resourceNotFound(string uri, ProtocolVersion v, Json data)
    @safe @safe pure nothrow
    resourceNotFound
    (
    string uri
    ,,
    Json data = Json.undefined
    )