| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784 |
- {
- "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",
- "<function>",
- "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",
- "<function>",
- "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",
- "<function>",
- "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",
- "<function>",
- "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",
- "<function>",
- "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",
- "<function>",
- "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",
- "<function>",
- "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",
- "<function>",
- "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"
- }
- }
- ]
- }
|