You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Grow the README with the primary MCP builder (WithBedrockGovernance), DI
container (AddBedrockGovernance), and imperative kernel (AddBedrockGuardrailsPolicy
/ AddCloudWatchAudit) entry points that wire up policy, PII sanitization, and
audit together. Add the corresponding changelog message; no new csproj
dependencies (hosting/DI abstractions come transitively via
Microsoft.AgentGovernance and ModelContextProtocol).
Copy file name to clipboardExpand all lines: .autover/changes/AWS.Bedrock.MAG-initial-preview.json
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,8 @@
7
7
"Initial preview scaffold (0.1.0-preview): package infrastructure and a shared internal guardrail client wrapping ApplyGuardrail. User-facing features (policy backend, audit sink, PII sanitizer, high-level entry points) ship in follow-up preview releases.",
8
8
"Bedrock Guardrails policy backend: an IExternalPolicyBackend that evaluates tool-call context via ApplyGuardrail and denies calls that trip the guardrail. Fails closed on Bedrock/AWS errors by default. Wire it up imperatively with PolicyEngine.AddExternalBackend.",
9
9
"CloudWatch audit sink: subscribes to the toolkit's AuditEmitter and writes governance events to CloudWatch Logs via AWS.Logger.Core, aggregating per-agent/per-policy counters and publishing them as CloudWatch metrics on a configurable flush interval. Delivery is background and non-blocking; sink hiccups can't break the governance loop.",
10
-
"Bedrock Guardrails PII sanitization for MCP tool output: BedrockGuardrailsSanitizer runs the ANONYMIZE action on tool-result text blocks (30+ PII entity types). GovernedBedrockMcpServerTool decorates an MCP tool so sanitization runs after the toolkit's own scrubbing. Structured (non-text) tool content is passed through unchanged (post-v1 follow-up)."
10
+
"Bedrock Guardrails PII sanitization for MCP tool output: BedrockGuardrailsSanitizer runs the ANONYMIZE action on tool-result text blocks (30+ PII entity types). GovernedBedrockMcpServerTool decorates an MCP tool so sanitization runs after the toolkit's own scrubbing. Structured (non-text) tool content is passed through unchanged (post-v1 follow-up).",
11
+
"High-level entry points: WithBedrockGovernance on an MCP server builder, AddBedrockGovernance on IServiceCollection, and GovernanceKernel.AddBedrockGuardrailsPolicy / AddCloudWatchAudit for imperative wiring. BedrockGovernanceOptions carries umbrella Region/Credentials/FailClosed defaults that flow into each feature."
Copy file name to clipboardExpand all lines: src/AWS.Bedrock.MAG/README.md
+25-24Lines changed: 25 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
# AWS.Bedrock.MAG
2
2
3
-
AWS backends for [Microsoft's Agent Governance Toolkit](https://github.com/microsoft/agent-governance-toolkit). This package plugs AWS managed services into the toolkit's extension points so a .NET AI agent can pick up Bedrock-backed policy, PII sanitization, and durable audit with a few lines of configuration.
3
+
AWS backends for [Microsoft's Agent Governance Toolkit](https://github.com/microsoft/agent-governance-toolkit). This package plugs AWS managed services into the toolkit's existing extension points, so a .NET AI agent gets Bedrock-backed policy, PII sanitization, and durable audit with about two lines of configuration.
4
4
5
5
-**Bedrock Guardrails policy backend**: ML policy evaluation added alongside the toolkit's rule, OPA, and Cedar backends. Fails closed on error.
6
-
-**CloudWatch audit sink**: writes governance events to CloudWatch Logs with aggregated metrics.
7
6
-**Bedrock Guardrails PII sanitization**: redacts or blocks 30+ PII entity types in MCP tool output.
7
+
-**CloudWatch audit sink**: writes governance events to CloudWatch Logs with aggregated metrics.
8
8
9
-
> Preview (0.1.0). The API may change while the toolkit's extension surface stabilizes. Remaining features (high-level MCP/DI entry points, inline guardrail checks) ship in follow-up preview releases.
9
+
> Preview (0.1.0). The API may change while the toolkit's extension surface stabilizes. Inline guardrail checks (no pre-created Bedrock guardrail required) ship in a follow-up preview release.
// Requires a GovernanceKernel already in DI (from the toolkit).
40
45
```
41
46
42
-
### PII sanitization on MCP tool output
43
-
44
-
`BedrockGuardrailsSanitizer` runs the ANONYMIZE action on the text blocks of an MCP tool result. The MCP server wiring that plugs it in for you (via `WithBedrockGovernance`) lands in the next preview; in the meantime you can construct the sanitizer directly to feed it tool-result text:
0 commit comments