{ "version": 1, "caseName": "conversation-session-mcp-async-startup-wait", "spec": "./test/e2e/conversation-session/plugins/conversation-session-mcp-async-startup-wait.test.ts", "fixtures": [ { "id": "conversation-session-mcp-async-startup-wait-title-sidecar", "description": "本例标题旁路响应。", "metadata": { "kind": "common", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "标题旁路必须有显式响应,避免依赖 legacy fixture 或触发后台网络重试。" }, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["Generate a concise title"] }, "response": { "statusCode": 200, "statusMessage": "OK", "headers": { "content-type": "application/json; charset=utf-8" }, "body": "{\"id\":\"upstream-e2e-title-fixture\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\": \\\"Upstream E2E Fixture\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":125,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}" } }, { "id": "conversation-session-mcp-async-startup-wait-search", "description": "slow server 仍在启动时首个请求已包含 ToolSearch;搜索等待共享连接任务。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "稳定触发 ToolSearch,验证实时搜索等待与真实 stdio 连接;不证明模型自主选择搜索。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_MCP_ASYNC_WAIT"], "bodyIncludes": [ "E2E_MCP_ASYNC_WAIT", "The following MCP servers are still connecting —", "slow", "ToolSearch" ], "bodyExcludes": [ "Generate a concise title", "CRITICAL: Respond with TEXT ONLY", "mcp__slow__ping" ] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_e2e_mcp_async_search", "name": "ToolSearch", "input": { "query": "select:mcp__slow__ping" } } } }, { "id": "conversation-session-mcp-async-startup-wait-ping", "description": "搜索返回 Local 定义后,通过 DeferredToolCall 调用真实 ping。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "验证实时搜索结果进入下一 step,并触发真实 stdio tools/call。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": [ "E2E_MCP_ASYNC_WAIT", "toolu_e2e_mcp_async_search", "", "mcp__slow__ping" ], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_e2e_mcp_async_wait_ping", "name": "DeferredToolCall", "input": { "name": "mcp__slow__ping", "input": { "marker": "E2E_MCP_ASYNC_WAIT" } } } } }, { "id": "conversation-session-mcp-async-startup-wait-final", "description": "消费 slow ping 的真实 tool_result 并完成会话。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "证明就绪后的 MCP 调用结果进入 provider continuation。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": [ "E2E_MCP_ASYNC_WAIT", "toolu_e2e_mcp_async_wait_ping", "E2E_MCP_ASYNC_WAIT_PONG:E2E_MCP_ASYNC_WAIT" ], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": "upstream-e2e-ok" } }, { "id": "mcp-hot-config-search", "description": "现有会话发现并调用热配置新增的 MCP。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证磁盘热更新、真实 stdio 执行和同一 session 的工具投影。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_MCP_HOT_CONFIG"], "bodyIncludes": ["E2E_MCP_HOT_CONFIG", "ToolSearch"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_mcp_hot_search", "name": "ToolSearch", "input": { "query": "select:mcp__hot__ping" } } } }, { "id": "mcp-hot-config-ping", "description": "现有会话发现并调用热配置新增的 MCP。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证磁盘热更新、真实 stdio 执行和同一 session 的工具投影。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": [ "E2E_MCP_HOT_CONFIG", "toolu_mcp_hot_search", "", "mcp__hot__ping" ], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_mcp_hot_ping", "name": "DeferredToolCall", "input": { "name": "mcp__hot__ping", "input": { "marker": "E2E_MCP_HOT_CONFIG" } } } } }, { "id": "mcp-hot-config-final", "description": "现有会话发现并调用热配置新增的 MCP。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证磁盘热更新、真实 stdio 执行和同一 session 的工具投影。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_MCP_HOT_CONFIG", "E2E_MCP_ASYNC_WAIT_PONG:E2E_MCP_HOT_CONFIG"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": "hot-config-ok" } }, { "id": "mcp-remote-ready-search", "description": "远程 MCP 目录保留与恢复执行。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作,验证真实 HTTP/SSE 断流、pending 目录搜索、共享恢复任务及工具执行。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_MCP_REMOTE_READY", "ToolSearch"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "lastUserMessageIncludes": ["E2E_MCP_REMOTE_READY"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_remote_ready_search", "name": "ToolSearch", "input": { "query": "select:mcp__remotehttp__ping,mcp__remotesse__ping" } } } }, { "id": "mcp-remote-ready-final", "description": "远程 MCP 目录保留与恢复执行。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作,验证真实 HTTP/SSE 断流、pending 目录搜索、共享恢复任务及工具执行。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": [ "E2E_MCP_REMOTE_READY", "toolu_remote_ready_search", "", "mcp__remotehttp__ping", "mcp__remotesse__ping" ], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": "remote-ready" } }, { "id": "mcp-remote-recovery-search", "description": "远程 MCP 目录保留与恢复执行。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作,验证真实 HTTP/SSE 断流、pending 目录搜索、共享恢复任务及工具执行。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": [ "E2E_MCP_REMOTE_RECOVERY", "The following MCP servers are still connecting —" ], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "lastUserMessageIncludes": ["E2E_MCP_REMOTE_RECOVERY: Search for both"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_remote_recovery_search", "name": "ToolSearch", "input": { "query": "select:mcp__remotehttp__ping,mcp__remotesse__ping" } } } }, { "id": "mcp-remote-recovery-pings", "description": "远程 MCP 目录保留与恢复执行。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作,验证真实 HTTP/SSE 断流、pending 目录搜索、共享恢复任务及工具执行。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": [ "E2E_MCP_REMOTE_RECOVERY", "toolu_remote_recovery_search", "", "mcp__remotehttp__ping", "mcp__remotesse__ping" ], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "toolUses": [ { "id": "toolu_remote_ping_0", "name": "DeferredToolCall", "input": { "name": "mcp__remotehttp__ping", "input": {} } }, { "id": "toolu_remote_ping_1", "name": "DeferredToolCall", "input": { "name": "mcp__remotesse__ping", "input": {} } } ] } }, { "id": "mcp-remote-recovery-final", "description": "远程 MCP 目录保留与恢复执行。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作,验证真实 HTTP/SSE 断流、pending 目录搜索、共享恢复任务及工具执行。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": [ "E2E_MCP_REMOTE_RECOVERY:remotehttp:pong", "E2E_MCP_REMOTE_RECOVERY:remotesse:pong" ], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": "remote-recovery-ok" } }, { "id": "mcp-native-search", "description": "Native MCP 定义交付与来源移除。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作,验证真实连接和最终 Native HTTP 请求。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_MCP_NATIVE_LOAD"], "bodyIncludes": [], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-search\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"GLM-5.3\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"tool_use\",\"id\":\"toolu_native_search\",\"name\":\"ToolSearch\",\"input\":{}}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"input_json_delta\",\"partial_json\":\"{\\\"query\\\":\\\"select:mcp__native__ping\\\",\\\"max_results\\\":5}\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"tool_use\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-ping", "description": "Native MCP 定义交付与来源移除。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作,验证真实连接和最终 Native HTTP 请求。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_MCP_NATIVE_LOAD", "tool_reference", "toolu_native_search"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-ping\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"GLM-5.3\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"tool_use\",\"id\":\"toolu_native_ping\",\"name\":\"mcp__native__ping\",\"input\":{}}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"input_json_delta\",\"partial_json\":\"{}\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"tool_use\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-done", "description": "Native MCP 定义交付与来源移除。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作,验证真实连接和最终 Native HTTP 请求。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_MCP_REMOTE_RECOVERY:native:pong"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-done\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"GLM-5.3\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"native-loaded\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-resident", "description": "Native 常驻 MCP 定义交付。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作,验证真实连接和最终 Native HTTP 请求。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_MCP_NATIVE_RESIDENT"], "bodyIncludes": [], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-resident\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"GLM-5.3\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"native-resident\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-removed", "description": "Native MCP 定义交付与来源移除。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作,验证真实连接和最终 Native HTTP 请求。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_MCP_NATIVE_REMOVED"], "bodyIncludes": [], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-removed\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"GLM-5.3\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"native-removed\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-cold-check", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "lastUserMessageIncludes": ["E2E_MCP_NATIVE_COLD"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-cold-check\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"tool_use\",\"id\":\"toolu_native_cold_check\",\"name\":\"Bash\",\"input\":{}}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"input_json_delta\",\"partial_json\":\"{\\\"command\\\":\\\"printf 'E2E_MCP_ALIVE'\\\"}\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"tool_use\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-cold-done", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "bodyIncludes": ["E2E_MCP_NATIVE_COLD", "toolu_native_cold_check"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-cold-done\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"native-cold-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-restored-search", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "lastUserMessageIncludes": ["E2E_MCP_NATIVE_RESTORED"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-restored-search\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"tool_use\",\"id\":\"toolu_native_restored_search\",\"name\":\"ToolSearch\",\"input\":{}}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"input_json_delta\",\"partial_json\":\"{\\\"query\\\":\\\"select:mcp__native__ping\\\",\\\"max_results\\\":5}\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"tool_use\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-restored-call", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "bodyIncludes": ["E2E_MCP_NATIVE_RESTORED", "toolu_native_restored_search"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-restored-call\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"tool_use\",\"id\":\"toolu_native_restored_call\",\"name\":\"mcp__native__ping\",\"input\":{}}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"input_json_delta\",\"partial_json\":\"{}\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"tool_use\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-restored-done", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "bodyIncludes": ["E2E_MCP_NATIVE_RESTORED", "toolu_native_restored_call"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-restored-done\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"native-restored-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-expired-call", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "lastUserMessageIncludes": ["E2E_MCP_NATIVE_EXPIRED"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-expired-call\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"tool_use\",\"id\":\"toolu_native_expired_call\",\"name\":\"mcp__native__ping\",\"input\":{}}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"input_json_delta\",\"partial_json\":\"{}\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"tool_use\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-expired-done", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "bodyIncludes": ["E2E_MCP_NATIVE_EXPIRED", "toolu_native_expired_call"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-expired-done\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"native-recovered-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-exhaust-call", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "lastUserMessageIncludes": ["E2E_MCP_NATIVE_EXHAUST"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-exhaust-call\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"tool_use\",\"id\":\"toolu_native_exhaust_call\",\"name\":\"mcp__native__ping\",\"input\":{}}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"input_json_delta\",\"partial_json\":\"{}\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"tool_use\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-exhaust-done", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "bodyIncludes": ["E2E_MCP_NATIVE_EXHAUST", "toolu_native_exhaust_call"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-exhaust-done\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"native-exhaust-started\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-failed-search", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "lastUserMessageIncludes": ["E2E_MCP_NATIVE_FAILED"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-failed-search\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"tool_use\",\"id\":\"toolu_native_failed_search\",\"name\":\"ToolSearch\",\"input\":{}}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"input_json_delta\",\"partial_json\":\"{\\\"query\\\":\\\"select:mcp__native__ping\\\",\\\"max_results\\\":5}\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"tool_use\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-failed-check", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "bodyIncludes": ["E2E_MCP_NATIVE_FAILED", "toolu_native_failed_search"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-failed-check\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"tool_use\",\"id\":\"toolu_native_failed_check\",\"name\":\"Bash\",\"input\":{}}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"input_json_delta\",\"partial_json\":\"{\\\"command\\\":\\\"printf 'E2E_MCP_ALIVE'\\\"}\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"tool_use\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-failed-done", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "bodyIncludes": ["E2E_MCP_NATIVE_FAILED", "toolu_native_failed_check"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-failed-done\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"native-failed-alive\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-plugin-installed-search", "description": "同一对话插件热生命周期。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "lastUserMessageIncludes": ["E2E_MCP_PLUGIN_INSTALLED"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_plugin_installed_search", "name": "ToolSearch", "input": { "query": "select:mcp__plugin_e2e-plugin-lifecycle_lifecycle__version_marker" } } } }, { "id": "mcp-plugin-installed-call", "description": "同一对话插件热生命周期。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "bodyIncludes": ["E2E_MCP_PLUGIN_INSTALLED", "toolu_plugin_installed_search"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_plugin_installed_call", "name": "DeferredToolCall", "input": { "name": "mcp__plugin_e2e-plugin-lifecycle_lifecycle__version_marker", "input": {} } } } }, { "id": "mcp-plugin-installed-done", "description": "同一对话插件热生命周期。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "bodyIncludes": ["E2E_MCP_PLUGIN_INSTALLED", "toolu_plugin_installed_call"] }, "response": { "statusCode": 200, "text": "plugin-installed-ok" } }, { "id": "mcp-plugin-disabled-search", "description": "同一对话插件热生命周期。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "lastUserMessageIncludes": ["E2E_MCP_PLUGIN_DISABLED"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_plugin_disabled_search", "name": "ToolSearch", "input": { "query": "select:mcp__plugin_e2e-plugin-lifecycle_lifecycle__version_marker" } } } }, { "id": "mcp-plugin-disabled-done", "description": "同一对话插件热生命周期。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "bodyIncludes": ["E2E_MCP_PLUGIN_DISABLED", "toolu_plugin_disabled_search"] }, "response": { "statusCode": 200, "text": "plugin-disabled-ok" } }, { "id": "mcp-plugin-enabled-search", "description": "同一对话插件热生命周期。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "lastUserMessageIncludes": ["E2E_MCP_PLUGIN_ENABLED"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_plugin_enabled_search", "name": "ToolSearch", "input": { "query": "select:mcp__plugin_e2e-plugin-lifecycle_lifecycle__version_marker" } } } }, { "id": "mcp-plugin-enabled-call", "description": "同一对话插件热生命周期。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "bodyIncludes": ["E2E_MCP_PLUGIN_ENABLED", "toolu_plugin_enabled_search"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_plugin_enabled_call", "name": "DeferredToolCall", "input": { "name": "mcp__plugin_e2e-plugin-lifecycle_lifecycle__version_marker", "input": {} } } } }, { "id": "mcp-plugin-enabled-done", "description": "同一对话插件热生命周期。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "bodyIncludes": ["E2E_MCP_PLUGIN_ENABLED", "toolu_plugin_enabled_call"] }, "response": { "statusCode": 200, "text": "plugin-enabled-ok" } }, { "id": "mcp-plugin-uninstalled-search", "description": "同一对话插件热生命周期。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "lastUserMessageIncludes": ["E2E_MCP_PLUGIN_UNINSTALLED"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_plugin_uninstalled_search", "name": "ToolSearch", "input": { "query": "select:mcp__plugin_e2e-plugin-lifecycle_lifecycle__version_marker" } } } }, { "id": "mcp-plugin-uninstalled-done", "description": "同一对话插件热生命周期。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "bodyIncludes": ["E2E_MCP_PLUGIN_UNINSTALLED", "toolu_plugin_uninstalled_search"] }, "response": { "statusCode": 200, "text": "plugin-uninstalled-ok" } }, { "id": "mcp-native-protocol-error-call", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作;真实 HTTP 执行后返回同文 JSON-RPC 错误,验证不重放及 Native 错误正文。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "lastUserMessageIncludes": ["E2E_MCP_NATIVE_PROTOCOL_ERROR"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-protocol-error-call\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"tool_use\",\"id\":\"toolu_native_protocol_error_call\",\"name\":\"mcp__native__ping\",\"input\":{}}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"input_json_delta\",\"partial_json\":\"{}\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"tool_use\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-protocol-error-done", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作;真实 HTTP 执行后返回同文 JSON-RPC 错误,验证不重放及 Native 错误正文。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "bodyIncludes": ["E2E_MCP_NATIVE_PROTOCOL_ERROR", "toolu_native_protocol_error_call"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-protocol-error-done\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"native-protocol-error-observed\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-settings-search", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "真实设置探测恢复不干扰现有对话;精确检查 Native 引用、schema、无虚假状态公告与真实调用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "lastUserMessageIncludes": ["E2E_MCP_NATIVE_SETTINGS"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-settings-search\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"tool_use\",\"id\":\"toolu_native_settings_search\",\"name\":\"ToolSearch\",\"input\":{}}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"input_json_delta\",\"partial_json\":\"{\\\"query\\\":\\\"select:mcp__native__ping\\\",\\\"max_results\\\":5}\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"tool_use\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-settings-call", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "真实设置探测恢复不干扰现有对话;精确检查 Native 引用、schema、无虚假状态公告与真实调用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "bodyIncludes": ["E2E_MCP_NATIVE_SETTINGS", "toolu_native_settings_search"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-settings-call\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"tool_use\",\"id\":\"toolu_native_settings_call\",\"name\":\"mcp__native__ping\",\"input\":{}}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"input_json_delta\",\"partial_json\":\"{}\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"tool_use\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-settings-done", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "真实设置探测恢复不干扰现有对话;精确检查 Native 引用、schema、无虚假状态公告与真实调用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "bodyIncludes": ["E2E_MCP_NATIVE_SETTINGS", "toolu_native_settings_call"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-settings-done\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"native-settings-isolated\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-discovery-search", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "lastUserMessageIncludes": ["E2E_MCP_NATIVE_DISCOVERY"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-discovery-search\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"tool_use\",\"id\":\"toolu_native_discovery_search\",\"name\":\"ToolSearch\",\"input\":{}}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"input_json_delta\",\"partial_json\":\"{\\\"query\\\":\\\"select:mcp__native__fresh\\\",\\\"max_results\\\":5}\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"tool_use\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-discovery-call", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "bodyIncludes": ["E2E_MCP_NATIVE_DISCOVERY", "toolu_native_discovery_search"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-discovery-call\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"tool_use\",\"id\":\"toolu_native_discovery_call\",\"name\":\"mcp__native__fresh\",\"input\":{}}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"input_json_delta\",\"partial_json\":\"{}\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"tool_use\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcp-native-discovery-done", "description": "动态 MCP 生命周期回归。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "bodyIncludes": ["E2E_MCP_NATIVE_DISCOVERY", "toolu_native_discovery_call"] }, "response": { "statusCode": 200, "headers": { "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"msg_mcp-native-discovery-done\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"claude-opus-5-5\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":100,\"output_tokens\":0}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"native-discovery-ok\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"output_tokens\":16}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } }, { "id": "mcpw09-seed-a", "description": "MCPW09 建立会话。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_MCPW09_SEED_A"], "bodyIncludes": ["E2E_MCPW09_SEED_A"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": "mcpw09-seed-a" } }, { "id": "mcpw09-seed-b", "description": "MCPW09 建立会话。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_MCPW09_SEED_B"], "bodyIncludes": ["E2E_MCPW09_SEED_B"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": "mcpw09-seed-b" } }, { "id": "mcpw09-shared-b-search", "description": "MCPW09 搜索热新增的 MCP 工具。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_MCPW09_SHARED_B"], "bodyIncludes": ["E2E_MCPW09_SHARED_B", "ToolSearch"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_mcpw09_shared-b_search", "name": "ToolSearch", "input": { "query": "select:mcp__shared09__ping" } } } }, { "id": "mcpw09-shared-b-ping", "description": "MCPW09 调用热新增的 MCP 工具。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": [ "E2E_MCPW09_SHARED_B", "toolu_mcpw09_shared-b_search", "", "mcp__shared09__ping" ], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_mcpw09_shared-b_ping", "name": "DeferredToolCall", "input": { "name": "mcp__shared09__ping", "input": { "marker": "E2E_MCPW09_SHARED_B" } } } } }, { "id": "mcpw09-shared-b-final", "description": "MCPW09 收到真实调用结果。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_MCPW09_SHARED_B", "E2E_MCP_ASYNC_WAIT_PONG:E2E_MCPW09_SHARED_B"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": "mcpw09-shared-b-ok" } }, { "id": "mcpw09-shared-a-search", "description": "MCPW09 搜索热新增的 MCP 工具。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_MCPW09_SHARED_A"], "bodyIncludes": ["E2E_MCPW09_SHARED_A", "ToolSearch"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_mcpw09_shared-a_search", "name": "ToolSearch", "input": { "query": "select:mcp__shared09__ping" } } } }, { "id": "mcpw09-shared-a-ping", "description": "MCPW09 调用热新增的 MCP 工具。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": [ "E2E_MCPW09_SHARED_A", "toolu_mcpw09_shared-a_search", "", "mcp__shared09__ping" ], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_mcpw09_shared-a_ping", "name": "DeferredToolCall", "input": { "name": "mcp__shared09__ping", "input": { "marker": "E2E_MCPW09_SHARED_A" } } } } }, { "id": "mcpw09-shared-a-final", "description": "MCPW09 收到真实调用结果。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_MCPW09_SHARED_A", "E2E_MCP_ASYNC_WAIT_PONG:E2E_MCPW09_SHARED_A"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": "mcpw09-shared-a-ok" } }, { "id": "mcpw09-late-b-search", "description": "MCPW09 搜索热新增的 MCP 工具。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_MCPW09_LATE_B"], "bodyIncludes": ["E2E_MCPW09_LATE_B", "ToolSearch"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_mcpw09_late-b_search", "name": "ToolSearch", "input": { "query": "select:mcp__late09__ping" } } } }, { "id": "mcpw09-late-b-ping", "description": "MCPW09 调用热新增的 MCP 工具。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": [ "E2E_MCPW09_LATE_B", "toolu_mcpw09_late-b_search", "", "mcp__late09__ping" ], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_mcpw09_late-b_ping", "name": "DeferredToolCall", "input": { "name": "mcp__late09__ping", "input": { "marker": "E2E_MCPW09_LATE_B" } } } } }, { "id": "mcpw09-late-b-final", "description": "MCPW09 收到真实调用结果。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_MCPW09_LATE_B", "E2E_MCP_ASYNC_WAIT_PONG:E2E_MCPW09_LATE_B"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": "mcpw09-late-b-ok" } }, { "id": "mcpw10-first-search", "description": "MCPW10 首轮搜索需要 OAuth 的 MCP 工具。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证调用期 OAuth 失效后立即提示重新授权,设置页授权后同一任务恢复调用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_MCPW10_FIRST"], "bodyIncludes": ["E2E_MCPW10_FIRST", "ToolSearch"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_mcpw10_first_search", "name": "ToolSearch", "input": { "query": "select:mcp__oauthmcp__oauth_ping" } } } }, { "id": "mcpw10-first-call", "description": "MCPW10 首轮用已有凭据调用 MCP 工具。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证调用期 OAuth 失效后立即提示重新授权,设置页授权后同一任务恢复调用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": [ "E2E_MCPW10_FIRST", "toolu_mcpw10_first_search", "", "mcp__oauthmcp__oauth_ping" ], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_mcpw10_first_call", "name": "DeferredToolCall", "input": { "name": "mcp__oauthmcp__oauth_ping", "input": { "marker": "E2E_MCPW10_FIRST" } } } } }, { "id": "mcpw10-first-final", "description": "MCPW10 首轮收到真实调用结果。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证调用期 OAuth 失效后立即提示重新授权,设置页授权后同一任务恢复调用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_MCPW10_FIRST", "E2E_MCP_OAUTH_PONG:E2E_MCPW10_FIRST"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": "mcpw10-first-ok" } }, { "id": "mcpw10-revoked-call", "description": "MCPW10 token 吊销后再次调用已加载的 MCP 工具。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证调用期 OAuth 失效后立即提示重新授权,设置页授权后同一任务恢复调用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_MCPW10_REVOKED"], "bodyIncludes": ["E2E_MCPW10_REVOKED"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_mcpw10_revoked_call", "name": "DeferredToolCall", "input": { "name": "mcp__oauthmcp__oauth_ping", "input": { "marker": "E2E_MCPW10_REVOKED" } } } } }, { "id": "mcpw10-revoked-final", "description": "MCPW10 收到调用期授权的工具结果;结果原文由 case 断言。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证调用期 OAuth 失效后立即提示重新授权,设置页授权后同一任务恢复调用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_MCPW10_REVOKED", "toolu_mcpw10_revoked_call"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": "mcpw10-revoked-ok" } }, { "id": "mcpw10-reauthorized-call", "description": "MCPW10 设置页重新授权后同一任务再次调用 MCP 工具。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证调用期 OAuth 失效后立即提示重新授权,设置页授权后同一任务恢复调用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_MCPW10_REAUTHORIZED"], "bodyIncludes": ["E2E_MCPW10_REAUTHORIZED"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_mcpw10_reauthorized_call", "name": "DeferredToolCall", "input": { "name": "mcp__oauthmcp__oauth_ping", "input": { "marker": "E2E_MCPW10_REAUTHORIZED" } } } } }, { "id": "mcpw10-reauthorized-final", "description": "MCPW10 重新授权后收到真实调用结果。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证调用期 OAuth 失效后立即提示重新授权,设置页授权后同一任务恢复调用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_MCPW10_REAUTHORIZED", "E2E_MCP_OAUTH_PONG:E2E_MCPW10_REAUTHORIZED"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": "mcpw10-reauthorized-ok" } }, { "id": "mcpw11-wait", "description": "MCPW11 ToolSearch 关闭时,首个请求带 WaitForMcpServers;模型等待仍在连接的 server。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证 ToolSearch 关闭时 WaitForMcpServers 的固定定义、等待结果与锁存,以及就绪后的真实 stdio 调用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_MCPW11_WAIT"], "bodyIncludes": ["E2E_MCPW11_WAIT", "WaitForMcpServers"], "bodyExcludes": [ "Generate a concise title", "CRITICAL: Respond with TEXT ONLY", "toolu_mcpw11_wait" ] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_mcpw11_wait", "name": "WaitForMcpServers", "input": { "servers": ["slow11"] } } } }, { "id": "mcpw11-ping", "description": "MCPW11 等待结果之后,直接调用已就绪 server 的工具。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证 ToolSearch 关闭时 WaitForMcpServers 的固定定义、等待结果与锁存,以及就绪后的真实 stdio 调用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_MCPW11_WAIT", "toolu_mcpw11_wait", "mcp__slow11__ping"], "bodyExcludes": [ "Generate a concise title", "CRITICAL: Respond with TEXT ONLY", "toolu_mcpw11_ping" ] }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_mcpw11_ping", "name": "mcp__slow11__ping", "input": { "marker": "E2E_MCPW11_WAIT" } } } }, { "id": "mcpw11-final", "description": "MCPW11 收到真实调用结果。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "控制模型动作,验证 ToolSearch 关闭时 WaitForMcpServers 的固定定义、等待结果与锁存,以及就绪后的真实 stdio 调用。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["toolu_mcpw11_ping", "E2E_MCP_ASYNC_WAIT_PONG:E2E_MCPW11_WAIT"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": "mcpw11-ok" } } ] }