@@ -20,3 +20,113 @@ dependencies = ["fmt", "clippy", "test"]
2020[tasks .clippy-fix ]
2121command = " cargo"
2222args = [" clippy" , " --fix" , " --allow-dirty" ]
23+
24+
25+ [tasks .generate-examples ]
26+ dependencies = [
27+ " example-create-md" ,
28+ " example-create-md-plain" ,
29+ " example-create-server-info-html" ,
30+ " example-update-md" ,
31+ " example-update-md-plain" ,
32+ " example-update-md-plain" ,
33+ " example-update-md-inline" ,
34+ ]
35+
36+
37+ [tasks .example-create-md ]
38+ command = " cargo"
39+ args = [
40+ " run" ,
41+ " --" ,
42+ " create" ,
43+ " -t" ,
44+ " md" ,
45+ " -f" ,
46+ " docs/examples/create-md.md" ,
47+ " --" ,
48+ " npx" ,
49+ " -y" ,
50+ " @modelcontextprotocol/server-everything" ,
51+ ]
52+
53+ [tasks .example-create-md-plain ]
54+ command = " cargo"
55+ args = [
56+ " run" ,
57+ " --" ,
58+ " create" ,
59+ " -t" ,
60+ " md-plain" ,
61+ " -f" ,
62+ " docs/examples/create-md-plain.md" ,
63+ " --" ,
64+ " npx" ,
65+ " -y" ,
66+ " @modelcontextprotocol/server-everything" ,
67+ ]
68+
69+ [tasks .example-create-server-info-html ]
70+ command = " cargo"
71+ args = [
72+ " run" ,
73+ " --" ,
74+ " create" ,
75+ " -t" ,
76+ " html" ,
77+ " -f" ,
78+ " docs/examples/server-info.html" ,
79+ " --" ,
80+ " npx" ,
81+ " -y" ,
82+ " @modelcontextprotocol/server-everything" ,
83+ ]
84+
85+
86+ [tasks .example-update-md ]
87+ command = " cargo"
88+ args = [
89+ " run" ,
90+ " --" ,
91+ " update" ,
92+ " -t" ,
93+ " md" ,
94+ " -f" ,
95+ " docs/examples/update-md.md" ,
96+ " --" ,
97+ " npx" ,
98+ " -y" ,
99+ " @modelcontextprotocol/server-everything" ,
100+ ]
101+
102+
103+ [tasks .example-update-md-plain ]
104+ command = " cargo"
105+ args = [
106+ " run" ,
107+ " --" ,
108+ " update" ,
109+ " -t" ,
110+ " md-plain" ,
111+ " -f" ,
112+ " docs/examples/update-md-plain.md" ,
113+ " --" ,
114+ " npx" ,
115+ " -y" ,
116+ " @modelcontextprotocol/server-everything" ,
117+ ]
118+
119+
120+ [tasks .example-update-md-inline ]
121+ command = " cargo"
122+ args = [
123+ " run" ,
124+ " --" ,
125+ " update" ,
126+ " -f" ,
127+ " docs/examples/update-md-inline.md" ,
128+ " --" ,
129+ " npx" ,
130+ " -y" ,
131+ " @modelcontextprotocol/server-everything" ,
132+ ]
0 commit comments