systemprompt_models/services/bridge_policy.rs
1//! Instance-level policy the bridge enforces on managed client installations.
2//!
3//! Configured as a top-level `bridge_policy:` section in a services YAML and
4//! carried to clients inside the signed bridge manifest. The only knob today is
5//! whether Claude Code's managed-MCP policy re-allows claude.ai first-party
6//! connectors (`allowAllClaudeAiMcps`) alongside the managed server set —
7//! without it, writing `managed-mcp.json` suppresses every connector the user
8//! linked on claude.ai.
9//!
10//! Copyright (c) systemprompt.io — Business Source License 1.1.
11//! See <https://systemprompt.io> for licensing details.
12
13use serde::{Deserialize, Serialize};
14
15#[derive(Debug, Clone, Copy, Default, Serialize, Deserialize)]
16#[serde(deny_unknown_fields)]
17pub struct BridgePolicyConfig {
18 #[serde(default)]
19 pub allow_claude_ai_connectors: bool,
20}