From d719da8666dec95cdfc46f43ab24b845c3b4f665 Mon Sep 17 00:00:00 2001 From: Jon Galloway Date: Thu, 5 Nov 2026 21:37:39 -0800 Subject: [PATCH] Document governance startup and confirmation limits Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- README.md | 4 +++- doc/mcp-governance.md | 16 +++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d092787..f2315a8 100644 --- a/README.md +++ b/README.md @@ -187,7 +187,9 @@ The MCP server uses official .NET SDK APIs and CLI commands, ensuring: - Agent Governance Toolkit repository: https://github.com/microsoft/agent-governance-toolkit - Agent Governance Toolkit for .NET: https://github.com/microsoft/agent-governance-toolkit/tree/main/agent-governance-dotnet - Announcement: https://devblogs.microsoft.com/dotnet/announcing-agent-governance-toolkit-mcp-extensions-for-dotnet/ - - Startup scanning, policy-based tool authorization, and response sanitization can be enabled with: + - Configuration for startup scanning, policy-based tool authorization, and response sanitization uses the following shape: + +> **Governance startup limitation:** Setting `McpGovernance:Enabled` to `true` with the full tool catalog currently **fails startup** because the toolkit scanner rejects the existing `dotnet_dev_certs.password` input property. The example below is not a working full-catalog workaround, and an allow policy does not bypass startup scanning. See the [startup restriction and operating guidance](doc/mcp-governance.md#sdk-compatibility-and-startup-restriction). Leaving governance disabled permits ordinary server use but provides no governance enforcement. ```json "McpGovernance": { diff --git a/doc/mcp-governance.md b/doc/mcp-governance.md index cbdadf1..3c8d221 100644 --- a/doc/mcp-governance.md +++ b/doc/mcp-governance.md @@ -4,6 +4,8 @@ Governance is disabled by default. When enabled, you can provide one or more policy files through `McpGovernance:PolicyPaths`. +> **Current limitation:** Enabling governance with the full tool catalog fails startup. The configuration and policy examples below describe configuration syntax, not a working full-catalog workaround. + ## SDK compatibility and startup restriction The current governance extension is **5.0.0**, used with MCP SDK **2.3.0**. The SDK 2.0 migration initially used governance 4.0.0; those package versions are no longer the current dependency pins. Compatibility tests exercise allow/deny policies with production tools for inline and Tasks execution, and confirmation through MRTR and task input updates. @@ -12,6 +14,18 @@ The current governance extension is **5.0.0**, used with MCP SDK **2.3.0**. The The server keeps `ScanToolsOnStartup`, `FailOnUnsafeTools`, policy enforcement, authentication requirements, and response sanitization unchanged. Enabling governance with the full catalog therefore fails startup rather than silently accepting the flagged schema, preserving the baseline fail-closed behavior. The tests separately verify that rejection and policy/MRTR/Tasks compatibility on a safe subset of production tools with scanning still enabled. The package upgrade does not resolve the independent full-catalog startup limitation; that still requires an upstream scanner fix or an explicitly approved governance-policy change. +There is currently no supported full-catalog workaround documented here. An allow policy does not bypass startup scanning, and the safe subset used by integration tests is not a supported runtime catalog-selection option. Do not disable scanning, relax fail-closed behavior, or rename the certificate password parameter to evade the finding. + +Leave `McpGovernance:Enabled` set to `false` (the default) for ordinary server use without governance. This supplies **no governance enforcement** and is not an equivalent security workaround. If your deployment requires governance, the full-catalog startup restriction remains a blocker. + +## Destructive-operation confirmation depends on client elicitation + +**MCP confirmation prompts require client elicitation support**, independently of whether governance is enabled. Project Clean, solution Remove, actual EF DatabaseDrop, CertificateClean, SecretsRemove, and SecretsClear request confirmation when the client advertises elicitation. Native ordinary calls use multi-round-trip requests (MRTR), legacy clients use `elicitation/create`, and opted-in Tasks suspend for input until `tasks/update` supplies the answer. MRTR and Tasks do not remove the elicitation requirement. + +For these prompted operations, only an accepted response with `confirmed: true` proceeds. Declined, cancelled, false, missing, or mistyped confirmation does not authorize execution; failed input exchanges are errors, not implicit approval. Clients without elicitation retain the existing **unprompted behavior**, as do direct calls without an MCP server. Actual EF DatabaseDrop still independently requires `force=true`; `dryRun=true` does not require force or request confirmation. + +Confirmation is a selective human-in-the-loop safeguard, **not an authorization boundary** or a blanket prompt for every mutation. Continue using client permissions and independent backups; do not rely on confirmation as a substitute for governance enforcement. See the [destructive-operation confirmation policy](sdk-v1.1-compatibility.md#destructive-operation-confirmation) for action-level coverage, consequences, and protocol details. + ## Example appsettings configuration ```json @@ -42,7 +56,7 @@ rules: ## Notes - This repository intentionally does not bundle a default policy file for runtime enforcement. -- The sample above is a starting point; tune actions and conditions to your environment and threat model. +- The sample above illustrates policy syntax; it does not resolve the full-catalog startup restriction. Tune actions and conditions to your environment and threat model. - If no policy paths are provided, governance behavior depends on the toolkit defaults and your runtime options. ## References