pub struct SaveSkillParams {
pub server_id: String,
pub content: String,
pub output_path: Option<PathBuf>,
pub overwrite: bool,
}Expand description
Parameters for saving a skill.
§Examples
use mcp_execution_skill::types::SaveSkillParams;
let params = SaveSkillParams {
server_id: "github".to_string(),
content: "---\nname: github\n---\n# GitHub".to_string(),
output_path: None,
overwrite: false,
};Fields§
§server_id: StringServer identifier.
Must be 1-64 lowercase letters, digits, or hyphens (see validate_server_id’s
MAX_SERVER_ID_LENGTH, mirrored here as a literal since schemars attributes cannot
reference a const).
content: StringSKILL.md content (markdown with YAML frontmatter).
Capped at 100KB (MAX_SKILL_CONTENT_SIZE in mcp_execution_server::service) at
runtime; mirrored here as a literal since schemars attributes require literals and
this crate does not depend on mcp-execution-server (the dependency runs the other
way). Note: JSON Schema’s maxLength counts Unicode code points, not bytes, so the two
bounds only coincide exactly for ASCII input — for legitimate multi-byte UTF-8 content,
the runtime byte check can reject content the declared schema would still accept
(never the reverse), since bytes-per-char >= 1 (issue #198 M2).
output_path: Option<PathBuf>Custom output path.
Default: ~/.claude/skills/{server_id}/SKILL.md
overwrite: boolOverwrite if exists.
Trait Implementations§
Source§impl Clone for SaveSkillParams
impl Clone for SaveSkillParams
Source§fn clone(&self) -> SaveSkillParams
fn clone(&self) -> SaveSkillParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SaveSkillParams
impl Debug for SaveSkillParams
Source§impl<'de> Deserialize<'de> for SaveSkillParams
impl<'de> Deserialize<'de> for SaveSkillParams
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>,
Source§impl JsonSchema for SaveSkillParams
impl JsonSchema for SaveSkillParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more