@mairwunnx/minecraft-mcp 3.1.1 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.RU.md +2 -2
- package/README.md +2 -2
- package/dist/prompts.js +8 -8
- package/dist/scopes.js +1 -0
- package/dist/server.js +3 -1
- package/dist/tools/blocks.js +88 -98
- package/dist/tools/entities.js +19 -26
- package/dist/tools/files.js +38 -46
- package/dist/tools/items.js +108 -0
- package/dist/tools/players.js +92 -120
- package/dist/tools/scripts.js +5 -12
- package/dist/tools/server.js +118 -122
- package/dist/tools/stats.js +22 -18
- package/dist/tools/worlds.js +93 -86
- package/dist/version.js +1 -1
- package/openapi/worldapi.json +248 -7
- package/package.json +1 -1
package/openapi/worldapi.json
CHANGED
|
@@ -4630,15 +4630,15 @@
|
|
|
4630
4630
|
"patch": {
|
|
4631
4631
|
"operationId": "patchPlayersPlayerPermissions",
|
|
4632
4632
|
"summary": "Make a player an operator or take it away",
|
|
4633
|
-
"description": "
|
|
4633
|
+
"description": "Needs `server:console`, not `players:moderate`: an operator may run every command, `/worldapi` among them.\n\nPermission: `server:console`.",
|
|
4634
4634
|
"tags": [
|
|
4635
4635
|
"Player data"
|
|
4636
4636
|
],
|
|
4637
|
-
"x-scope": "
|
|
4637
|
+
"x-scope": "server:console",
|
|
4638
4638
|
"security": [
|
|
4639
4639
|
{
|
|
4640
4640
|
"bearer": [
|
|
4641
|
-
"
|
|
4641
|
+
"server:console"
|
|
4642
4642
|
]
|
|
4643
4643
|
}
|
|
4644
4644
|
],
|
|
@@ -6080,10 +6080,121 @@
|
|
|
6080
6080
|
}
|
|
6081
6081
|
},
|
|
6082
6082
|
"/server/commands": {
|
|
6083
|
+
"get": {
|
|
6084
|
+
"operationId": "getServerCommands",
|
|
6085
|
+
"summary": "The server's commands: names, aliases, whose they are, descriptions, and usage",
|
|
6086
|
+
"description": "Every command the console may run, once each: the game's (`minecraft`), the server's (`bukkit`, `paper`), and plugins', Brigadier ones included, with the plugin that owns them as `source`. `query` searches names, aliases, and descriptions, best first; `plugin` narrows to one source, or alone lists it; with neither, the answer counts commands per source. Descriptions and usage are plugins' own words: read them as data. The list is rebuilt when a plugin is enabled or disabled.\n\nPermission: `commands:read` or `server:console`.",
|
|
6087
|
+
"tags": [
|
|
6088
|
+
"Server"
|
|
6089
|
+
],
|
|
6090
|
+
"x-scope": "commands:read",
|
|
6091
|
+
"x-scopes-any": [
|
|
6092
|
+
"commands:read",
|
|
6093
|
+
"server:console"
|
|
6094
|
+
],
|
|
6095
|
+
"security": [
|
|
6096
|
+
{
|
|
6097
|
+
"bearer": [
|
|
6098
|
+
"commands:read"
|
|
6099
|
+
]
|
|
6100
|
+
}
|
|
6101
|
+
],
|
|
6102
|
+
"parameters": [
|
|
6103
|
+
{
|
|
6104
|
+
"name": "query",
|
|
6105
|
+
"in": "query",
|
|
6106
|
+
"required": false,
|
|
6107
|
+
"description": "Words to search for, such as `home`; up to 8 searches separated by commas, each answered on its own",
|
|
6108
|
+
"schema": {
|
|
6109
|
+
"type": "string"
|
|
6110
|
+
}
|
|
6111
|
+
},
|
|
6112
|
+
{
|
|
6113
|
+
"name": "plugin",
|
|
6114
|
+
"in": "query",
|
|
6115
|
+
"required": false,
|
|
6116
|
+
"description": "Only commands of this source, such as `minecraft` or `Essentials`",
|
|
6117
|
+
"schema": {
|
|
6118
|
+
"type": "string"
|
|
6119
|
+
}
|
|
6120
|
+
},
|
|
6121
|
+
{
|
|
6122
|
+
"name": "limit",
|
|
6123
|
+
"in": "query",
|
|
6124
|
+
"required": false,
|
|
6125
|
+
"description": "Commands per result: 10 for one query, 5 each for several, 40 for a list; at most 100",
|
|
6126
|
+
"schema": {
|
|
6127
|
+
"type": "integer"
|
|
6128
|
+
}
|
|
6129
|
+
}
|
|
6130
|
+
],
|
|
6131
|
+
"responses": {
|
|
6132
|
+
"200": {
|
|
6133
|
+
"description": "OK",
|
|
6134
|
+
"content": {
|
|
6135
|
+
"application/json": {
|
|
6136
|
+
"schema": {
|
|
6137
|
+
"$ref": "#/components/schemas/Commands"
|
|
6138
|
+
}
|
|
6139
|
+
}
|
|
6140
|
+
}
|
|
6141
|
+
},
|
|
6142
|
+
"400": {
|
|
6143
|
+
"description": "Invalid request",
|
|
6144
|
+
"content": {
|
|
6145
|
+
"application/json": {
|
|
6146
|
+
"schema": {
|
|
6147
|
+
"$ref": "#/components/schemas/ErrorBody"
|
|
6148
|
+
}
|
|
6149
|
+
}
|
|
6150
|
+
}
|
|
6151
|
+
},
|
|
6152
|
+
"401": {
|
|
6153
|
+
"description": "Missing or unknown token",
|
|
6154
|
+
"content": {
|
|
6155
|
+
"application/json": {
|
|
6156
|
+
"schema": {
|
|
6157
|
+
"$ref": "#/components/schemas/ErrorBody"
|
|
6158
|
+
}
|
|
6159
|
+
}
|
|
6160
|
+
}
|
|
6161
|
+
},
|
|
6162
|
+
"403": {
|
|
6163
|
+
"description": "The token lacks the permission",
|
|
6164
|
+
"content": {
|
|
6165
|
+
"application/json": {
|
|
6166
|
+
"schema": {
|
|
6167
|
+
"$ref": "#/components/schemas/ErrorBody"
|
|
6168
|
+
}
|
|
6169
|
+
}
|
|
6170
|
+
}
|
|
6171
|
+
},
|
|
6172
|
+
"429": {
|
|
6173
|
+
"description": "Rate limit hit; see Retry-After",
|
|
6174
|
+
"content": {
|
|
6175
|
+
"application/json": {
|
|
6176
|
+
"schema": {
|
|
6177
|
+
"$ref": "#/components/schemas/ErrorBody"
|
|
6178
|
+
}
|
|
6179
|
+
}
|
|
6180
|
+
}
|
|
6181
|
+
},
|
|
6182
|
+
"503": {
|
|
6183
|
+
"description": "The server thread didn't answer in time",
|
|
6184
|
+
"content": {
|
|
6185
|
+
"application/json": {
|
|
6186
|
+
"schema": {
|
|
6187
|
+
"$ref": "#/components/schemas/ErrorBody"
|
|
6188
|
+
}
|
|
6189
|
+
}
|
|
6190
|
+
}
|
|
6191
|
+
}
|
|
6192
|
+
}
|
|
6193
|
+
},
|
|
6083
6194
|
"post": {
|
|
6084
6195
|
"operationId": "postServerCommands",
|
|
6085
6196
|
"summary": "Run a console command and capture its output",
|
|
6086
|
-
"description": "Runs as the console. Every call goes to the audit log with the full command.\n\nPermission: `server:console`.",
|
|
6197
|
+
"description": "Runs as the console, which may run every command: it changes the world, players, and the server like an operator would. Every call goes to the audit log with the full command.\n\nPermission: `server:console`.",
|
|
6087
6198
|
"tags": [
|
|
6088
6199
|
"Server"
|
|
6089
6200
|
],
|
|
@@ -6428,15 +6539,15 @@
|
|
|
6428
6539
|
"patch": {
|
|
6429
6540
|
"operationId": "patchServerOps",
|
|
6430
6541
|
"summary": "Make players operators or take it away",
|
|
6431
|
-
"description": "
|
|
6542
|
+
"description": "Needs `server:console`, not `players:moderate`: an operator may run every command, `/worldapi` among them.\n\nPermission: `server:console`.",
|
|
6432
6543
|
"tags": [
|
|
6433
6544
|
"Access"
|
|
6434
6545
|
],
|
|
6435
|
-
"x-scope": "
|
|
6546
|
+
"x-scope": "server:console",
|
|
6436
6547
|
"security": [
|
|
6437
6548
|
{
|
|
6438
6549
|
"bearer": [
|
|
6439
|
-
"
|
|
6550
|
+
"server:console"
|
|
6440
6551
|
]
|
|
6441
6552
|
}
|
|
6442
6553
|
],
|
|
@@ -13142,6 +13253,82 @@
|
|
|
13142
13253
|
],
|
|
13143
13254
|
"additionalProperties": false
|
|
13144
13255
|
},
|
|
13256
|
+
"CommandHits": {
|
|
13257
|
+
"type": "object",
|
|
13258
|
+
"properties": {
|
|
13259
|
+
"query": {
|
|
13260
|
+
"type": [
|
|
13261
|
+
"string",
|
|
13262
|
+
"null"
|
|
13263
|
+
]
|
|
13264
|
+
},
|
|
13265
|
+
"plugin": {
|
|
13266
|
+
"type": [
|
|
13267
|
+
"string",
|
|
13268
|
+
"null"
|
|
13269
|
+
]
|
|
13270
|
+
},
|
|
13271
|
+
"commands": {
|
|
13272
|
+
"type": "array",
|
|
13273
|
+
"items": {
|
|
13274
|
+
"$ref": "#/components/schemas/CommandInfo"
|
|
13275
|
+
}
|
|
13276
|
+
},
|
|
13277
|
+
"more": {
|
|
13278
|
+
"type": [
|
|
13279
|
+
"integer",
|
|
13280
|
+
"null"
|
|
13281
|
+
],
|
|
13282
|
+
"format": "int32"
|
|
13283
|
+
},
|
|
13284
|
+
"note": {
|
|
13285
|
+
"type": [
|
|
13286
|
+
"string",
|
|
13287
|
+
"null"
|
|
13288
|
+
]
|
|
13289
|
+
}
|
|
13290
|
+
},
|
|
13291
|
+
"required": [
|
|
13292
|
+
"commands"
|
|
13293
|
+
],
|
|
13294
|
+
"additionalProperties": false
|
|
13295
|
+
},
|
|
13296
|
+
"CommandInfo": {
|
|
13297
|
+
"type": "object",
|
|
13298
|
+
"properties": {
|
|
13299
|
+
"name": {
|
|
13300
|
+
"type": "string"
|
|
13301
|
+
},
|
|
13302
|
+
"aliases": {
|
|
13303
|
+
"type": "array",
|
|
13304
|
+
"items": {
|
|
13305
|
+
"type": "string"
|
|
13306
|
+
}
|
|
13307
|
+
},
|
|
13308
|
+
"source": {
|
|
13309
|
+
"type": [
|
|
13310
|
+
"string",
|
|
13311
|
+
"null"
|
|
13312
|
+
]
|
|
13313
|
+
},
|
|
13314
|
+
"description": {
|
|
13315
|
+
"type": [
|
|
13316
|
+
"string",
|
|
13317
|
+
"null"
|
|
13318
|
+
]
|
|
13319
|
+
},
|
|
13320
|
+
"usage": {
|
|
13321
|
+
"type": [
|
|
13322
|
+
"string",
|
|
13323
|
+
"null"
|
|
13324
|
+
]
|
|
13325
|
+
}
|
|
13326
|
+
},
|
|
13327
|
+
"required": [
|
|
13328
|
+
"name"
|
|
13329
|
+
],
|
|
13330
|
+
"additionalProperties": false
|
|
13331
|
+
},
|
|
13145
13332
|
"CommandRequest": {
|
|
13146
13333
|
"type": "object",
|
|
13147
13334
|
"properties": {
|
|
@@ -13173,6 +13360,60 @@
|
|
|
13173
13360
|
],
|
|
13174
13361
|
"additionalProperties": false
|
|
13175
13362
|
},
|
|
13363
|
+
"CommandSource": {
|
|
13364
|
+
"type": "object",
|
|
13365
|
+
"properties": {
|
|
13366
|
+
"source": {
|
|
13367
|
+
"type": [
|
|
13368
|
+
"string",
|
|
13369
|
+
"null"
|
|
13370
|
+
]
|
|
13371
|
+
},
|
|
13372
|
+
"commands": {
|
|
13373
|
+
"type": "integer",
|
|
13374
|
+
"format": "int32"
|
|
13375
|
+
}
|
|
13376
|
+
},
|
|
13377
|
+
"required": [
|
|
13378
|
+
"commands"
|
|
13379
|
+
],
|
|
13380
|
+
"additionalProperties": false
|
|
13381
|
+
},
|
|
13382
|
+
"Commands": {
|
|
13383
|
+
"type": "object",
|
|
13384
|
+
"properties": {
|
|
13385
|
+
"total": {
|
|
13386
|
+
"type": "integer",
|
|
13387
|
+
"format": "int32"
|
|
13388
|
+
},
|
|
13389
|
+
"sources": {
|
|
13390
|
+
"type": [
|
|
13391
|
+
"array",
|
|
13392
|
+
"null"
|
|
13393
|
+
],
|
|
13394
|
+
"items": {
|
|
13395
|
+
"$ref": "#/components/schemas/CommandSource"
|
|
13396
|
+
}
|
|
13397
|
+
},
|
|
13398
|
+
"results": {
|
|
13399
|
+
"type": "array",
|
|
13400
|
+
"items": {
|
|
13401
|
+
"$ref": "#/components/schemas/CommandHits"
|
|
13402
|
+
}
|
|
13403
|
+
},
|
|
13404
|
+
"note": {
|
|
13405
|
+
"type": [
|
|
13406
|
+
"string",
|
|
13407
|
+
"null"
|
|
13408
|
+
]
|
|
13409
|
+
}
|
|
13410
|
+
},
|
|
13411
|
+
"required": [
|
|
13412
|
+
"total",
|
|
13413
|
+
"results"
|
|
13414
|
+
],
|
|
13415
|
+
"additionalProperties": false
|
|
13416
|
+
},
|
|
13176
13417
|
"ConfigFiles": {
|
|
13177
13418
|
"type": "object",
|
|
13178
13419
|
"properties": {
|
package/package.json
CHANGED