File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ version.workspace = true
4
4
authors.workspace = true
5
5
edition = " 2024"
6
6
license-file = " ../LICENSE"
7
+ default-run = " apollo-mcp-server"
7
8
8
9
[dependencies ]
9
10
anyhow = " 1.0.98"
@@ -43,3 +44,12 @@ tracing-test = "0.2.5"
43
44
44
45
[lints ]
45
46
workspace = true
47
+
48
+ [[bin ]]
49
+ name = " apollo-mcp-server"
50
+ path = " src/main.rs"
51
+
52
+ [[bin ]]
53
+ name = " config-schema"
54
+ path = " src/config_schema.rs"
55
+ test = false
Original file line number Diff line number Diff line change
1
+ //! Binary to output the JSON Schema for Apollo MCP Server configuration files
2
+
3
+ // Most runtime code is unused by this binary
4
+ #![ allow( unused_imports, dead_code) ]
5
+
6
+ use anyhow:: Context ;
7
+ use schemars:: schema_for;
8
+
9
+ mod runtime;
10
+
11
+ fn main ( ) -> anyhow:: Result < ( ) > {
12
+ println ! (
13
+ "{}" ,
14
+ serde_json:: to_string_pretty( & schema_for!( runtime:: Config ) )
15
+ . with_context( || "Failed to generate schema" ) ?
16
+ ) ;
17
+ Ok ( ( ) )
18
+ }
You can’t perform that action at this time.
0 commit comments