conversation-session-plugin-mcp-skill-workspace-root.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-plugin-mcp-skill-workspace-root",
  4. "spec": "./test/e2e/conversation-session/conversation-session-plugin-mcp-skill-workspace-root.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "workspace-root-tool-call",
  8. "description": "项目 Plugin root 被 runtime discovery 读取并调用 namespaced MCP tool。",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "tool-use",
  12. "source": "synthetic",
  13. "syntheticReason": "固定 tool_use,证明不依赖 User installed record 的项目 root 激活。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "lastUserMessageIncludes": ["E2E_PLUGIN_MCP_PING_WORKSPACE_ROOT"],
  19. "bodyIncludes": ["E2E_PLUGIN_MCP_PING_WORKSPACE_ROOT"],
  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_root",
  27. "name": "mcp__plugin_e2e-plugin-mcp-ping_ping__ping",
  28. "input": { "message": "ping-workspace-root" }
  29. }
  30. }
  31. },
  32. {
  33. "id": "workspace-root-final",
  34. "description": "项目 Plugin root MCP 最终响应。",
  35. "metadata": {
  36. "kind": "main",
  37. "timingPolicy": "fast-text",
  38. "source": "synthetic",
  39. "syntheticReason": "固定最终文本,闭合 project root runtime。"
  40. },
  41. "match": {
  42. "method": "POST",
  43. "pathIncludes": "/messages",
  44. "bodyIncludes": ["E2E_PLUGIN_MCP_PING_WORKSPACE_ROOT", "toolu_e2e_plugin_mcp_ping_workspace_root"],
  45. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  46. },
  47. "response": { "statusCode": 200, "text": "upstream-e2e-ok" }
  48. }
  49. ]
  50. }