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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-plugin-mcp-skill-installed-enabled",
  4. "spec": "./test/e2e/conversation-session/plugins/conversation-session-plugin-mcp-skill-installed-enabled.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "upstream-plugin-mcp-skill-installed-enabled-call",
  8. "description": "Plugin MCP skill installed+enabled: agent advertises mcp__plugin_e2e-plugin-mcp-ping_ping__ping as a tool, model uses it once.",
  9. "match": {
  10. "method": "POST",
  11. "pathIncludes": "/messages",
  12. "lastUserMessageIncludes": ["E2E_PLUGIN_MCP_PING_INSTALLED_ENABLED"],
  13. "bodyIncludes": ["E2E_PLUGIN_MCP_PING_INSTALLED_ENABLED"],
  14. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  15. },
  16. "replay": {
  17. "consumeOnce": true
  18. },
  19. "response": {
  20. "statusCode": 200,
  21. "toolUse": {
  22. "id": "toolu_e2e_plugin_mcp_ping_installed_enabled",
  23. "name": "mcp__plugin_e2e-plugin-mcp-ping_ping__ping",
  24. "input": {
  25. "message": "ping-installed-enabled"
  26. }
  27. }
  28. },
  29. "metadata": {
  30. "kind": "main",
  31. "source": "synthetic",
  32. "timingPolicy": "fast-text",
  33. "syntheticReason": "将旧专项回放原样归入本用例;真实 Agent 注册工具、工具调用和 Provider tools 数组仍由 E2E 断言。"
  34. }
  35. },
  36. {
  37. "id": "upstream-plugin-mcp-skill-installed-enabled-final",
  38. "description": "Plugin MCP skill installed+enabled: final assistant text after the plugin MCP tool_result.",
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/messages",
  42. "bodyIncludes": [
  43. "E2E_PLUGIN_MCP_PING_INSTALLED_ENABLED",
  44. "toolu_e2e_plugin_mcp_ping_installed_enabled"
  45. ],
  46. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  47. },
  48. "response": {
  49. "statusCode": 200,
  50. "text": "upstream-e2e-ok"
  51. },
  52. "metadata": {
  53. "kind": "main",
  54. "source": "synthetic",
  55. "timingPolicy": "fast-text",
  56. "syntheticReason": "将旧专项回放原样归入本用例;真实 Agent 注册工具、工具调用和 Provider tools 数组仍由 E2E 断言。"
  57. }
  58. },
  59. {
  60. "id": "plugin-mcp-installed-enabled-title",
  61. "metadata": {
  62. "kind": "common",
  63. "source": "synthetic",
  64. "timingPolicy": "fast-text",
  65. "syntheticReason": "固定辅助标题,避免独立回放依赖旧共享 fixture 池。"
  66. },
  67. "match": {
  68. "method": "POST",
  69. "pathIncludes": "/messages",
  70. "bodyIncludes": ["Generate a concise title", "E2E_PLUGIN_MCP_PING_INSTALLED_ENABLED"]
  71. },
  72. "response": {
  73. "statusCode": 200,
  74. "headers": {
  75. "content-type": "application/json; charset=utf-8"
  76. },
  77. "body": "{\"id\":\"msg_upstream_e2e_text\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Plugin MCP lifecycle\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":128,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":12,\"service_tier\":\"standard\"}}"
  78. }
  79. }
  80. ]
  81. }