conversation-session-mcp-oauth-status-isolation.json 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-mcp-oauth-status-isolation",
  4. "spec": "./test/e2e/conversation-session/conversation-session-mcp-oauth-status-isolation.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "upstream-mcp-oauth-status-isolation-direct-call",
  8. "description": "OAuth 授权完成后先调用仍保持连接的用户级 stdio MCP ping 工具。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "稳定触发用户级 stdio MCP 的真实 tools/call,避免依赖模型自行选择工具。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "lastUserMessageIncludes": ["E2E_MCP_OAUTH_STATUS_ISOLATION"],
  20. "bodyIncludes": [
  21. "E2E_MCP_OAUTH_STATUS_ISOLATION",
  22. "mcp__everything__ping",
  23. "mcp__plain_http__ping"
  24. ],
  25. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  26. },
  27. "response": {
  28. "statusCode": 200,
  29. "toolUse": {
  30. "id": "toolu_e2e_mcp_oauth_status_isolation_direct",
  31. "name": "mcp__everything__ping",
  32. "input": {
  33. "marker": "E2E_MCP_OAUTH_STATUS_ISOLATION"
  34. }
  35. }
  36. }
  37. },
  38. {
  39. "id": "upstream-mcp-oauth-status-isolation-http-call",
  40. "description": "消费 stdio MCP tool_result 后调用普通无鉴权 HTTP MCP ping 工具。",
  41. "metadata": {
  42. "kind": "main",
  43. "timingPolicy": "fast-text",
  44. "source": "synthetic",
  45. "syntheticReason": "证明 OAuth status refresh 后 stdio MCP tool_result 能进入 provider continuation,并继续选择普通 HTTP MCP。"
  46. },
  47. "maxMatches": 1,
  48. "match": {
  49. "method": "POST",
  50. "pathIncludes": "/messages",
  51. "bodyIncludes": [
  52. "E2E_MCP_OAUTH_STATUS_ISOLATION",
  53. "toolu_e2e_mcp_oauth_status_isolation_direct",
  54. "E2E_MCP_DIRECT_PONG:E2E_MCP_OAUTH_STATUS_ISOLATION",
  55. "mcp__plain_http__ping"
  56. ],
  57. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  58. },
  59. "response": {
  60. "statusCode": 200,
  61. "toolUse": {
  62. "id": "toolu_e2e_mcp_oauth_status_isolation_http",
  63. "name": "mcp__plain_http__ping",
  64. "input": {
  65. "marker": "E2E_MCP_OAUTH_STATUS_ISOLATION"
  66. }
  67. }
  68. }
  69. },
  70. {
  71. "id": "upstream-mcp-oauth-status-isolation-final",
  72. "description": "消费 stdio 与普通 HTTP MCP 的真实 tool_result 并完成会话。",
  73. "metadata": {
  74. "kind": "main",
  75. "timingPolicy": "fast-text",
  76. "source": "synthetic",
  77. "syntheticReason": "证明两类用户 MCP 的 tool_result 都能进入 provider continuation。"
  78. },
  79. "maxMatches": 1,
  80. "match": {
  81. "method": "POST",
  82. "pathIncludes": "/messages",
  83. "bodyIncludes": [
  84. "E2E_MCP_OAUTH_STATUS_ISOLATION",
  85. "toolu_e2e_mcp_oauth_status_isolation_direct",
  86. "E2E_MCP_DIRECT_PONG:E2E_MCP_OAUTH_STATUS_ISOLATION",
  87. "toolu_e2e_mcp_oauth_status_isolation_http",
  88. "E2E_MCP_HTTP_PONG:E2E_MCP_OAUTH_STATUS_ISOLATION"
  89. ],
  90. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  91. },
  92. "response": {
  93. "statusCode": 200,
  94. "text": "upstream-e2e-ok"
  95. }
  96. }
  97. ]
  98. }