File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed
Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ GET /v0/servers/a5e8a7f0-d4e4-4a1d-b12f-2896a23fd4f1?version=0.0.3
5959 "name" : " npm" ,
6060 "package_name" : " @modelcontextprotocol/server-filesystem" ,
6161 "license" : " MIT" ,
62- "command_arguments" : {
62+ "command" : {
63+ "name" : " npx" ,
6364 "subcommands" : [],
6465 "positional_arguments" : [
6566 {
@@ -107,7 +108,8 @@ GET /v0/servers/a5e8a7f0-d4e4-4a1d-b12f-2896a23fd4f1?version=0.0.3
107108 "name" : " docker" ,
108109 "package_name" : " mcp/filesystem" ,
109110 "license" : " MIT" ,
110- "command_arguments" : {
111+ "command" : {
112+ "name" : " docker" ,
111113 "subcommands" : [
112114 {
113115 "name" : " run" ,
@@ -209,7 +211,8 @@ API Response:
209211 "name" : " npm" ,
210212 "package_name" : " @modelcontextprotocol/server-brave-search" ,
211213 "license" : " MIT" ,
212- "command_arguments" : {
214+ "command" : {
215+ "name" : " npx" ,
213216 "subcommands" : [],
214217 "positional_arguments" : [],
215218 "named_arguments" : [
@@ -271,7 +274,8 @@ API Response:
271274 "name" : " docker" ,
272275 "package_name" : " mcp/filesystem" ,
273276 "license" : " MIT" ,
274- "command_arguments" : {
277+ "command" : {
278+ "name" : " docker" ,
275279 "subcommands" : [
276280 {
277281 "name" : " run" ,
Original file line number Diff line number Diff line change @@ -231,9 +231,13 @@ components:
231231 items :
232232 $ref : ' #/components/schemas/NamedArgument'
233233
234- CommandArguments :
234+ Command :
235235 type : object
236236 properties :
237+ name :
238+ type : string
239+ enum : [npx, docker, pypi, uvx] # TODO: Add all supported commands as a whitelist
240+ example : " npx"
237241 subcommands :
238242 type : array
239243 items :
@@ -282,8 +286,8 @@ components:
282286 license :
283287 type : string
284288 example : " MIT"
285- command_arguments :
286- $ref : ' #/components/schemas/CommandArguments '
289+ command :
290+ $ref : ' #/components/schemas/Command '
287291 environment_variables :
288292 type : array
289293 items :
You can’t perform that action at this time.
0 commit comments