mirror of
https://github.com/morluto/rea
synced 2026-10-25 22:08:11 -04:00
fix(mcp): preserve target provenance on retained partial errors
This commit is contained in:
@@ -70,6 +70,7 @@ export const createEvidenceToolHandler =
|
||||
result.error,
|
||||
partial.evidence_id,
|
||||
recorded,
|
||||
contract.returnsTargetContent,
|
||||
);
|
||||
}
|
||||
return server.delivery.toCallToolResult(result, contract);
|
||||
|
||||
@@ -90,6 +90,9 @@ it.each(["cancelled", "cleanup"])(
|
||||
arguments: input,
|
||||
});
|
||||
expect(response.isError).toBe(true);
|
||||
expect(response._meta).toEqual({
|
||||
provenance: { untrusted_content: true, source: "analysis_target" },
|
||||
});
|
||||
expect(parseMcpToolError(response)).toMatchObject({
|
||||
error: {
|
||||
details: {
|
||||
|
||||
Reference in New Issue
Block a user