conversation-session-plugin-mcp-skill-disabled.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-plugin-mcp-skill-disabled",
  4. "spec": "./test/e2e/conversation-session/plugins/conversation-session-plugin-mcp-skill-disabled.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "upstream-plugin-mcp-skill-disabled-noop",
  8. "description": "Plugin MCP skill disabled: agent must NOT advertise the namespaced tool even though the plugin is installed, so the model replies with a normal text turn (no tool_use).",
  9. "match": {
  10. "method": "POST",
  11. "pathIncludes": "/messages",
  12. "lastUserMessageIncludes": ["E2E_PLUGIN_MCP_PING_DISABLED"],
  13. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  14. },
  15. "response": {
  16. "statusCode": 200,
  17. "text": {
  18. "id": "msg_e2e_plugin_mcp_ping_disabled",
  19. "inputTokens": 32,
  20. "model": "deepseek-v4-flash",
  21. "outputTokens": 16,
  22. "text": "E2E_PLUGIN_MCP_PING_DISABLED_NOOP\nupstream-e2e-ok"
  23. }
  24. },
  25. "metadata": {
  26. "kind": "main",
  27. "source": "synthetic",
  28. "timingPolicy": "fast-text",
  29. "syntheticReason": "将旧专项回放原样归入本用例;真实 Agent 注册工具、工具调用和 Provider tools 数组仍由 E2E 断言。"
  30. }
  31. },
  32. {
  33. "id": "plugin-mcp-disabled-title",
  34. "metadata": {
  35. "kind": "common",
  36. "source": "synthetic",
  37. "timingPolicy": "fast-text",
  38. "syntheticReason": "固定辅助标题,避免独立回放依赖旧共享 fixture 池。"
  39. },
  40. "match": {
  41. "method": "POST",
  42. "pathIncludes": "/messages",
  43. "bodyIncludes": ["Generate a concise title", "E2E_PLUGIN_MCP_PING_DISABLED"]
  44. },
  45. "response": {
  46. "statusCode": 200,
  47. "headers": {
  48. "content-type": "application/json; charset=utf-8"
  49. },
  50. "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\"}}"
  51. }
  52. }
  53. ]
  54. }