conversation-session-mcp-async-startup-wait.json 82 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-mcp-async-startup-wait",
  4. "spec": "./test/e2e/conversation-session/plugins/conversation-session-mcp-async-startup-wait.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "conversation-session-mcp-async-startup-wait-title-sidecar",
  8. "description": "本例标题旁路响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "source": "synthetic",
  12. "timingPolicy": "fast-text",
  13. "syntheticReason": "标题旁路必须有显式响应,避免依赖 legacy fixture 或触发后台网络重试。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "statusMessage": "OK",
  23. "headers": {
  24. "content-type": "application/json; charset=utf-8"
  25. },
  26. "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\"}}"
  27. }
  28. },
  29. {
  30. "id": "conversation-session-mcp-async-startup-wait-search",
  31. "description": "slow server 仍在启动时首个请求已包含 ToolSearch;搜索等待共享连接任务。",
  32. "metadata": {
  33. "kind": "main",
  34. "source": "synthetic",
  35. "timingPolicy": "fast-text",
  36. "syntheticReason": "稳定触发 ToolSearch,验证实时搜索等待与真实 stdio 连接;不证明模型自主选择搜索。"
  37. },
  38. "maxMatches": 1,
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/messages",
  42. "lastUserMessageIncludes": ["E2E_MCP_ASYNC_WAIT"],
  43. "bodyIncludes": [
  44. "E2E_MCP_ASYNC_WAIT",
  45. "The following MCP servers are still connecting —",
  46. "slow",
  47. "ToolSearch"
  48. ],
  49. "bodyExcludes": [
  50. "Generate a concise title",
  51. "CRITICAL: Respond with TEXT ONLY",
  52. "mcp__slow__ping"
  53. ]
  54. },
  55. "response": {
  56. "statusCode": 200,
  57. "toolUse": {
  58. "id": "toolu_e2e_mcp_async_search",
  59. "name": "ToolSearch",
  60. "input": {
  61. "query": "select:mcp__slow__ping"
  62. }
  63. }
  64. }
  65. },
  66. {
  67. "id": "conversation-session-mcp-async-startup-wait-ping",
  68. "description": "搜索返回 Local 定义后,通过 DeferredToolCall 调用真实 ping。",
  69. "metadata": {
  70. "kind": "main",
  71. "source": "synthetic",
  72. "timingPolicy": "fast-text",
  73. "syntheticReason": "验证实时搜索结果进入下一 step,并触发真实 stdio tools/call。"
  74. },
  75. "maxMatches": 1,
  76. "match": {
  77. "method": "POST",
  78. "pathIncludes": "/messages",
  79. "bodyIncludes": [
  80. "E2E_MCP_ASYNC_WAIT",
  81. "toolu_e2e_mcp_async_search",
  82. "<function>",
  83. "mcp__slow__ping"
  84. ],
  85. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  86. },
  87. "response": {
  88. "statusCode": 200,
  89. "toolUse": {
  90. "id": "toolu_e2e_mcp_async_wait_ping",
  91. "name": "DeferredToolCall",
  92. "input": {
  93. "name": "mcp__slow__ping",
  94. "input": {
  95. "marker": "E2E_MCP_ASYNC_WAIT"
  96. }
  97. }
  98. }
  99. }
  100. },
  101. {
  102. "id": "conversation-session-mcp-async-startup-wait-final",
  103. "description": "消费 slow ping 的真实 tool_result 并完成会话。",
  104. "metadata": {
  105. "kind": "main",
  106. "source": "synthetic",
  107. "timingPolicy": "fast-text",
  108. "syntheticReason": "证明就绪后的 MCP 调用结果进入 provider continuation。"
  109. },
  110. "maxMatches": 1,
  111. "match": {
  112. "method": "POST",
  113. "pathIncludes": "/messages",
  114. "bodyIncludes": [
  115. "E2E_MCP_ASYNC_WAIT",
  116. "toolu_e2e_mcp_async_wait_ping",
  117. "E2E_MCP_ASYNC_WAIT_PONG:E2E_MCP_ASYNC_WAIT"
  118. ],
  119. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  120. },
  121. "response": {
  122. "statusCode": 200,
  123. "text": "upstream-e2e-ok"
  124. }
  125. },
  126. {
  127. "id": "mcp-hot-config-search",
  128. "description": "现有会话发现并调用热配置新增的 MCP。",
  129. "metadata": {
  130. "kind": "main",
  131. "source": "synthetic",
  132. "timingPolicy": "fast-text",
  133. "syntheticReason": "控制模型动作,验证磁盘热更新、真实 stdio 执行和同一 session 的工具投影。"
  134. },
  135. "maxMatches": 1,
  136. "match": {
  137. "method": "POST",
  138. "pathIncludes": "/messages",
  139. "lastUserMessageIncludes": ["E2E_MCP_HOT_CONFIG"],
  140. "bodyIncludes": ["E2E_MCP_HOT_CONFIG", "ToolSearch"],
  141. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  142. },
  143. "response": {
  144. "statusCode": 200,
  145. "toolUse": {
  146. "id": "toolu_mcp_hot_search",
  147. "name": "ToolSearch",
  148. "input": {
  149. "query": "select:mcp__hot__ping"
  150. }
  151. }
  152. }
  153. },
  154. {
  155. "id": "mcp-hot-config-ping",
  156. "description": "现有会话发现并调用热配置新增的 MCP。",
  157. "metadata": {
  158. "kind": "main",
  159. "source": "synthetic",
  160. "timingPolicy": "fast-text",
  161. "syntheticReason": "控制模型动作,验证磁盘热更新、真实 stdio 执行和同一 session 的工具投影。"
  162. },
  163. "maxMatches": 1,
  164. "match": {
  165. "method": "POST",
  166. "pathIncludes": "/messages",
  167. "bodyIncludes": [
  168. "E2E_MCP_HOT_CONFIG",
  169. "toolu_mcp_hot_search",
  170. "<function>",
  171. "mcp__hot__ping"
  172. ],
  173. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  174. },
  175. "response": {
  176. "statusCode": 200,
  177. "toolUse": {
  178. "id": "toolu_mcp_hot_ping",
  179. "name": "DeferredToolCall",
  180. "input": {
  181. "name": "mcp__hot__ping",
  182. "input": {
  183. "marker": "E2E_MCP_HOT_CONFIG"
  184. }
  185. }
  186. }
  187. }
  188. },
  189. {
  190. "id": "mcp-hot-config-final",
  191. "description": "现有会话发现并调用热配置新增的 MCP。",
  192. "metadata": {
  193. "kind": "main",
  194. "source": "synthetic",
  195. "timingPolicy": "fast-text",
  196. "syntheticReason": "控制模型动作,验证磁盘热更新、真实 stdio 执行和同一 session 的工具投影。"
  197. },
  198. "maxMatches": 1,
  199. "match": {
  200. "method": "POST",
  201. "pathIncludes": "/messages",
  202. "bodyIncludes": ["E2E_MCP_HOT_CONFIG", "E2E_MCP_ASYNC_WAIT_PONG:E2E_MCP_HOT_CONFIG"],
  203. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  204. },
  205. "response": {
  206. "statusCode": 200,
  207. "text": "hot-config-ok"
  208. }
  209. },
  210. {
  211. "id": "mcp-remote-ready-search",
  212. "description": "远程 MCP 目录保留与恢复执行。",
  213. "metadata": {
  214. "kind": "main",
  215. "source": "synthetic",
  216. "timingPolicy": "fast-text",
  217. "syntheticReason": "固定模型动作,验证真实 HTTP/SSE 断流、pending 目录搜索、共享恢复任务及工具执行。"
  218. },
  219. "maxMatches": 1,
  220. "match": {
  221. "method": "POST",
  222. "pathIncludes": "/messages",
  223. "bodyIncludes": ["E2E_MCP_REMOTE_READY", "ToolSearch"],
  224. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  225. "lastUserMessageIncludes": ["E2E_MCP_REMOTE_READY"]
  226. },
  227. "response": {
  228. "statusCode": 200,
  229. "toolUse": {
  230. "id": "toolu_remote_ready_search",
  231. "name": "ToolSearch",
  232. "input": {
  233. "query": "select:mcp__remotehttp__ping,mcp__remotesse__ping"
  234. }
  235. }
  236. }
  237. },
  238. {
  239. "id": "mcp-remote-ready-final",
  240. "description": "远程 MCP 目录保留与恢复执行。",
  241. "metadata": {
  242. "kind": "main",
  243. "source": "synthetic",
  244. "timingPolicy": "fast-text",
  245. "syntheticReason": "固定模型动作,验证真实 HTTP/SSE 断流、pending 目录搜索、共享恢复任务及工具执行。"
  246. },
  247. "maxMatches": 1,
  248. "match": {
  249. "method": "POST",
  250. "pathIncludes": "/messages",
  251. "bodyIncludes": [
  252. "E2E_MCP_REMOTE_READY",
  253. "toolu_remote_ready_search",
  254. "<function>",
  255. "mcp__remotehttp__ping",
  256. "mcp__remotesse__ping"
  257. ],
  258. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  259. },
  260. "response": {
  261. "statusCode": 200,
  262. "text": "remote-ready"
  263. }
  264. },
  265. {
  266. "id": "mcp-remote-recovery-search",
  267. "description": "远程 MCP 目录保留与恢复执行。",
  268. "metadata": {
  269. "kind": "main",
  270. "source": "synthetic",
  271. "timingPolicy": "fast-text",
  272. "syntheticReason": "固定模型动作,验证真实 HTTP/SSE 断流、pending 目录搜索、共享恢复任务及工具执行。"
  273. },
  274. "maxMatches": 1,
  275. "match": {
  276. "method": "POST",
  277. "pathIncludes": "/messages",
  278. "bodyIncludes": [
  279. "E2E_MCP_REMOTE_RECOVERY",
  280. "The following MCP servers are still connecting —"
  281. ],
  282. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  283. "lastUserMessageIncludes": ["E2E_MCP_REMOTE_RECOVERY: Search for both"]
  284. },
  285. "response": {
  286. "statusCode": 200,
  287. "toolUse": {
  288. "id": "toolu_remote_recovery_search",
  289. "name": "ToolSearch",
  290. "input": {
  291. "query": "select:mcp__remotehttp__ping,mcp__remotesse__ping"
  292. }
  293. }
  294. }
  295. },
  296. {
  297. "id": "mcp-remote-recovery-pings",
  298. "description": "远程 MCP 目录保留与恢复执行。",
  299. "metadata": {
  300. "kind": "main",
  301. "source": "synthetic",
  302. "timingPolicy": "fast-text",
  303. "syntheticReason": "固定模型动作,验证真实 HTTP/SSE 断流、pending 目录搜索、共享恢复任务及工具执行。"
  304. },
  305. "maxMatches": 1,
  306. "match": {
  307. "method": "POST",
  308. "pathIncludes": "/messages",
  309. "bodyIncludes": [
  310. "E2E_MCP_REMOTE_RECOVERY",
  311. "toolu_remote_recovery_search",
  312. "<function>",
  313. "mcp__remotehttp__ping",
  314. "mcp__remotesse__ping"
  315. ],
  316. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  317. },
  318. "response": {
  319. "statusCode": 200,
  320. "toolUses": [
  321. {
  322. "id": "toolu_remote_ping_0",
  323. "name": "DeferredToolCall",
  324. "input": {
  325. "name": "mcp__remotehttp__ping",
  326. "input": {}
  327. }
  328. },
  329. {
  330. "id": "toolu_remote_ping_1",
  331. "name": "DeferredToolCall",
  332. "input": {
  333. "name": "mcp__remotesse__ping",
  334. "input": {}
  335. }
  336. }
  337. ]
  338. }
  339. },
  340. {
  341. "id": "mcp-remote-recovery-final",
  342. "description": "远程 MCP 目录保留与恢复执行。",
  343. "metadata": {
  344. "kind": "main",
  345. "source": "synthetic",
  346. "timingPolicy": "fast-text",
  347. "syntheticReason": "固定模型动作,验证真实 HTTP/SSE 断流、pending 目录搜索、共享恢复任务及工具执行。"
  348. },
  349. "maxMatches": 1,
  350. "match": {
  351. "method": "POST",
  352. "pathIncludes": "/messages",
  353. "bodyIncludes": [
  354. "E2E_MCP_REMOTE_RECOVERY:remotehttp:pong",
  355. "E2E_MCP_REMOTE_RECOVERY:remotesse:pong"
  356. ],
  357. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  358. },
  359. "response": {
  360. "statusCode": 200,
  361. "text": "remote-recovery-ok"
  362. }
  363. },
  364. {
  365. "id": "mcp-native-search",
  366. "description": "Native MCP 定义交付与来源移除。",
  367. "metadata": {
  368. "kind": "main",
  369. "source": "synthetic",
  370. "timingPolicy": "fast-text",
  371. "syntheticReason": "固定模型动作,验证真实连接和最终 Native HTTP 请求。"
  372. },
  373. "maxMatches": 1,
  374. "match": {
  375. "method": "POST",
  376. "pathIncludes": "/messages",
  377. "lastUserMessageIncludes": ["E2E_MCP_NATIVE_LOAD"],
  378. "bodyIncludes": [],
  379. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  380. },
  381. "response": {
  382. "statusCode": 200,
  383. "headers": {
  384. "content-type": "text/event-stream; charset=utf-8"
  385. },
  386. "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"
  387. }
  388. },
  389. {
  390. "id": "mcp-native-ping",
  391. "description": "Native MCP 定义交付与来源移除。",
  392. "metadata": {
  393. "kind": "main",
  394. "source": "synthetic",
  395. "timingPolicy": "fast-text",
  396. "syntheticReason": "固定模型动作,验证真实连接和最终 Native HTTP 请求。"
  397. },
  398. "maxMatches": 1,
  399. "match": {
  400. "method": "POST",
  401. "pathIncludes": "/messages",
  402. "bodyIncludes": ["E2E_MCP_NATIVE_LOAD", "tool_reference", "toolu_native_search"],
  403. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  404. },
  405. "response": {
  406. "statusCode": 200,
  407. "headers": {
  408. "content-type": "text/event-stream; charset=utf-8"
  409. },
  410. "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"
  411. }
  412. },
  413. {
  414. "id": "mcp-native-done",
  415. "description": "Native MCP 定义交付与来源移除。",
  416. "metadata": {
  417. "kind": "main",
  418. "source": "synthetic",
  419. "timingPolicy": "fast-text",
  420. "syntheticReason": "固定模型动作,验证真实连接和最终 Native HTTP 请求。"
  421. },
  422. "maxMatches": 1,
  423. "match": {
  424. "method": "POST",
  425. "pathIncludes": "/messages",
  426. "bodyIncludes": ["E2E_MCP_REMOTE_RECOVERY:native:pong"],
  427. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  428. },
  429. "response": {
  430. "statusCode": 200,
  431. "headers": {
  432. "content-type": "text/event-stream; charset=utf-8"
  433. },
  434. "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"
  435. }
  436. },
  437. {
  438. "id": "mcp-native-resident",
  439. "description": "Native 常驻 MCP 定义交付。",
  440. "metadata": {
  441. "kind": "main",
  442. "source": "synthetic",
  443. "timingPolicy": "fast-text",
  444. "syntheticReason": "固定模型动作,验证真实连接和最终 Native HTTP 请求。"
  445. },
  446. "maxMatches": 1,
  447. "match": {
  448. "method": "POST",
  449. "pathIncludes": "/messages",
  450. "lastUserMessageIncludes": ["E2E_MCP_NATIVE_RESIDENT"],
  451. "bodyIncludes": [],
  452. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  453. },
  454. "response": {
  455. "statusCode": 200,
  456. "headers": {
  457. "content-type": "text/event-stream; charset=utf-8"
  458. },
  459. "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"
  460. }
  461. },
  462. {
  463. "id": "mcp-native-removed",
  464. "description": "Native MCP 定义交付与来源移除。",
  465. "metadata": {
  466. "kind": "main",
  467. "source": "synthetic",
  468. "timingPolicy": "fast-text",
  469. "syntheticReason": "固定模型动作,验证真实连接和最终 Native HTTP 请求。"
  470. },
  471. "maxMatches": 1,
  472. "match": {
  473. "method": "POST",
  474. "pathIncludes": "/messages",
  475. "lastUserMessageIncludes": ["E2E_MCP_NATIVE_REMOVED"],
  476. "bodyIncludes": [],
  477. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  478. },
  479. "response": {
  480. "statusCode": 200,
  481. "headers": {
  482. "content-type": "text/event-stream; charset=utf-8"
  483. },
  484. "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"
  485. }
  486. },
  487. {
  488. "id": "mcp-native-cold-check",
  489. "description": "动态 MCP 生命周期回归。",
  490. "metadata": {
  491. "kind": "main",
  492. "source": "synthetic",
  493. "timingPolicy": "fast-text",
  494. "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。"
  495. },
  496. "maxMatches": 1,
  497. "match": {
  498. "method": "POST",
  499. "pathIncludes": "/messages",
  500. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  501. "lastUserMessageIncludes": ["E2E_MCP_NATIVE_COLD"]
  502. },
  503. "response": {
  504. "statusCode": 200,
  505. "headers": {
  506. "content-type": "text/event-stream; charset=utf-8"
  507. },
  508. "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"
  509. }
  510. },
  511. {
  512. "id": "mcp-native-cold-done",
  513. "description": "动态 MCP 生命周期回归。",
  514. "metadata": {
  515. "kind": "main",
  516. "source": "synthetic",
  517. "timingPolicy": "fast-text",
  518. "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。"
  519. },
  520. "maxMatches": 1,
  521. "match": {
  522. "method": "POST",
  523. "pathIncludes": "/messages",
  524. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  525. "bodyIncludes": ["E2E_MCP_NATIVE_COLD", "toolu_native_cold_check"]
  526. },
  527. "response": {
  528. "statusCode": 200,
  529. "headers": {
  530. "content-type": "text/event-stream; charset=utf-8"
  531. },
  532. "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"
  533. }
  534. },
  535. {
  536. "id": "mcp-native-restored-search",
  537. "description": "动态 MCP 生命周期回归。",
  538. "metadata": {
  539. "kind": "main",
  540. "source": "synthetic",
  541. "timingPolicy": "fast-text",
  542. "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。"
  543. },
  544. "maxMatches": 1,
  545. "match": {
  546. "method": "POST",
  547. "pathIncludes": "/messages",
  548. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  549. "lastUserMessageIncludes": ["E2E_MCP_NATIVE_RESTORED"]
  550. },
  551. "response": {
  552. "statusCode": 200,
  553. "headers": {
  554. "content-type": "text/event-stream; charset=utf-8"
  555. },
  556. "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"
  557. }
  558. },
  559. {
  560. "id": "mcp-native-restored-call",
  561. "description": "动态 MCP 生命周期回归。",
  562. "metadata": {
  563. "kind": "main",
  564. "source": "synthetic",
  565. "timingPolicy": "fast-text",
  566. "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。"
  567. },
  568. "maxMatches": 1,
  569. "match": {
  570. "method": "POST",
  571. "pathIncludes": "/messages",
  572. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  573. "bodyIncludes": ["E2E_MCP_NATIVE_RESTORED", "toolu_native_restored_search"]
  574. },
  575. "response": {
  576. "statusCode": 200,
  577. "headers": {
  578. "content-type": "text/event-stream; charset=utf-8"
  579. },
  580. "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"
  581. }
  582. },
  583. {
  584. "id": "mcp-native-restored-done",
  585. "description": "动态 MCP 生命周期回归。",
  586. "metadata": {
  587. "kind": "main",
  588. "source": "synthetic",
  589. "timingPolicy": "fast-text",
  590. "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。"
  591. },
  592. "maxMatches": 1,
  593. "match": {
  594. "method": "POST",
  595. "pathIncludes": "/messages",
  596. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  597. "bodyIncludes": ["E2E_MCP_NATIVE_RESTORED", "toolu_native_restored_call"]
  598. },
  599. "response": {
  600. "statusCode": 200,
  601. "headers": {
  602. "content-type": "text/event-stream; charset=utf-8"
  603. },
  604. "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"
  605. }
  606. },
  607. {
  608. "id": "mcp-native-expired-call",
  609. "description": "动态 MCP 生命周期回归。",
  610. "metadata": {
  611. "kind": "main",
  612. "source": "synthetic",
  613. "timingPolicy": "fast-text",
  614. "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。"
  615. },
  616. "maxMatches": 1,
  617. "match": {
  618. "method": "POST",
  619. "pathIncludes": "/messages",
  620. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  621. "lastUserMessageIncludes": ["E2E_MCP_NATIVE_EXPIRED"]
  622. },
  623. "response": {
  624. "statusCode": 200,
  625. "headers": {
  626. "content-type": "text/event-stream; charset=utf-8"
  627. },
  628. "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"
  629. }
  630. },
  631. {
  632. "id": "mcp-native-expired-done",
  633. "description": "动态 MCP 生命周期回归。",
  634. "metadata": {
  635. "kind": "main",
  636. "source": "synthetic",
  637. "timingPolicy": "fast-text",
  638. "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。"
  639. },
  640. "maxMatches": 1,
  641. "match": {
  642. "method": "POST",
  643. "pathIncludes": "/messages",
  644. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  645. "bodyIncludes": ["E2E_MCP_NATIVE_EXPIRED", "toolu_native_expired_call"]
  646. },
  647. "response": {
  648. "statusCode": 200,
  649. "headers": {
  650. "content-type": "text/event-stream; charset=utf-8"
  651. },
  652. "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"
  653. }
  654. },
  655. {
  656. "id": "mcp-native-exhaust-call",
  657. "description": "动态 MCP 生命周期回归。",
  658. "metadata": {
  659. "kind": "main",
  660. "source": "synthetic",
  661. "timingPolicy": "fast-text",
  662. "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。"
  663. },
  664. "maxMatches": 1,
  665. "match": {
  666. "method": "POST",
  667. "pathIncludes": "/messages",
  668. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  669. "lastUserMessageIncludes": ["E2E_MCP_NATIVE_EXHAUST"]
  670. },
  671. "response": {
  672. "statusCode": 200,
  673. "headers": {
  674. "content-type": "text/event-stream; charset=utf-8"
  675. },
  676. "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"
  677. }
  678. },
  679. {
  680. "id": "mcp-native-exhaust-done",
  681. "description": "动态 MCP 生命周期回归。",
  682. "metadata": {
  683. "kind": "main",
  684. "source": "synthetic",
  685. "timingPolicy": "fast-text",
  686. "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。"
  687. },
  688. "maxMatches": 1,
  689. "match": {
  690. "method": "POST",
  691. "pathIncludes": "/messages",
  692. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  693. "bodyIncludes": ["E2E_MCP_NATIVE_EXHAUST", "toolu_native_exhaust_call"]
  694. },
  695. "response": {
  696. "statusCode": 200,
  697. "headers": {
  698. "content-type": "text/event-stream; charset=utf-8"
  699. },
  700. "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"
  701. }
  702. },
  703. {
  704. "id": "mcp-native-failed-search",
  705. "description": "动态 MCP 生命周期回归。",
  706. "metadata": {
  707. "kind": "main",
  708. "source": "synthetic",
  709. "timingPolicy": "fast-text",
  710. "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。"
  711. },
  712. "maxMatches": 1,
  713. "match": {
  714. "method": "POST",
  715. "pathIncludes": "/messages",
  716. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  717. "lastUserMessageIncludes": ["E2E_MCP_NATIVE_FAILED"]
  718. },
  719. "response": {
  720. "statusCode": 200,
  721. "headers": {
  722. "content-type": "text/event-stream; charset=utf-8"
  723. },
  724. "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"
  725. }
  726. },
  727. {
  728. "id": "mcp-native-failed-check",
  729. "description": "动态 MCP 生命周期回归。",
  730. "metadata": {
  731. "kind": "main",
  732. "source": "synthetic",
  733. "timingPolicy": "fast-text",
  734. "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。"
  735. },
  736. "maxMatches": 1,
  737. "match": {
  738. "method": "POST",
  739. "pathIncludes": "/messages",
  740. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  741. "bodyIncludes": ["E2E_MCP_NATIVE_FAILED", "toolu_native_failed_search"]
  742. },
  743. "response": {
  744. "statusCode": 200,
  745. "headers": {
  746. "content-type": "text/event-stream; charset=utf-8"
  747. },
  748. "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"
  749. }
  750. },
  751. {
  752. "id": "mcp-native-failed-done",
  753. "description": "动态 MCP 生命周期回归。",
  754. "metadata": {
  755. "kind": "main",
  756. "source": "synthetic",
  757. "timingPolicy": "fast-text",
  758. "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。"
  759. },
  760. "maxMatches": 1,
  761. "match": {
  762. "method": "POST",
  763. "pathIncludes": "/messages",
  764. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  765. "bodyIncludes": ["E2E_MCP_NATIVE_FAILED", "toolu_native_failed_check"]
  766. },
  767. "response": {
  768. "statusCode": 200,
  769. "headers": {
  770. "content-type": "text/event-stream; charset=utf-8"
  771. },
  772. "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"
  773. }
  774. },
  775. {
  776. "id": "mcp-plugin-installed-search",
  777. "description": "同一对话插件热生命周期。",
  778. "metadata": {
  779. "kind": "main",
  780. "source": "synthetic",
  781. "timingPolicy": "fast-text",
  782. "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。"
  783. },
  784. "maxMatches": 1,
  785. "match": {
  786. "method": "POST",
  787. "pathIncludes": "/messages",
  788. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  789. "lastUserMessageIncludes": ["E2E_MCP_PLUGIN_INSTALLED"]
  790. },
  791. "response": {
  792. "statusCode": 200,
  793. "toolUse": {
  794. "id": "toolu_plugin_installed_search",
  795. "name": "ToolSearch",
  796. "input": {
  797. "query": "select:mcp__plugin_e2e-plugin-lifecycle_lifecycle__version_marker"
  798. }
  799. }
  800. }
  801. },
  802. {
  803. "id": "mcp-plugin-installed-call",
  804. "description": "同一对话插件热生命周期。",
  805. "metadata": {
  806. "kind": "main",
  807. "source": "synthetic",
  808. "timingPolicy": "fast-text",
  809. "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。"
  810. },
  811. "maxMatches": 1,
  812. "match": {
  813. "method": "POST",
  814. "pathIncludes": "/messages",
  815. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  816. "bodyIncludes": ["E2E_MCP_PLUGIN_INSTALLED", "toolu_plugin_installed_search"]
  817. },
  818. "response": {
  819. "statusCode": 200,
  820. "toolUse": {
  821. "id": "toolu_plugin_installed_call",
  822. "name": "DeferredToolCall",
  823. "input": {
  824. "name": "mcp__plugin_e2e-plugin-lifecycle_lifecycle__version_marker",
  825. "input": {}
  826. }
  827. }
  828. }
  829. },
  830. {
  831. "id": "mcp-plugin-installed-done",
  832. "description": "同一对话插件热生命周期。",
  833. "metadata": {
  834. "kind": "main",
  835. "source": "synthetic",
  836. "timingPolicy": "fast-text",
  837. "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。"
  838. },
  839. "maxMatches": 1,
  840. "match": {
  841. "method": "POST",
  842. "pathIncludes": "/messages",
  843. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  844. "bodyIncludes": ["E2E_MCP_PLUGIN_INSTALLED", "toolu_plugin_installed_call"]
  845. },
  846. "response": {
  847. "statusCode": 200,
  848. "text": "plugin-installed-ok"
  849. }
  850. },
  851. {
  852. "id": "mcp-plugin-disabled-search",
  853. "description": "同一对话插件热生命周期。",
  854. "metadata": {
  855. "kind": "main",
  856. "source": "synthetic",
  857. "timingPolicy": "fast-text",
  858. "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。"
  859. },
  860. "maxMatches": 1,
  861. "match": {
  862. "method": "POST",
  863. "pathIncludes": "/messages",
  864. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  865. "lastUserMessageIncludes": ["E2E_MCP_PLUGIN_DISABLED"]
  866. },
  867. "response": {
  868. "statusCode": 200,
  869. "toolUse": {
  870. "id": "toolu_plugin_disabled_search",
  871. "name": "ToolSearch",
  872. "input": {
  873. "query": "select:mcp__plugin_e2e-plugin-lifecycle_lifecycle__version_marker"
  874. }
  875. }
  876. }
  877. },
  878. {
  879. "id": "mcp-plugin-disabled-done",
  880. "description": "同一对话插件热生命周期。",
  881. "metadata": {
  882. "kind": "main",
  883. "source": "synthetic",
  884. "timingPolicy": "fast-text",
  885. "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。"
  886. },
  887. "maxMatches": 1,
  888. "match": {
  889. "method": "POST",
  890. "pathIncludes": "/messages",
  891. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  892. "bodyIncludes": ["E2E_MCP_PLUGIN_DISABLED", "toolu_plugin_disabled_search"]
  893. },
  894. "response": {
  895. "statusCode": 200,
  896. "text": "plugin-disabled-ok"
  897. }
  898. },
  899. {
  900. "id": "mcp-plugin-enabled-search",
  901. "description": "同一对话插件热生命周期。",
  902. "metadata": {
  903. "kind": "main",
  904. "source": "synthetic",
  905. "timingPolicy": "fast-text",
  906. "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。"
  907. },
  908. "maxMatches": 1,
  909. "match": {
  910. "method": "POST",
  911. "pathIncludes": "/messages",
  912. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  913. "lastUserMessageIncludes": ["E2E_MCP_PLUGIN_ENABLED"]
  914. },
  915. "response": {
  916. "statusCode": 200,
  917. "toolUse": {
  918. "id": "toolu_plugin_enabled_search",
  919. "name": "ToolSearch",
  920. "input": {
  921. "query": "select:mcp__plugin_e2e-plugin-lifecycle_lifecycle__version_marker"
  922. }
  923. }
  924. }
  925. },
  926. {
  927. "id": "mcp-plugin-enabled-call",
  928. "description": "同一对话插件热生命周期。",
  929. "metadata": {
  930. "kind": "main",
  931. "source": "synthetic",
  932. "timingPolicy": "fast-text",
  933. "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。"
  934. },
  935. "maxMatches": 1,
  936. "match": {
  937. "method": "POST",
  938. "pathIncludes": "/messages",
  939. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  940. "bodyIncludes": ["E2E_MCP_PLUGIN_ENABLED", "toolu_plugin_enabled_search"]
  941. },
  942. "response": {
  943. "statusCode": 200,
  944. "toolUse": {
  945. "id": "toolu_plugin_enabled_call",
  946. "name": "DeferredToolCall",
  947. "input": {
  948. "name": "mcp__plugin_e2e-plugin-lifecycle_lifecycle__version_marker",
  949. "input": {}
  950. }
  951. }
  952. }
  953. },
  954. {
  955. "id": "mcp-plugin-enabled-done",
  956. "description": "同一对话插件热生命周期。",
  957. "metadata": {
  958. "kind": "main",
  959. "source": "synthetic",
  960. "timingPolicy": "fast-text",
  961. "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。"
  962. },
  963. "maxMatches": 1,
  964. "match": {
  965. "method": "POST",
  966. "pathIncludes": "/messages",
  967. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  968. "bodyIncludes": ["E2E_MCP_PLUGIN_ENABLED", "toolu_plugin_enabled_call"]
  969. },
  970. "response": {
  971. "statusCode": 200,
  972. "text": "plugin-enabled-ok"
  973. }
  974. },
  975. {
  976. "id": "mcp-plugin-uninstalled-search",
  977. "description": "同一对话插件热生命周期。",
  978. "metadata": {
  979. "kind": "main",
  980. "source": "synthetic",
  981. "timingPolicy": "fast-text",
  982. "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。"
  983. },
  984. "maxMatches": 1,
  985. "match": {
  986. "method": "POST",
  987. "pathIncludes": "/messages",
  988. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  989. "lastUserMessageIncludes": ["E2E_MCP_PLUGIN_UNINSTALLED"]
  990. },
  991. "response": {
  992. "statusCode": 200,
  993. "toolUse": {
  994. "id": "toolu_plugin_uninstalled_search",
  995. "name": "ToolSearch",
  996. "input": {
  997. "query": "select:mcp__plugin_e2e-plugin-lifecycle_lifecycle__version_marker"
  998. }
  999. }
  1000. }
  1001. },
  1002. {
  1003. "id": "mcp-plugin-uninstalled-done",
  1004. "description": "同一对话插件热生命周期。",
  1005. "metadata": {
  1006. "kind": "main",
  1007. "source": "synthetic",
  1008. "timingPolicy": "fast-text",
  1009. "syntheticReason": "控制模型搜索与调用,真实 UI 安装启停卸载、配置订阅和 MCP 执行不模拟。"
  1010. },
  1011. "maxMatches": 1,
  1012. "match": {
  1013. "method": "POST",
  1014. "pathIncludes": "/messages",
  1015. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1016. "bodyIncludes": ["E2E_MCP_PLUGIN_UNINSTALLED", "toolu_plugin_uninstalled_search"]
  1017. },
  1018. "response": {
  1019. "statusCode": 200,
  1020. "text": "plugin-uninstalled-ok"
  1021. }
  1022. },
  1023. {
  1024. "id": "mcp-native-protocol-error-call",
  1025. "description": "动态 MCP 生命周期回归。",
  1026. "metadata": {
  1027. "kind": "main",
  1028. "source": "synthetic",
  1029. "timingPolicy": "fast-text",
  1030. "syntheticReason": "控制模型动作;真实 HTTP 执行后返回同文 JSON-RPC 错误,验证不重放及 Native 错误正文。"
  1031. },
  1032. "maxMatches": 1,
  1033. "match": {
  1034. "method": "POST",
  1035. "pathIncludes": "/messages",
  1036. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1037. "lastUserMessageIncludes": ["E2E_MCP_NATIVE_PROTOCOL_ERROR"]
  1038. },
  1039. "response": {
  1040. "statusCode": 200,
  1041. "headers": {
  1042. "content-type": "text/event-stream; charset=utf-8"
  1043. },
  1044. "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"
  1045. }
  1046. },
  1047. {
  1048. "id": "mcp-native-protocol-error-done",
  1049. "description": "动态 MCP 生命周期回归。",
  1050. "metadata": {
  1051. "kind": "main",
  1052. "source": "synthetic",
  1053. "timingPolicy": "fast-text",
  1054. "syntheticReason": "控制模型动作;真实 HTTP 执行后返回同文 JSON-RPC 错误,验证不重放及 Native 错误正文。"
  1055. },
  1056. "maxMatches": 1,
  1057. "match": {
  1058. "method": "POST",
  1059. "pathIncludes": "/messages",
  1060. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1061. "bodyIncludes": ["E2E_MCP_NATIVE_PROTOCOL_ERROR", "toolu_native_protocol_error_call"]
  1062. },
  1063. "response": {
  1064. "statusCode": 200,
  1065. "headers": {
  1066. "content-type": "text/event-stream; charset=utf-8"
  1067. },
  1068. "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"
  1069. }
  1070. },
  1071. {
  1072. "id": "mcp-native-settings-search",
  1073. "description": "动态 MCP 生命周期回归。",
  1074. "metadata": {
  1075. "kind": "main",
  1076. "source": "synthetic",
  1077. "timingPolicy": "fast-text",
  1078. "syntheticReason": "真实设置探测恢复不干扰现有对话;精确检查 Native 引用、schema、无虚假状态公告与真实调用。"
  1079. },
  1080. "maxMatches": 1,
  1081. "match": {
  1082. "method": "POST",
  1083. "pathIncludes": "/messages",
  1084. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1085. "lastUserMessageIncludes": ["E2E_MCP_NATIVE_SETTINGS"]
  1086. },
  1087. "response": {
  1088. "statusCode": 200,
  1089. "headers": {
  1090. "content-type": "text/event-stream; charset=utf-8"
  1091. },
  1092. "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"
  1093. }
  1094. },
  1095. {
  1096. "id": "mcp-native-settings-call",
  1097. "description": "动态 MCP 生命周期回归。",
  1098. "metadata": {
  1099. "kind": "main",
  1100. "source": "synthetic",
  1101. "timingPolicy": "fast-text",
  1102. "syntheticReason": "真实设置探测恢复不干扰现有对话;精确检查 Native 引用、schema、无虚假状态公告与真实调用。"
  1103. },
  1104. "maxMatches": 1,
  1105. "match": {
  1106. "method": "POST",
  1107. "pathIncludes": "/messages",
  1108. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1109. "bodyIncludes": ["E2E_MCP_NATIVE_SETTINGS", "toolu_native_settings_search"]
  1110. },
  1111. "response": {
  1112. "statusCode": 200,
  1113. "headers": {
  1114. "content-type": "text/event-stream; charset=utf-8"
  1115. },
  1116. "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"
  1117. }
  1118. },
  1119. {
  1120. "id": "mcp-native-settings-done",
  1121. "description": "动态 MCP 生命周期回归。",
  1122. "metadata": {
  1123. "kind": "main",
  1124. "source": "synthetic",
  1125. "timingPolicy": "fast-text",
  1126. "syntheticReason": "真实设置探测恢复不干扰现有对话;精确检查 Native 引用、schema、无虚假状态公告与真实调用。"
  1127. },
  1128. "maxMatches": 1,
  1129. "match": {
  1130. "method": "POST",
  1131. "pathIncludes": "/messages",
  1132. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1133. "bodyIncludes": ["E2E_MCP_NATIVE_SETTINGS", "toolu_native_settings_call"]
  1134. },
  1135. "response": {
  1136. "statusCode": 200,
  1137. "headers": {
  1138. "content-type": "text/event-stream; charset=utf-8"
  1139. },
  1140. "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"
  1141. }
  1142. },
  1143. {
  1144. "id": "mcp-native-discovery-search",
  1145. "description": "动态 MCP 生命周期回归。",
  1146. "metadata": {
  1147. "kind": "main",
  1148. "source": "synthetic",
  1149. "timingPolicy": "fast-text",
  1150. "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。"
  1151. },
  1152. "maxMatches": 1,
  1153. "match": {
  1154. "method": "POST",
  1155. "pathIncludes": "/messages",
  1156. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1157. "lastUserMessageIncludes": ["E2E_MCP_NATIVE_DISCOVERY"]
  1158. },
  1159. "response": {
  1160. "statusCode": 200,
  1161. "headers": {
  1162. "content-type": "text/event-stream; charset=utf-8"
  1163. },
  1164. "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"
  1165. }
  1166. },
  1167. {
  1168. "id": "mcp-native-discovery-call",
  1169. "description": "动态 MCP 生命周期回归。",
  1170. "metadata": {
  1171. "kind": "main",
  1172. "source": "synthetic",
  1173. "timingPolicy": "fast-text",
  1174. "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。"
  1175. },
  1176. "maxMatches": 1,
  1177. "match": {
  1178. "method": "POST",
  1179. "pathIncludes": "/messages",
  1180. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1181. "bodyIncludes": ["E2E_MCP_NATIVE_DISCOVERY", "toolu_native_discovery_search"]
  1182. },
  1183. "response": {
  1184. "statusCode": 200,
  1185. "headers": {
  1186. "content-type": "text/event-stream; charset=utf-8"
  1187. },
  1188. "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"
  1189. }
  1190. },
  1191. {
  1192. "id": "mcp-native-discovery-done",
  1193. "description": "动态 MCP 生命周期回归。",
  1194. "metadata": {
  1195. "kind": "main",
  1196. "source": "synthetic",
  1197. "timingPolicy": "fast-text",
  1198. "syntheticReason": "固定模型动作;真实 MCP、冷恢复及内建工具链由产品执行,检查最终 Native HTTP 请求与服务端副作用。"
  1199. },
  1200. "maxMatches": 1,
  1201. "match": {
  1202. "method": "POST",
  1203. "pathIncludes": "/messages",
  1204. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
  1205. "bodyIncludes": ["E2E_MCP_NATIVE_DISCOVERY", "toolu_native_discovery_call"]
  1206. },
  1207. "response": {
  1208. "statusCode": 200,
  1209. "headers": {
  1210. "content-type": "text/event-stream; charset=utf-8"
  1211. },
  1212. "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"
  1213. }
  1214. },
  1215. {
  1216. "id": "mcpw09-seed-a",
  1217. "description": "MCPW09 建立会话。",
  1218. "metadata": {
  1219. "kind": "main",
  1220. "source": "synthetic",
  1221. "timingPolicy": "fast-text",
  1222. "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。"
  1223. },
  1224. "maxMatches": 1,
  1225. "match": {
  1226. "method": "POST",
  1227. "pathIncludes": "/messages",
  1228. "lastUserMessageIncludes": ["E2E_MCPW09_SEED_A"],
  1229. "bodyIncludes": ["E2E_MCPW09_SEED_A"],
  1230. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1231. },
  1232. "response": {
  1233. "statusCode": 200,
  1234. "text": "mcpw09-seed-a"
  1235. }
  1236. },
  1237. {
  1238. "id": "mcpw09-seed-b",
  1239. "description": "MCPW09 建立会话。",
  1240. "metadata": {
  1241. "kind": "main",
  1242. "source": "synthetic",
  1243. "timingPolicy": "fast-text",
  1244. "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。"
  1245. },
  1246. "maxMatches": 1,
  1247. "match": {
  1248. "method": "POST",
  1249. "pathIncludes": "/messages",
  1250. "lastUserMessageIncludes": ["E2E_MCPW09_SEED_B"],
  1251. "bodyIncludes": ["E2E_MCPW09_SEED_B"],
  1252. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1253. },
  1254. "response": {
  1255. "statusCode": 200,
  1256. "text": "mcpw09-seed-b"
  1257. }
  1258. },
  1259. {
  1260. "id": "mcpw09-shared-b-search",
  1261. "description": "MCPW09 搜索热新增的 MCP 工具。",
  1262. "metadata": {
  1263. "kind": "main",
  1264. "source": "synthetic",
  1265. "timingPolicy": "fast-text",
  1266. "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。"
  1267. },
  1268. "maxMatches": 1,
  1269. "match": {
  1270. "method": "POST",
  1271. "pathIncludes": "/messages",
  1272. "lastUserMessageIncludes": ["E2E_MCPW09_SHARED_B"],
  1273. "bodyIncludes": ["E2E_MCPW09_SHARED_B", "ToolSearch"],
  1274. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1275. },
  1276. "response": {
  1277. "statusCode": 200,
  1278. "toolUse": {
  1279. "id": "toolu_mcpw09_shared-b_search",
  1280. "name": "ToolSearch",
  1281. "input": {
  1282. "query": "select:mcp__shared09__ping"
  1283. }
  1284. }
  1285. }
  1286. },
  1287. {
  1288. "id": "mcpw09-shared-b-ping",
  1289. "description": "MCPW09 调用热新增的 MCP 工具。",
  1290. "metadata": {
  1291. "kind": "main",
  1292. "source": "synthetic",
  1293. "timingPolicy": "fast-text",
  1294. "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。"
  1295. },
  1296. "maxMatches": 1,
  1297. "match": {
  1298. "method": "POST",
  1299. "pathIncludes": "/messages",
  1300. "bodyIncludes": [
  1301. "E2E_MCPW09_SHARED_B",
  1302. "toolu_mcpw09_shared-b_search",
  1303. "<function>",
  1304. "mcp__shared09__ping"
  1305. ],
  1306. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1307. },
  1308. "response": {
  1309. "statusCode": 200,
  1310. "toolUse": {
  1311. "id": "toolu_mcpw09_shared-b_ping",
  1312. "name": "DeferredToolCall",
  1313. "input": {
  1314. "name": "mcp__shared09__ping",
  1315. "input": {
  1316. "marker": "E2E_MCPW09_SHARED_B"
  1317. }
  1318. }
  1319. }
  1320. }
  1321. },
  1322. {
  1323. "id": "mcpw09-shared-b-final",
  1324. "description": "MCPW09 收到真实调用结果。",
  1325. "metadata": {
  1326. "kind": "main",
  1327. "source": "synthetic",
  1328. "timingPolicy": "fast-text",
  1329. "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。"
  1330. },
  1331. "maxMatches": 1,
  1332. "match": {
  1333. "method": "POST",
  1334. "pathIncludes": "/messages",
  1335. "bodyIncludes": ["E2E_MCPW09_SHARED_B", "E2E_MCP_ASYNC_WAIT_PONG:E2E_MCPW09_SHARED_B"],
  1336. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1337. },
  1338. "response": {
  1339. "statusCode": 200,
  1340. "text": "mcpw09-shared-b-ok"
  1341. }
  1342. },
  1343. {
  1344. "id": "mcpw09-shared-a-search",
  1345. "description": "MCPW09 搜索热新增的 MCP 工具。",
  1346. "metadata": {
  1347. "kind": "main",
  1348. "source": "synthetic",
  1349. "timingPolicy": "fast-text",
  1350. "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。"
  1351. },
  1352. "maxMatches": 1,
  1353. "match": {
  1354. "method": "POST",
  1355. "pathIncludes": "/messages",
  1356. "lastUserMessageIncludes": ["E2E_MCPW09_SHARED_A"],
  1357. "bodyIncludes": ["E2E_MCPW09_SHARED_A", "ToolSearch"],
  1358. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1359. },
  1360. "response": {
  1361. "statusCode": 200,
  1362. "toolUse": {
  1363. "id": "toolu_mcpw09_shared-a_search",
  1364. "name": "ToolSearch",
  1365. "input": {
  1366. "query": "select:mcp__shared09__ping"
  1367. }
  1368. }
  1369. }
  1370. },
  1371. {
  1372. "id": "mcpw09-shared-a-ping",
  1373. "description": "MCPW09 调用热新增的 MCP 工具。",
  1374. "metadata": {
  1375. "kind": "main",
  1376. "source": "synthetic",
  1377. "timingPolicy": "fast-text",
  1378. "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。"
  1379. },
  1380. "maxMatches": 1,
  1381. "match": {
  1382. "method": "POST",
  1383. "pathIncludes": "/messages",
  1384. "bodyIncludes": [
  1385. "E2E_MCPW09_SHARED_A",
  1386. "toolu_mcpw09_shared-a_search",
  1387. "<function>",
  1388. "mcp__shared09__ping"
  1389. ],
  1390. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1391. },
  1392. "response": {
  1393. "statusCode": 200,
  1394. "toolUse": {
  1395. "id": "toolu_mcpw09_shared-a_ping",
  1396. "name": "DeferredToolCall",
  1397. "input": {
  1398. "name": "mcp__shared09__ping",
  1399. "input": {
  1400. "marker": "E2E_MCPW09_SHARED_A"
  1401. }
  1402. }
  1403. }
  1404. }
  1405. },
  1406. {
  1407. "id": "mcpw09-shared-a-final",
  1408. "description": "MCPW09 收到真实调用结果。",
  1409. "metadata": {
  1410. "kind": "main",
  1411. "source": "synthetic",
  1412. "timingPolicy": "fast-text",
  1413. "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。"
  1414. },
  1415. "maxMatches": 1,
  1416. "match": {
  1417. "method": "POST",
  1418. "pathIncludes": "/messages",
  1419. "bodyIncludes": ["E2E_MCPW09_SHARED_A", "E2E_MCP_ASYNC_WAIT_PONG:E2E_MCPW09_SHARED_A"],
  1420. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1421. },
  1422. "response": {
  1423. "statusCode": 200,
  1424. "text": "mcpw09-shared-a-ok"
  1425. }
  1426. },
  1427. {
  1428. "id": "mcpw09-late-b-search",
  1429. "description": "MCPW09 搜索热新增的 MCP 工具。",
  1430. "metadata": {
  1431. "kind": "main",
  1432. "source": "synthetic",
  1433. "timingPolicy": "fast-text",
  1434. "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。"
  1435. },
  1436. "maxMatches": 1,
  1437. "match": {
  1438. "method": "POST",
  1439. "pathIncludes": "/messages",
  1440. "lastUserMessageIncludes": ["E2E_MCPW09_LATE_B"],
  1441. "bodyIncludes": ["E2E_MCPW09_LATE_B", "ToolSearch"],
  1442. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1443. },
  1444. "response": {
  1445. "statusCode": 200,
  1446. "toolUse": {
  1447. "id": "toolu_mcpw09_late-b_search",
  1448. "name": "ToolSearch",
  1449. "input": {
  1450. "query": "select:mcp__late09__ping"
  1451. }
  1452. }
  1453. }
  1454. },
  1455. {
  1456. "id": "mcpw09-late-b-ping",
  1457. "description": "MCPW09 调用热新增的 MCP 工具。",
  1458. "metadata": {
  1459. "kind": "main",
  1460. "source": "synthetic",
  1461. "timingPolicy": "fast-text",
  1462. "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。"
  1463. },
  1464. "maxMatches": 1,
  1465. "match": {
  1466. "method": "POST",
  1467. "pathIncludes": "/messages",
  1468. "bodyIncludes": [
  1469. "E2E_MCPW09_LATE_B",
  1470. "toolu_mcpw09_late-b_search",
  1471. "<function>",
  1472. "mcp__late09__ping"
  1473. ],
  1474. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1475. },
  1476. "response": {
  1477. "statusCode": 200,
  1478. "toolUse": {
  1479. "id": "toolu_mcpw09_late-b_ping",
  1480. "name": "DeferredToolCall",
  1481. "input": {
  1482. "name": "mcp__late09__ping",
  1483. "input": {
  1484. "marker": "E2E_MCPW09_LATE_B"
  1485. }
  1486. }
  1487. }
  1488. }
  1489. },
  1490. {
  1491. "id": "mcpw09-late-b-final",
  1492. "description": "MCPW09 收到真实调用结果。",
  1493. "metadata": {
  1494. "kind": "main",
  1495. "source": "synthetic",
  1496. "timingPolicy": "fast-text",
  1497. "syntheticReason": "控制模型动作,验证同一进程内两个会话共用配置监听、删除一个会话后另一个仍能热更新。"
  1498. },
  1499. "maxMatches": 1,
  1500. "match": {
  1501. "method": "POST",
  1502. "pathIncludes": "/messages",
  1503. "bodyIncludes": ["E2E_MCPW09_LATE_B", "E2E_MCP_ASYNC_WAIT_PONG:E2E_MCPW09_LATE_B"],
  1504. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1505. },
  1506. "response": {
  1507. "statusCode": 200,
  1508. "text": "mcpw09-late-b-ok"
  1509. }
  1510. },
  1511. {
  1512. "id": "mcpw10-first-search",
  1513. "description": "MCPW10 首轮搜索需要 OAuth 的 MCP 工具。",
  1514. "metadata": {
  1515. "kind": "main",
  1516. "source": "synthetic",
  1517. "timingPolicy": "fast-text",
  1518. "syntheticReason": "控制模型动作,验证调用期 OAuth 失效后立即提示重新授权,设置页授权后同一任务恢复调用。"
  1519. },
  1520. "maxMatches": 1,
  1521. "match": {
  1522. "method": "POST",
  1523. "pathIncludes": "/messages",
  1524. "lastUserMessageIncludes": ["E2E_MCPW10_FIRST"],
  1525. "bodyIncludes": ["E2E_MCPW10_FIRST", "ToolSearch"],
  1526. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1527. },
  1528. "response": {
  1529. "statusCode": 200,
  1530. "toolUse": {
  1531. "id": "toolu_mcpw10_first_search",
  1532. "name": "ToolSearch",
  1533. "input": {
  1534. "query": "select:mcp__oauthmcp__oauth_ping"
  1535. }
  1536. }
  1537. }
  1538. },
  1539. {
  1540. "id": "mcpw10-first-call",
  1541. "description": "MCPW10 首轮用已有凭据调用 MCP 工具。",
  1542. "metadata": {
  1543. "kind": "main",
  1544. "source": "synthetic",
  1545. "timingPolicy": "fast-text",
  1546. "syntheticReason": "控制模型动作,验证调用期 OAuth 失效后立即提示重新授权,设置页授权后同一任务恢复调用。"
  1547. },
  1548. "maxMatches": 1,
  1549. "match": {
  1550. "method": "POST",
  1551. "pathIncludes": "/messages",
  1552. "bodyIncludes": [
  1553. "E2E_MCPW10_FIRST",
  1554. "toolu_mcpw10_first_search",
  1555. "<function>",
  1556. "mcp__oauthmcp__oauth_ping"
  1557. ],
  1558. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1559. },
  1560. "response": {
  1561. "statusCode": 200,
  1562. "toolUse": {
  1563. "id": "toolu_mcpw10_first_call",
  1564. "name": "DeferredToolCall",
  1565. "input": {
  1566. "name": "mcp__oauthmcp__oauth_ping",
  1567. "input": {
  1568. "marker": "E2E_MCPW10_FIRST"
  1569. }
  1570. }
  1571. }
  1572. }
  1573. },
  1574. {
  1575. "id": "mcpw10-first-final",
  1576. "description": "MCPW10 首轮收到真实调用结果。",
  1577. "metadata": {
  1578. "kind": "main",
  1579. "source": "synthetic",
  1580. "timingPolicy": "fast-text",
  1581. "syntheticReason": "控制模型动作,验证调用期 OAuth 失效后立即提示重新授权,设置页授权后同一任务恢复调用。"
  1582. },
  1583. "maxMatches": 1,
  1584. "match": {
  1585. "method": "POST",
  1586. "pathIncludes": "/messages",
  1587. "bodyIncludes": ["E2E_MCPW10_FIRST", "E2E_MCP_OAUTH_PONG:E2E_MCPW10_FIRST"],
  1588. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1589. },
  1590. "response": {
  1591. "statusCode": 200,
  1592. "text": "mcpw10-first-ok"
  1593. }
  1594. },
  1595. {
  1596. "id": "mcpw10-revoked-call",
  1597. "description": "MCPW10 token 吊销后再次调用已加载的 MCP 工具。",
  1598. "metadata": {
  1599. "kind": "main",
  1600. "source": "synthetic",
  1601. "timingPolicy": "fast-text",
  1602. "syntheticReason": "控制模型动作,验证调用期 OAuth 失效后立即提示重新授权,设置页授权后同一任务恢复调用。"
  1603. },
  1604. "maxMatches": 1,
  1605. "match": {
  1606. "method": "POST",
  1607. "pathIncludes": "/messages",
  1608. "lastUserMessageIncludes": ["E2E_MCPW10_REVOKED"],
  1609. "bodyIncludes": ["E2E_MCPW10_REVOKED"],
  1610. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1611. },
  1612. "response": {
  1613. "statusCode": 200,
  1614. "toolUse": {
  1615. "id": "toolu_mcpw10_revoked_call",
  1616. "name": "DeferredToolCall",
  1617. "input": {
  1618. "name": "mcp__oauthmcp__oauth_ping",
  1619. "input": {
  1620. "marker": "E2E_MCPW10_REVOKED"
  1621. }
  1622. }
  1623. }
  1624. }
  1625. },
  1626. {
  1627. "id": "mcpw10-revoked-final",
  1628. "description": "MCPW10 收到调用期授权的工具结果;结果原文由 case 断言。",
  1629. "metadata": {
  1630. "kind": "main",
  1631. "source": "synthetic",
  1632. "timingPolicy": "fast-text",
  1633. "syntheticReason": "控制模型动作,验证调用期 OAuth 失效后立即提示重新授权,设置页授权后同一任务恢复调用。"
  1634. },
  1635. "maxMatches": 1,
  1636. "match": {
  1637. "method": "POST",
  1638. "pathIncludes": "/messages",
  1639. "bodyIncludes": ["E2E_MCPW10_REVOKED", "toolu_mcpw10_revoked_call"],
  1640. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1641. },
  1642. "response": {
  1643. "statusCode": 200,
  1644. "text": "mcpw10-revoked-ok"
  1645. }
  1646. },
  1647. {
  1648. "id": "mcpw10-reauthorized-call",
  1649. "description": "MCPW10 设置页重新授权后同一任务再次调用 MCP 工具。",
  1650. "metadata": {
  1651. "kind": "main",
  1652. "source": "synthetic",
  1653. "timingPolicy": "fast-text",
  1654. "syntheticReason": "控制模型动作,验证调用期 OAuth 失效后立即提示重新授权,设置页授权后同一任务恢复调用。"
  1655. },
  1656. "maxMatches": 1,
  1657. "match": {
  1658. "method": "POST",
  1659. "pathIncludes": "/messages",
  1660. "lastUserMessageIncludes": ["E2E_MCPW10_REAUTHORIZED"],
  1661. "bodyIncludes": ["E2E_MCPW10_REAUTHORIZED"],
  1662. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1663. },
  1664. "response": {
  1665. "statusCode": 200,
  1666. "toolUse": {
  1667. "id": "toolu_mcpw10_reauthorized_call",
  1668. "name": "DeferredToolCall",
  1669. "input": {
  1670. "name": "mcp__oauthmcp__oauth_ping",
  1671. "input": {
  1672. "marker": "E2E_MCPW10_REAUTHORIZED"
  1673. }
  1674. }
  1675. }
  1676. }
  1677. },
  1678. {
  1679. "id": "mcpw10-reauthorized-final",
  1680. "description": "MCPW10 重新授权后收到真实调用结果。",
  1681. "metadata": {
  1682. "kind": "main",
  1683. "source": "synthetic",
  1684. "timingPolicy": "fast-text",
  1685. "syntheticReason": "控制模型动作,验证调用期 OAuth 失效后立即提示重新授权,设置页授权后同一任务恢复调用。"
  1686. },
  1687. "maxMatches": 1,
  1688. "match": {
  1689. "method": "POST",
  1690. "pathIncludes": "/messages",
  1691. "bodyIncludes": ["E2E_MCPW10_REAUTHORIZED", "E2E_MCP_OAUTH_PONG:E2E_MCPW10_REAUTHORIZED"],
  1692. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1693. },
  1694. "response": {
  1695. "statusCode": 200,
  1696. "text": "mcpw10-reauthorized-ok"
  1697. }
  1698. },
  1699. {
  1700. "id": "mcpw11-wait",
  1701. "description": "MCPW11 ToolSearch 关闭时,首个请求带 WaitForMcpServers;模型等待仍在连接的 server。",
  1702. "metadata": {
  1703. "kind": "main",
  1704. "source": "synthetic",
  1705. "timingPolicy": "fast-text",
  1706. "syntheticReason": "控制模型动作,验证 ToolSearch 关闭时 WaitForMcpServers 的固定定义、等待结果与锁存,以及就绪后的真实 stdio 调用。"
  1707. },
  1708. "maxMatches": 1,
  1709. "match": {
  1710. "method": "POST",
  1711. "pathIncludes": "/messages",
  1712. "lastUserMessageIncludes": ["E2E_MCPW11_WAIT"],
  1713. "bodyIncludes": ["E2E_MCPW11_WAIT", "WaitForMcpServers"],
  1714. "bodyExcludes": [
  1715. "Generate a concise title",
  1716. "CRITICAL: Respond with TEXT ONLY",
  1717. "toolu_mcpw11_wait"
  1718. ]
  1719. },
  1720. "response": {
  1721. "statusCode": 200,
  1722. "toolUse": {
  1723. "id": "toolu_mcpw11_wait",
  1724. "name": "WaitForMcpServers",
  1725. "input": {
  1726. "servers": ["slow11"]
  1727. }
  1728. }
  1729. }
  1730. },
  1731. {
  1732. "id": "mcpw11-ping",
  1733. "description": "MCPW11 等待结果之后,直接调用已就绪 server 的工具。",
  1734. "metadata": {
  1735. "kind": "main",
  1736. "source": "synthetic",
  1737. "timingPolicy": "fast-text",
  1738. "syntheticReason": "控制模型动作,验证 ToolSearch 关闭时 WaitForMcpServers 的固定定义、等待结果与锁存,以及就绪后的真实 stdio 调用。"
  1739. },
  1740. "maxMatches": 1,
  1741. "match": {
  1742. "method": "POST",
  1743. "pathIncludes": "/messages",
  1744. "bodyIncludes": ["E2E_MCPW11_WAIT", "toolu_mcpw11_wait", "mcp__slow11__ping"],
  1745. "bodyExcludes": [
  1746. "Generate a concise title",
  1747. "CRITICAL: Respond with TEXT ONLY",
  1748. "toolu_mcpw11_ping"
  1749. ]
  1750. },
  1751. "response": {
  1752. "statusCode": 200,
  1753. "toolUse": {
  1754. "id": "toolu_mcpw11_ping",
  1755. "name": "mcp__slow11__ping",
  1756. "input": {
  1757. "marker": "E2E_MCPW11_WAIT"
  1758. }
  1759. }
  1760. }
  1761. },
  1762. {
  1763. "id": "mcpw11-final",
  1764. "description": "MCPW11 收到真实调用结果。",
  1765. "metadata": {
  1766. "kind": "main",
  1767. "source": "synthetic",
  1768. "timingPolicy": "fast-text",
  1769. "syntheticReason": "控制模型动作,验证 ToolSearch 关闭时 WaitForMcpServers 的固定定义、等待结果与锁存,以及就绪后的真实 stdio 调用。"
  1770. },
  1771. "maxMatches": 1,
  1772. "match": {
  1773. "method": "POST",
  1774. "pathIncludes": "/messages",
  1775. "bodyIncludes": ["toolu_mcpw11_ping", "E2E_MCP_ASYNC_WAIT_PONG:E2E_MCPW11_WAIT"],
  1776. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  1777. },
  1778. "response": {
  1779. "statusCode": 200,
  1780. "text": "mcpw11-ok"
  1781. }
  1782. }
  1783. ]
  1784. }