{
  "sourceRepository": "FleetPayLLC/core",
  "sourceCommit": "368eda327e1573949322035b6c131d540fddd20d",
  "package": {
    "name": "laravel/mcp",
    "version": "v0.9.5",
    "commit": "923d8d8cd9ed46766d1a8b5269f8b4afc4c91c53"
  },
  "status": "source-derived-envelope-examples-not-live-transport-validation",
  "sources": [
    {
      "path": "src/app/Mcp/Tools/BaseSupervisorTool.php",
      "sha256": "4a05365a7479f5b86e8074b1a2f3ba16f192015c923588185e6a25c8c772ae81"
    },
    {
      "path": "src/app/Mcp/Tools/Concerns/ResolvesCompany.php",
      "sha256": "7e59b36cf5c2db88b11cf56780fa836b6e3cf418b6a9c8a84f1beb811c1af3ee"
    },
    {
      "path": "src/app/Mcp/Tools/Documents/ListDocumentsTool.php",
      "sha256": "7ccf96ad6e097cf68cd52ad79d57967139d116468d4e1d36d94b8ba9947dc0e9"
    },
    {
      "path": "src/app/Mcp/Tools/Account/GetAccountBalanceTool.php",
      "sha256": "bf3513daafb6a77196e7f7c4161eeac18c25eeed0174dd4b7126e3599bc0550a"
    },
    {
      "path": "src/app/Mcp/Tools/Drivers/GetDriverPaymentsTool.php",
      "sha256": "3f3a0cec1f41fe6495f27408cbcb72137ba6fddd9be46138cb39af99fffc9ff6"
    },
    {
      "path": "src/app/Mcp/Tools/Receivables/ListReceivablesTool.php",
      "sha256": "c146d4664d4bafff993812fea6beb48368810ffdae9d5889208ab5b64719195e"
    },
    {
      "path": "src/composer.lock",
      "sha256": "2fa0ceabd9d4a93f3f6caf9dad7fbb3d6a2e9875e1328fda35e7e0d7b9cf8432"
    },
    {
      "repository": "laravel/mcp",
      "commit": "923d8d8cd9ed46766d1a8b5269f8b4afc4c91c53",
      "path": "src/Response.php",
      "sha256": "5f0c87f9c58f6ff9a6b268d05e7037d7da8404c4dff50b688783b60c7a7dfd2b"
    },
    {
      "repository": "laravel/mcp",
      "commit": "923d8d8cd9ed46766d1a8b5269f8b4afc4c91c53",
      "path": "src/ResponseFactory.php",
      "sha256": "d567025588e5ee2c5f7e7bd1ad44d1b80356efe36279ebc47149304de7692bca"
    },
    {
      "repository": "laravel/mcp",
      "commit": "923d8d8cd9ed46766d1a8b5269f8b4afc4c91c53",
      "path": "src/Server/Methods/CallTool.php",
      "sha256": "9626b343edaf645c3491d191774fc48db8a3f4f629af2facfb9b1ebcb0cfbfa6"
    },
    {
      "repository": "laravel/mcp",
      "commit": "923d8d8cd9ed46766d1a8b5269f8b4afc4c91c53",
      "path": "src/Server/Methods/Concerns/InteractsWithResponses.php",
      "sha256": "d065b140a2ed90b4dee73ad8b085e0d340c76d43a7ab16ea1ccd8acea4943d55"
    },
    {
      "repository": "laravel/mcp",
      "commit": "923d8d8cd9ed46766d1a8b5269f8b4afc4c91c53",
      "path": "src/Server/Content/Text.php",
      "sha256": "c010b6b889bd385ac9b4b66a170a16ff0bb736c8d26b4eca5f790c538a46db05"
    },
    {
      "repository": "laravel/mcp",
      "commit": "923d8d8cd9ed46766d1a8b5269f8b4afc4c91c53",
      "path": "src/Transport/JsonRpcResponse.php",
      "sha256": "ccc1626dd1aebe916f23a086292a79d2128bd18c70896354d580722d336daacf"
    },
    {
      "repository": "laravel/mcp",
      "commit": "923d8d8cd9ed46766d1a8b5269f8b4afc4c91c53",
      "path": "src/Server/ToolInvoker.php",
      "sha256": "5bb09bd6305445ca115c6b640004d82cb2abfaa004e3c0aa2ad122ae90299ae2"
    },
    {
      "repository": "laravel/mcp",
      "commit": "923d8d8cd9ed46766d1a8b5269f8b4afc4c91c53",
      "path": "src/Server/Concerns/HasMeta.php",
      "sha256": "57d56ce50656e154a4ad155ac213ff3d1bcfe87612fced390e3f48cf8a4724df"
    },
    {
      "repository": "laravel/mcp",
      "commit": "923d8d8cd9ed46766d1a8b5269f8b4afc4c91c53",
      "path": "src/Server/Concerns/HasStructuredContent.php",
      "sha256": "cdae183729cdaa6a9d7ea01888968779460968b3c5acbe181b7755549aa2b6b7"
    },
    {
      "repository": "laravel/mcp",
      "commit": "923d8d8cd9ed46766d1a8b5269f8b4afc4c91c53",
      "path": "src/Exceptions/JsonRpcException.php",
      "sha256": "1c1478acd1ff15e2e4ac954303648b557517ffc6e0d288ef9d916d7f2d6b3009"
    }
  ],
  "notes": [
    "Response::json serializes a JSON payload into a text content block. It does not set structuredContent. The reviewed four execute methods use this response path.",
    "ToolInvoker returns content and isError inside a JSON-RPC result. Response::error sets isError true and its text is not necessarily JSON.",
    "An explicit not_found payload created with Response::json still has isError false; inspect the decoded payload error before treating data as a successful result.",
    "A JSON-RPC error is a different top-level branch. Examples describe reviewed serializer behavior, not HTTP status, headers, OAuth responses, SSE framing or gateway errors.",
    "All examples use a fictional request ID and empty synthetic data. No endpoint, credentials, availability or successful sandbox invocation is asserted."
  ],
  "consumerChecks": [
    "Handle top-level error before accessing result.",
    "Handle result.isError before parsing tool text as a successful payload.",
    "For the reviewed JSON response branch, require an appropriate text content block and parse its JSON with error handling; do not assume every text block is JSON.",
    "Check decoded payload.error before using data/meta. Empty data with error null differs from not_found.",
    "Validate payload fields against the reviewed reference and the actual authorized sandbox; do not conflate a successful tool call with financial settlement or downstream delivery."
  ],
  "examples": {
    "emptySuccess": {
      "jsonrpc": "2.0",
      "id": "example-1",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"data\":[],\"meta\":{\"company_id\":101,\"count\":0},\"error\":null}"
          }
        ],
        "isError": false
      }
    },
    "notFound": {
      "jsonrpc": "2.0",
      "id": "example-1",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"data\":null,\"meta\":null,\"error\":{\"code\":\"not_found\",\"message\":\"Company não encontrada.\"}}"
          }
        ],
        "isError": false
      }
    },
    "toolError": {
      "jsonrpc": "2.0",
      "id": "example-1",
      "result": {
        "content": [
          {
            "type": "text",
            "text": "Parâmetro company_id é obrigatório."
          }
        ],
        "isError": true
      }
    },
    "protocolError": {
      "jsonrpc": "2.0",
      "id": "example-1",
      "error": {
        "code": -32602,
        "message": "Missing [name] parameter."
      }
    }
  }
}
