#[non_exhaustive]pub struct PluginConfig {
pub mcp_servers: Option<BTreeMap<String, BTreeMap<String, OptionValue>>>,
pub options: Option<BTreeMap<String, OptionValue>>,
pub extra: Extra,
}Expand description
A value of pluginConfigs: a plugin’s user configuration.
Store the non-sensitive answers you give a plugin’s
userConfig
configuration dialog, keyed by plugin ID. Claude Code writes this key to your user settings
when you fill in the dialog, so you don’t need to edit it by hand. Claude Code stores
sensitive options in the macOS Keychain instead, falling back to
~/.claude/.credentials.json when the Keychain rejects the write; on platforms without a
supported keychain, it stores them in ~/.claude/.credentials.json.
Docs: pluginConfigs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mcp_servers: Option<BTreeMap<String, BTreeMap<String, OptionValue>>>User configuration values for MCP servers keyed by server name.
- Values: object
- Default: unset
Docs: mcpServers.
options: Option<BTreeMap<String, OptionValue>>Non-sensitive option values from the plugin manifest’s userConfig, keyed by option name. Sensitive values go to secure storage instead.
- Values: object
- Default: unset
Docs: options.
extra: ExtraKeys Claude Code accepts here that this crate doesn’t model (newer or undocumented ones), kept as written so the document round-trips.