pub struct PluginManifest {Show 15 fields
pub name: String,
pub version: Option<String>,
pub description: Option<String>,
pub author: Option<Author>,
pub homepage: Option<String>,
pub repository: Option<String>,
pub license: Option<String>,
pub keywords: Vec<String>,
pub commands: ComponentPaths,
pub agents: ComponentPaths,
pub skills: ComponentPaths,
pub hooks: Option<Value>,
pub mcp_servers: Option<Value>,
pub lsp_servers: Option<Value>,
pub output_styles: ComponentPaths,
}Expand description
Official Claude Code plugin manifest structure
Fields§
§name: StringPlugin name (required)
version: Option<String>Plugin version
description: Option<String>Plugin description
Author information
homepage: Option<String>Homepage URL
repository: Option<String>Repository URL
license: Option<String>License
keywords: Vec<String>Keywords for discovery
commands: ComponentPathsAdditional command paths
agents: ComponentPathsAdditional agent paths
skills: ComponentPathsAdditional skill paths
hooks: Option<Value>Hook configuration path or inline
mcp_servers: Option<Value>MCP server configuration
lsp_servers: Option<Value>LSP server configuration
output_styles: ComponentPathsOutput styles paths
Implementations§
Source§impl PluginManifest
impl PluginManifest
Sourcepub fn load(profile_path: &Path) -> Result<Option<Self>>
pub fn load(profile_path: &Path) -> Result<Option<Self>>
Load plugin manifest from .claude-plugin/plugin.json
Sourcepub fn get_component_paths(&self) -> Vec<PathBuf>
pub fn get_component_paths(&self) -> Vec<PathBuf>
Get all component paths to scan Returns paths relative to profile root
Sourcepub fn has_explicit_paths(&self) -> bool
pub fn has_explicit_paths(&self) -> bool
Check if this manifest has explicit component paths
Trait Implementations§
Source§impl Clone for PluginManifest
impl Clone for PluginManifest
Source§fn clone(&self) -> PluginManifest
fn clone(&self) -> PluginManifest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginManifest
impl Debug for PluginManifest
Source§impl Default for PluginManifest
impl Default for PluginManifest
Source§fn default() -> PluginManifest
fn default() -> PluginManifest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PluginManifest
impl<'de> Deserialize<'de> for PluginManifest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PluginManifest
impl RefUnwindSafe for PluginManifest
impl Send for PluginManifest
impl Sync for PluginManifest
impl Unpin for PluginManifest
impl UnwindSafe for PluginManifest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more