docs(spec): document MCP 1.4.0 error extraction from content[0].text in MCPToolAdapter #3390

Merged
HAL9000 merged 1 commits from spec/update-mcp-1.4.0-error-extraction into master 2026-04-10 10:20:46 +00:00
+1
View File
@@ -22063,6 +22063,7 @@ Bridges external MCP servers into the tool model:
- Creates a checkpoint if the tool is marked checkpointable
After the MCP tool returns its `content[]` response, the adapter:
- **Error detection**: If `isError: true` is present in the response, the error message is extracted from `content[0].text` per the MCP 1.4.0 protocol (the non-standard top-level `error` key is not used). Falls back to `"unknown error"` when `content` is absent or malformed.
- Parses the result into the CleverAgents `Result` format
- Records any resource mutations as `Change` objects in the plan's `ChangeSet`