From 28d7c0ef6c1eb976479f11561e8a195b62757a20 Mon Sep 17 00:00:00 2001 From: Luca Beurer-Kellner Date: Fri, 16 May 2025 21:40:43 +0200 Subject: [PATCH] use error-based failure response format by default --- gateway/mcp/mcp_context.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway/mcp/mcp_context.py b/gateway/mcp/mcp_context.py index 7ae4ad3..1aeffe0 100644 --- a/gateway/mcp/mcp_context.py +++ b/gateway/mcp/mcp_context.py @@ -95,9 +95,9 @@ class McpContext: ) parser.add_argument( "--failure-response-format", - help="The response format to use to communicate guardrail failures to the client (error: JSON-RPC error response; potentially invisble to the agent, content: JSON-RPC content response, visible to the agent)", + help="The response format to use to communicate guardrail failures to the client (error: JSON-RPC error response; potentially invisible to the agent, content: JSON-RPC content response, visible to the agent)", type=str, - default="content", + default="error", ) return parser.parse_known_args(cli_args)