{
  "transport": "stdio",
  "wire": [
    {
      "direction": "client-to-server",
      "message": {
        "method": "initialize",
        "params": {
          "protocolVersion": "2025-11-25",
          "capabilities": {},
          "clientInfo": {
            "name": "opx-fixture-client",
            "version": "0.1.0"
          }
        },
        "jsonrpc": "2.0",
        "id": 0
      }
    },
    {
      "direction": "server-to-client",
      "message": {
        "jsonrpc": "2.0",
        "id": 0,
        "result": {
          "protocolVersion": "2025-11-25",
          "capabilities": {
            "tools": {
              "listChanged": true
            }
          },
          "serverInfo": {
            "name": "inventory-mcp-server",
            "version": "0.1.0"
          }
        }
      }
    },
    {
      "direction": "client-to-server",
      "message": {
        "method": "notifications/initialized",
        "jsonrpc": "2.0"
      }
    },
    {
      "direction": "client-to-server",
      "message": {
        "method": "tools/list",
        "jsonrpc": "2.0",
        "id": 1
      }
    },
    {
      "direction": "server-to-client",
      "message": {
        "jsonrpc": "2.0",
        "id": 1,
        "result": {
          "tools": [
            {
              "name": "inventory_lookup",
              "title": "Look up fixture inventory",
              "description": "Read stock for one local fixture SKU. A missing SKU returns status not_found and units null; zero units means the item exists but is out of stock.",
              "inputSchema": {
                "$schema": "http://json-schema.org/draft-07/schema#",
                "type": "object",
                "properties": {
                  "sku": {
                    "type": "string",
                    "pattern": "^[A-Z][0-9]{3}$",
                    "description": "One uppercase letter and three digits, for example A001."
                  }
                },
                "required": [
                  "sku"
                ],
                "additionalProperties": false
              },
              "annotations": {
                "readOnlyHint": true,
                "destructiveHint": false,
                "idempotentHint": true,
                "openWorldHint": false
              },
              "execution": {
                "taskSupport": "forbidden"
              },
              "outputSchema": {
                "$schema": "http://json-schema.org/draft-07/schema#",
                "type": "object",
                "properties": {
                  "sku": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "found",
                      "not_found"
                    ]
                  },
                  "units": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "sku",
                  "status",
                  "units"
                ],
                "additionalProperties": false
              }
            }
          ]
        }
      }
    },
    {
      "direction": "client-to-server",
      "message": {
        "method": "tools/call",
        "params": {
          "name": "inventory_lookup",
          "arguments": {
            "sku": "A001"
          }
        },
        "jsonrpc": "2.0",
        "id": 2
      }
    },
    {
      "direction": "server-to-client",
      "message": {
        "jsonrpc": "2.0",
        "id": 2,
        "result": {
          "content": [
            {
              "type": "text",
              "text": "{\"sku\":\"A001\",\"status\":\"found\",\"units\":7}"
            }
          ],
          "structuredContent": {
            "sku": "A001",
            "status": "found",
            "units": 7
          }
        }
      }
    },
    {
      "direction": "client-to-server",
      "message": {
        "method": "tools/call",
        "params": {
          "name": "inventory_lookup",
          "arguments": {
            "sku": "B002"
          }
        },
        "jsonrpc": "2.0",
        "id": 3
      }
    },
    {
      "direction": "server-to-client",
      "message": {
        "jsonrpc": "2.0",
        "id": 3,
        "result": {
          "content": [
            {
              "type": "text",
              "text": "{\"sku\":\"B002\",\"status\":\"found\",\"units\":0}"
            }
          ],
          "structuredContent": {
            "sku": "B002",
            "status": "found",
            "units": 0
          }
        }
      }
    },
    {
      "direction": "client-to-server",
      "message": {
        "method": "tools/call",
        "params": {
          "name": "inventory_lookup",
          "arguments": {
            "sku": "C003"
          }
        },
        "jsonrpc": "2.0",
        "id": 4
      }
    },
    {
      "direction": "server-to-client",
      "message": {
        "jsonrpc": "2.0",
        "id": 4,
        "result": {
          "content": [
            {
              "type": "text",
              "text": "{\"sku\":\"C003\",\"status\":\"not_found\",\"units\":null}"
            }
          ],
          "structuredContent": {
            "sku": "C003",
            "status": "not_found",
            "units": null
          }
        }
      }
    },
    {
      "direction": "client-to-server",
      "message": {
        "method": "tools/call",
        "params": {
          "name": "inventory_lookup",
          "arguments": {
            "sku": 7
          }
        },
        "jsonrpc": "2.0",
        "id": 5
      }
    },
    {
      "direction": "server-to-client",
      "message": {
        "jsonrpc": "2.0",
        "id": 5,
        "result": {
          "content": [
            {
              "type": "text",
              "text": "MCP error -32602: Input validation error: Invalid arguments for tool inventory_lookup: Invalid input: expected string, received number at sku"
            }
          ],
          "isError": true
        }
      }
    },
    {
      "direction": "client-to-server",
      "message": {
        "method": "tools/call",
        "params": {
          "name": "inventory_lookup",
          "arguments": {
            "sku": "a001"
          }
        },
        "jsonrpc": "2.0",
        "id": 6
      }
    },
    {
      "direction": "server-to-client",
      "message": {
        "jsonrpc": "2.0",
        "id": 6,
        "result": {
          "content": [
            {
              "type": "text",
              "text": "MCP error -32602: Input validation error: Invalid arguments for tool inventory_lookup: Invalid string: must match pattern /^[A-Z][0-9]{3}$/ at sku"
            }
          ],
          "isError": true
        }
      }
    },
    {
      "direction": "client-to-server",
      "message": {
        "method": "tools/call",
        "params": {
          "name": "inventory_lookup",
          "arguments": {
            "sku": "A001",
            "update": 99
          }
        },
        "jsonrpc": "2.0",
        "id": 7
      }
    },
    {
      "direction": "server-to-client",
      "message": {
        "jsonrpc": "2.0",
        "id": 7,
        "result": {
          "content": [
            {
              "type": "text",
              "text": "MCP error -32602: Input validation error: Invalid arguments for tool inventory_lookup: Unrecognized key: \"update\""
            }
          ],
          "isError": true
        }
      }
    },
    {
      "direction": "client-to-server",
      "message": {
        "method": "tools/call",
        "params": {
          "name": "inventory_lookup",
          "arguments": {
            "sku": "A001"
          }
        },
        "jsonrpc": "2.0",
        "id": 8
      }
    },
    {
      "direction": "server-to-client",
      "message": {
        "jsonrpc": "2.0",
        "id": 8,
        "result": {
          "content": [
            {
              "type": "text",
              "text": "{\"sku\":\"A001\",\"status\":\"found\",\"units\":7}"
            }
          ],
          "structuredContent": {
            "sku": "A001",
            "status": "found",
            "units": 7
          }
        }
      }
    }
  ],
  "calls": [
    {
      "step": "initialized",
      "server": {
        "name": "inventory-mcp-server",
        "version": "0.1.0"
      },
      "capabilities": {
        "tools": {
          "listChanged": true
        }
      }
    },
    {
      "method": "tools/list",
      "result": {
        "tools": [
          {
            "name": "inventory_lookup",
            "title": "Look up fixture inventory",
            "description": "Read stock for one local fixture SKU. A missing SKU returns status not_found and units null; zero units means the item exists but is out of stock.",
            "inputSchema": {
              "type": "object",
              "properties": {
                "sku": {
                  "type": "string",
                  "pattern": "^[A-Z][0-9]{3}$",
                  "description": "One uppercase letter and three digits, for example A001."
                }
              },
              "required": [
                "sku"
              ],
              "$schema": "http://json-schema.org/draft-07/schema#",
              "additionalProperties": false
            },
            "outputSchema": {
              "type": "object",
              "properties": {
                "sku": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "found",
                    "not_found"
                  ]
                },
                "units": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "sku",
                "status",
                "units"
              ],
              "$schema": "http://json-schema.org/draft-07/schema#",
              "additionalProperties": false
            },
            "annotations": {
              "readOnlyHint": true,
              "destructiveHint": false,
              "idempotentHint": true,
              "openWorldHint": false
            },
            "execution": {
              "taskSupport": "forbidden"
            }
          }
        ]
      }
    },
    {
      "method": "tools/call",
      "arguments": {
        "sku": "A001"
      },
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"sku\":\"A001\",\"status\":\"found\",\"units\":7}"
          }
        ],
        "structuredContent": {
          "sku": "A001",
          "status": "found",
          "units": 7
        }
      }
    },
    {
      "method": "tools/call",
      "arguments": {
        "sku": "B002"
      },
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"sku\":\"B002\",\"status\":\"found\",\"units\":0}"
          }
        ],
        "structuredContent": {
          "sku": "B002",
          "status": "found",
          "units": 0
        }
      }
    },
    {
      "method": "tools/call",
      "arguments": {
        "sku": "C003"
      },
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"sku\":\"C003\",\"status\":\"not_found\",\"units\":null}"
          }
        ],
        "structuredContent": {
          "sku": "C003",
          "status": "not_found",
          "units": null
        }
      }
    },
    {
      "method": "tools/call",
      "arguments": {
        "sku": 7
      },
      "result": {
        "content": [
          {
            "type": "text",
            "text": "MCP error -32602: Input validation error: Invalid arguments for tool inventory_lookup: Invalid input: expected string, received number at sku"
          }
        ],
        "isError": true
      }
    },
    {
      "method": "tools/call",
      "arguments": {
        "sku": "a001"
      },
      "result": {
        "content": [
          {
            "type": "text",
            "text": "MCP error -32602: Input validation error: Invalid arguments for tool inventory_lookup: Invalid string: must match pattern /^[A-Z][0-9]{3}$/ at sku"
          }
        ],
        "isError": true
      }
    },
    {
      "method": "tools/call",
      "arguments": {
        "sku": "A001",
        "update": 99
      },
      "result": {
        "content": [
          {
            "type": "text",
            "text": "MCP error -32602: Input validation error: Invalid arguments for tool inventory_lookup: Unrecognized key: \"update\""
          }
        ],
        "isError": true
      }
    },
    {
      "method": "tools/call",
      "arguments": {
        "sku": "A001"
      },
      "result": {
        "content": [
          {
            "type": "text",
            "text": "{\"sku\":\"A001\",\"status\":\"found\",\"units\":7}"
          }
        ],
        "structuredContent": {
          "sku": "A001",
          "status": "found",
          "units": 7
        }
      }
    }
  ],
  "serverStderr": ""
}
