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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-plugin-mcp-skill-workspace-enabled",
  4. "spec": "./test/e2e/conversation-session/conversation-session-plugin-mcp-skill-workspace-enabled.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "workspace-enabled-tool-call",
  8. "description": "Workspace Plugin enabled:模型收到并调用 namespaced MCP tool。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "tool-use",
  12. "source": "synthetic",
  13. "syntheticReason": "固定 tool_use,避免 provider 行为随机性影响 Plugin runtime 断言。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "lastUserMessageIncludes": ["E2E_PLUGIN_MCP_PING_INSTALLED_ENABLED"],
  19. "bodyIncludes": ["E2E_PLUGIN_MCP_PING_INSTALLED_ENABLED"],
  20. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  21. },
  22. "replay": { "consumeOnce": true },
  23. "response": {
  24. "statusCode": 200,
  25. "toolUse": {
  26. "id": "toolu_e2e_plugin_mcp_ping_workspace_enabled",
  27. "name": "mcp__plugin_e2e-plugin-mcp-ping_ping__ping",
  28. "input": { "message": "ping-workspace-enabled" }
  29. }
  30. }
  31. },
  32. {
  33. "id": "workspace-enabled-final",
  34. "description": "Workspace Plugin MCP tool_result 后的最终响应。",
  35. "metadata": {
  36. "kind": "main",
  37. "timingPolicy": "fast-text",
  38. "source": "synthetic",
  39. "syntheticReason": "固定最终文本,闭合 Workspace Plugin MCP runtime。"
  40. },
  41. "match": {
  42. "method": "POST",
  43. "pathIncludes": "/messages",
  44. "bodyIncludes": ["E2E_PLUGIN_MCP_PING_INSTALLED_ENABLED", "toolu_e2e_plugin_mcp_ping_workspace_enabled"],
  45. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  46. },
  47. "response": { "statusCode": 200, "text": "upstream-e2e-ok" }
  48. }
  49. ]
  50. }