{"version":"2.1.328","anchor":"mcp-server-policy-now-passed-when-a-session-binding-is-torn","canonical_anchor":"mcp-server-policy-now-passed-when-a-session-binding-is-torn","heading":"MCP server policy is applied when a session's connection is closed","tier":"internal","area":"MCP","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/mcp-server-policy-now-passed-when-a-session-binding-is-torn","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### MCP server policy is applied when a session's connection is closed\n\nClosing a session's connection now takes the `mcpServerPolicy` deny rules into account, and policy errors carry the blocked server's settings\n\n**Unclear.** It is not clear what a reader now sees or experiences differently.\n\n**What**\n\nMCP servers are outside services that give Claude extra tools. When Claude Code closes a session's connection, the cleanup step now also receives the deny rules from `mcpServerPolicy`. The error raised when a server is blocked by that policy now also receives the server's settings.\n\n**Why**\n\nThe MCP deny policy now reaches session cleanup and the errors you see when a server is blocked.\n\n- Area: MCP\n- Names: `mcpServerPolicy`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: org\n- Heads-up: no"}