{ "version": 1, "caseName": "conversation-session-plugin-mcp-skill-workspace-root", "spec": "./test/e2e/conversation-session/plugins/conversation-session-plugin-mcp-skill-workspace-root.test.ts", "fixtures": [ { "id": "conversation-session-plugin-mcp-skill-workspace-root-title-sidecar", "description": "本例标题旁路响应。", "metadata": { "kind": "common", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "运行时证据显示标题旁路缺少响应;在本例显式登记固定标题,避免依赖 legacy fixture 或触发后台网络重试。" }, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["Generate a concise title"] }, "response": { "statusCode": 200, "statusMessage": "OK", "headers": { "content-type": "application/json; charset=utf-8" }, "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\"}}" } }, { "id": "workspace-root-blocked", "description": "项目目录插件待信任时被强制停用,普通对话仍可完成。", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "固定文本响应,验证待信任时模型请求没有工作区目录插件的 MCP 工具。" }, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_PLUGIN_MCP_PING_WORKSPACE_ROOT"], "bodyIncludes": ["E2E_PLUGIN_MCP_PING_WORKSPACE_ROOT"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": "upstream-e2e-ok" } }, { "id": "workspace-root-trusted-tool-call", "description": "用户在设置页信任项目目录插件后,新会话调用其 namespaced MCP tool。", "metadata": { "kind": "main", "timingPolicy": "tool-use", "source": "synthetic", "syntheticReason": "固定 tool_use,证明信任后新会话加载项目目录插件的 MCP。" }, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_PLUGIN_MCP_PING_WORKSPACE_TRUSTED"], "bodyIncludes": ["E2E_PLUGIN_MCP_PING_WORKSPACE_TRUSTED"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "replay": { "consumeOnce": true }, "response": { "statusCode": 200, "toolUse": { "id": "toolu_e2e_plugin_mcp_ping_workspace_trusted", "name": "mcp__plugin_e2e-plugin-mcp-ping_ping__ping", "input": { "message": "ping-workspace-trusted" } } } }, { "id": "workspace-root-trusted-final", "description": "信任后项目目录插件 MCP tool_result 之后的最终响应。", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "固定最终文本,闭合信任后的 project root runtime。" }, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": [ "E2E_PLUGIN_MCP_PING_WORKSPACE_TRUSTED", "toolu_e2e_plugin_mcp_ping_workspace_trusted" ], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": "upstream-e2e-ok" } } ] }