@@ -38,12 +38,12 @@ pub fn get_tool_definitions() -> Vec<ToolDefinition> {
3838 input_schema: json!( {
3939 "type" : "object" ,
4040 "properties" : {
41- "spec " : {
41+ "specPath " : {
4242 "type" : "string" ,
4343 "description" : "Spec path or number (e.g., '170' or '170-cli-mcp')"
4444 }
4545 } ,
46- "required" : [ "spec " ] ,
46+ "required" : [ "specPath " ] ,
4747 "additionalProperties" : false
4848 } ) ,
4949 } ,
@@ -88,7 +88,7 @@ pub fn get_tool_definitions() -> Vec<ToolDefinition> {
8888 input_schema: json!( {
8989 "type" : "object" ,
9090 "properties" : {
91- "spec " : {
91+ "specPath " : {
9292 "type" : "string" ,
9393 "description" : "Spec path or number"
9494 } ,
@@ -117,7 +117,7 @@ pub fn get_tool_definitions() -> Vec<ToolDefinition> {
117117 "description" : "Tags to remove"
118118 }
119119 } ,
120- "required" : [ "spec " ] ,
120+ "required" : [ "specPath " ] ,
121121 "additionalProperties" : false
122122 } ) ,
123123 } ,
@@ -127,7 +127,7 @@ pub fn get_tool_definitions() -> Vec<ToolDefinition> {
127127 input_schema: json!( {
128128 "type" : "object" ,
129129 "properties" : {
130- "spec " : {
130+ "specPath " : {
131131 "type" : "string" ,
132132 "description" : "Specific spec to validate (validates all if not provided)"
133133 } ,
@@ -146,7 +146,7 @@ pub fn get_tool_definitions() -> Vec<ToolDefinition> {
146146 input_schema: json!( {
147147 "type" : "object" ,
148148 "properties" : {
149- "spec " : {
149+ "specPath " : {
150150 "type" : "string" ,
151151 "description" : "Spec path or number"
152152 } ,
@@ -156,7 +156,7 @@ pub fn get_tool_definitions() -> Vec<ToolDefinition> {
156156 "default" : 3
157157 }
158158 } ,
159- "required" : [ "spec " ] ,
159+ "required" : [ "specPath " ] ,
160160 "additionalProperties" : false
161161 } ) ,
162162 } ,
@@ -166,7 +166,7 @@ pub fn get_tool_definitions() -> Vec<ToolDefinition> {
166166 input_schema: json!( {
167167 "type" : "object" ,
168168 "properties" : {
169- "spec " : {
169+ "specPath " : {
170170 "type" : "string" ,
171171 "description" : "Spec to link from"
172172 } ,
@@ -175,7 +175,7 @@ pub fn get_tool_definitions() -> Vec<ToolDefinition> {
175175 "description" : "Spec to depend on"
176176 }
177177 } ,
178- "required" : [ "spec " , "dependsOn" ] ,
178+ "required" : [ "specPath " , "dependsOn" ] ,
179179 "additionalProperties" : false
180180 } ) ,
181181 } ,
@@ -185,7 +185,7 @@ pub fn get_tool_definitions() -> Vec<ToolDefinition> {
185185 input_schema: json!( {
186186 "type" : "object" ,
187187 "properties" : {
188- "spec " : {
188+ "specPath " : {
189189 "type" : "string" ,
190190 "description" : "Spec to unlink from"
191191 } ,
@@ -194,7 +194,7 @@ pub fn get_tool_definitions() -> Vec<ToolDefinition> {
194194 "description" : "Spec to remove from dependencies"
195195 }
196196 } ,
197- "required" : [ "spec " , "dependsOn" ] ,
197+ "required" : [ "specPath " , "dependsOn" ] ,
198198 "additionalProperties" : false
199199 } ) ,
200200 } ,
@@ -240,7 +240,7 @@ pub fn get_tool_definitions() -> Vec<ToolDefinition> {
240240 input_schema: json!( {
241241 "type" : "object" ,
242242 "properties" : {
243- "spec " : {
243+ "specPath " : {
244244 "type" : "string" ,
245245 "description" : "Specific spec (counts all if not provided)"
246246 }
@@ -325,9 +325,9 @@ fn tool_list(specs_dir: &str, args: Value) -> Result<String, String> {
325325}
326326
327327fn tool_view ( specs_dir : & str , args : Value ) -> Result < String , String > {
328- let spec_path = args. get ( "spec " )
328+ let spec_path = args. get ( "specPath " )
329329 . and_then ( |v| v. as_str ( ) )
330- . ok_or ( "Missing required parameter: spec " ) ?;
330+ . ok_or ( "Missing required parameter: specPath " ) ?;
331331
332332 let loader = SpecLoader :: new ( specs_dir) ;
333333 let spec = loader. load ( spec_path) . map_err ( |e| e. to_string ( ) ) ?
@@ -389,9 +389,9 @@ fn tool_create(specs_dir: &str, args: Value) -> Result<String, String> {
389389}
390390
391391fn tool_update ( specs_dir : & str , args : Value ) -> Result < String , String > {
392- let spec_path = args. get ( "spec " )
392+ let spec_path = args. get ( "specPath " )
393393 . and_then ( |v| v. as_str ( ) )
394- . ok_or ( "Missing required parameter: spec " ) ?;
394+ . ok_or ( "Missing required parameter: specPath " ) ?;
395395
396396 let loader = SpecLoader :: new ( specs_dir) ;
397397 let spec = loader. load ( spec_path) . map_err ( |e| e. to_string ( ) ) ?
@@ -475,7 +475,7 @@ fn tool_validate(specs_dir: &str, args: Value) -> Result<String, String> {
475475
476476 let mut issues = Vec :: new ( ) ;
477477
478- let specs_to_validate = if let Some ( spec_path) = args. get ( "spec " ) . and_then ( |v| v. as_str ( ) ) {
478+ let specs_to_validate = if let Some ( spec_path) = args. get ( "specPath " ) . and_then ( |v| v. as_str ( ) ) {
479479 let spec = loader. load ( spec_path) . map_err ( |e| e. to_string ( ) ) ?
480480 . ok_or_else ( || format ! ( "Spec not found: {}" , spec_path) ) ?;
481481 vec ! [ spec]
@@ -509,9 +509,9 @@ fn tool_validate(specs_dir: &str, args: Value) -> Result<String, String> {
509509}
510510
511511fn tool_deps ( specs_dir : & str , args : Value ) -> Result < String , String > {
512- let spec_path = args. get ( "spec " )
512+ let spec_path = args. get ( "specPath " )
513513 . and_then ( |v| v. as_str ( ) )
514- . ok_or ( "Missing required parameter: spec " ) ?;
514+ . ok_or ( "Missing required parameter: specPath " ) ?;
515515
516516 let _depth = args. get ( "depth" ) . and_then ( |v| v. as_u64 ( ) ) . unwrap_or ( 3 ) as usize ;
517517
@@ -545,9 +545,9 @@ fn tool_deps(specs_dir: &str, args: Value) -> Result<String, String> {
545545}
546546
547547fn tool_link ( specs_dir : & str , args : Value ) -> Result < String , String > {
548- let spec_path = args. get ( "spec " )
548+ let spec_path = args. get ( "specPath " )
549549 . and_then ( |v| v. as_str ( ) )
550- . ok_or ( "Missing required parameter: spec " ) ?;
550+ . ok_or ( "Missing required parameter: specPath " ) ?;
551551
552552 let depends_on = args. get ( "dependsOn" )
553553 . and_then ( |v| v. as_str ( ) )
@@ -587,9 +587,9 @@ fn tool_link(specs_dir: &str, args: Value) -> Result<String, String> {
587587}
588588
589589fn tool_unlink ( specs_dir : & str , args : Value ) -> Result < String , String > {
590- let spec_path = args. get ( "spec " )
590+ let spec_path = args. get ( "specPath " )
591591 . and_then ( |v| v. as_str ( ) )
592- . ok_or ( "Missing required parameter: spec " ) ?;
592+ . ok_or ( "Missing required parameter: specPath " ) ?;
593593
594594 let depends_on = args. get ( "dependsOn" )
595595 . and_then ( |v| v. as_str ( ) )
@@ -736,7 +736,7 @@ fn tool_tokens(specs_dir: &str, args: Value) -> Result<String, String> {
736736 let loader = SpecLoader :: new ( specs_dir) ;
737737 let counter = TokenCounter :: new ( ) ;
738738
739- if let Some ( spec_path) = args. get ( "spec " ) . and_then ( |v| v. as_str ( ) ) {
739+ if let Some ( spec_path) = args. get ( "specPath " ) . and_then ( |v| v. as_str ( ) ) {
740740 let spec = loader. load ( spec_path) . map_err ( |e| e. to_string ( ) ) ?
741741 . ok_or_else ( || format ! ( "Spec not found: {}" , spec_path) ) ?;
742742
0 commit comments