conversation-session-plugin-mcp-skill-workspace-enabled.json 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-plugin-mcp-skill-workspace-enabled",
  4. "spec": "./test/e2e/conversation-session/plugins/conversation-session-plugin-mcp-skill-workspace-enabled.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "conversation-session-plugin-mcp-skill-workspace-enabled-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": "workspace-enabled-tool-call",
  31. "description": "Workspace Plugin enabled:模型收到并调用 namespaced MCP tool。",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "tool-use",
  35. "source": "synthetic",
  36. "syntheticReason": "固定 tool_use,避免 provider 行为随机性影响 Plugin runtime 断言。"
  37. },
  38. "match": {
  39. "method": "POST",
  40. "pathIncludes": "/messages",
  41. "lastUserMessageIncludes": ["E2E_PLUGIN_MCP_PING_INSTALLED_ENABLED"],
  42. "bodyIncludes": ["E2E_PLUGIN_MCP_PING_INSTALLED_ENABLED"],
  43. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  44. },
  45. "replay": {
  46. "consumeOnce": true
  47. },
  48. "response": {
  49. "statusCode": 200,
  50. "toolUse": {
  51. "id": "toolu_e2e_plugin_mcp_ping_workspace_enabled",
  52. "name": "mcp__plugin_e2e-plugin-mcp-ping_ping__ping",
  53. "input": {
  54. "message": "ping-workspace-enabled"
  55. }
  56. }
  57. }
  58. },
  59. {
  60. "id": "workspace-enabled-final",
  61. "description": "Workspace Plugin MCP tool_result 后的最终响应。",
  62. "metadata": {
  63. "kind": "main",
  64. "timingPolicy": "fast-text",
  65. "source": "synthetic",
  66. "syntheticReason": "固定最终文本,闭合 Workspace Plugin MCP runtime。"
  67. },
  68. "match": {
  69. "method": "POST",
  70. "pathIncludes": "/messages",
  71. "bodyIncludes": [
  72. "E2E_PLUGIN_MCP_PING_INSTALLED_ENABLED",
  73. "toolu_e2e_plugin_mcp_ping_workspace_enabled"
  74. ],
  75. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  76. },
  77. "response": {
  78. "statusCode": 200,
  79. "text": "upstream-e2e-ok"
  80. }
  81. }
  82. ]
  83. }