From a24d2f454924878e81d4a2d3c49a15adce9c5a51 Mon Sep 17 00:00:00 2001 From: skanehira Date: Fri, 22 Aug 2025 10:27:35 +0900 Subject: [PATCH 1/2] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 34a9a1b..5470717 100644 --- a/README.md +++ b/README.md @@ -73,10 +73,11 @@ For this, create a `~/.mcp-scan/guardrails_config.yml` with the following conten ```yml : # your client's shorthand (e.g., cursor, claude, windsurf) - : # your server's name according to the mcp config (e.g., whatsapp-mcp) + servers: + : # your server's name according to the mcp config (e.g., whatsapp-mcp) guardrails: secrets: block # block calls/results with secrets - + custom_guardrails: - name: "Filter tool results with 'error'" id: "error_filter_guardrail" From b5aceb205cc2287b34e14441a9f4f0b76cc64897 Mon Sep 17 00:00:00 2001 From: skanehira Date: Fri, 22 Aug 2025 10:30:30 +0900 Subject: [PATCH 2/2] Update README.md --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 5470717..ea2598c 100644 --- a/README.md +++ b/README.md @@ -75,17 +75,17 @@ For this, create a `~/.mcp-scan/guardrails_config.yml` with the following conten : # your client's shorthand (e.g., cursor, claude, windsurf) servers: : # your server's name according to the mcp config (e.g., whatsapp-mcp) - guardrails: - secrets: block # block calls/results with secrets - - custom_guardrails: - - name: "Filter tool results with 'error'" - id: "error_filter_guardrail" - action: block # or just 'log' - content: | - raise "An error was found." if: - (msg: ToolOutput) - "error" in msg.content + guardrails: + secrets: block # block calls/results with secrets + + custom_guardrails: + - name: "Filter tool results with 'error'" + id: "error_filter_guardrail" + action: block # or just 'log' + content: | + raise "An error was found." if: + (msg: ToolOutput) + "error" in msg.content ``` From then on, all calls proxied via `mcp-scan proxy` will be checked against your configured guardrailing rules for the current client/server.