@sanity/cli 8.38.0 → 8.38.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.
@@ -1987,6 +1987,179 @@
1987
1987
  "list.js"
1988
1988
  ]
1989
1989
  },
1990
+ "cors:add": {
1991
+ "aliases": [],
1992
+ "args": {
1993
+ "origin": {
1994
+ "description": "Origin to allow (e.g., https://example.com)",
1995
+ "name": "origin",
1996
+ "required": true
1997
+ }
1998
+ },
1999
+ "description": "Add a CORS origin to the project",
2000
+ "examples": [
2001
+ {
2002
+ "command": "<%= config.bin %> <%= command.id %>",
2003
+ "description": "Interactively add a CORS origin"
2004
+ },
2005
+ {
2006
+ "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
2007
+ "description": "Add a localhost origin without credentials"
2008
+ },
2009
+ {
2010
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
2011
+ "description": "Add a production origin with credentials allowed"
2012
+ },
2013
+ {
2014
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project abc123",
2015
+ "description": "Add a CORS origin for a specific project"
2016
+ }
2017
+ ],
2018
+ "flags": {
2019
+ "project": {
2020
+ "aliases": [
2021
+ "project-id"
2022
+ ],
2023
+ "char": "p",
2024
+ "deprecateAliases": true,
2025
+ "description": "Project ID to add CORS origin to (overrides CLI configuration)",
2026
+ "helpGroup": "OVERRIDE",
2027
+ "name": "project",
2028
+ "hasDynamicHelp": false,
2029
+ "helpValue": "<id>",
2030
+ "multiple": false,
2031
+ "type": "option"
2032
+ },
2033
+ "credentials": {
2034
+ "description": "Allow credentials (token/cookie) to be sent from this origin",
2035
+ "name": "credentials",
2036
+ "required": false,
2037
+ "allowNo": true,
2038
+ "type": "boolean"
2039
+ },
2040
+ "yes": {
2041
+ "char": "y",
2042
+ "description": "Confirm risky wildcard origins without prompting",
2043
+ "name": "yes",
2044
+ "allowNo": false,
2045
+ "type": "boolean"
2046
+ }
2047
+ },
2048
+ "hasDynamicHelp": false,
2049
+ "hiddenAliases": [],
2050
+ "id": "cors:add",
2051
+ "pluginAlias": "@sanity/cli",
2052
+ "pluginName": "@sanity/cli",
2053
+ "pluginType": "core",
2054
+ "strict": true,
2055
+ "isESM": true,
2056
+ "relativePath": [
2057
+ "dist",
2058
+ "commands",
2059
+ "cors",
2060
+ "add.js"
2061
+ ]
2062
+ },
2063
+ "cors:delete": {
2064
+ "aliases": [],
2065
+ "args": {
2066
+ "origin": {
2067
+ "description": "Origin to delete (will prompt if not provided)",
2068
+ "name": "origin",
2069
+ "required": false
2070
+ }
2071
+ },
2072
+ "description": "Delete a CORS origin from the project",
2073
+ "examples": [
2074
+ {
2075
+ "command": "<%= config.bin %> <%= command.id %>",
2076
+ "description": "Interactively select and delete a CORS origin"
2077
+ },
2078
+ {
2079
+ "command": "<%= config.bin %> <%= command.id %> https://example.com",
2080
+ "description": "Delete a specific CORS origin"
2081
+ },
2082
+ {
2083
+ "command": "<%= config.bin %> <%= command.id %> --project abc123",
2084
+ "description": "Delete a CORS origin from a specific project"
2085
+ }
2086
+ ],
2087
+ "flags": {
2088
+ "project": {
2089
+ "aliases": [
2090
+ "project-id"
2091
+ ],
2092
+ "char": "p",
2093
+ "deprecateAliases": true,
2094
+ "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
2095
+ "helpGroup": "OVERRIDE",
2096
+ "name": "project",
2097
+ "hasDynamicHelp": false,
2098
+ "helpValue": "<id>",
2099
+ "multiple": false,
2100
+ "type": "option"
2101
+ }
2102
+ },
2103
+ "hasDynamicHelp": false,
2104
+ "hiddenAliases": [],
2105
+ "id": "cors:delete",
2106
+ "pluginAlias": "@sanity/cli",
2107
+ "pluginName": "@sanity/cli",
2108
+ "pluginType": "core",
2109
+ "strict": true,
2110
+ "isESM": true,
2111
+ "relativePath": [
2112
+ "dist",
2113
+ "commands",
2114
+ "cors",
2115
+ "delete.js"
2116
+ ]
2117
+ },
2118
+ "cors:list": {
2119
+ "aliases": [],
2120
+ "args": {},
2121
+ "description": "List CORS origins for the project",
2122
+ "examples": [
2123
+ {
2124
+ "command": "<%= config.bin %> <%= command.id %>",
2125
+ "description": "List CORS origins for the project"
2126
+ },
2127
+ {
2128
+ "command": "<%= config.bin %> <%= command.id %> --project abc123",
2129
+ "description": "List CORS origins for a specific project"
2130
+ }
2131
+ ],
2132
+ "flags": {
2133
+ "project": {
2134
+ "aliases": [
2135
+ "project-id"
2136
+ ],
2137
+ "char": "p",
2138
+ "deprecateAliases": true,
2139
+ "description": "Project ID to list CORS origins for (overrides CLI configuration)",
2140
+ "helpGroup": "OVERRIDE",
2141
+ "name": "project",
2142
+ "hasDynamicHelp": false,
2143
+ "helpValue": "<id>",
2144
+ "multiple": false,
2145
+ "type": "option"
2146
+ }
2147
+ },
2148
+ "hasDynamicHelp": false,
2149
+ "hiddenAliases": [],
2150
+ "id": "cors:list",
2151
+ "pluginAlias": "@sanity/cli",
2152
+ "pluginName": "@sanity/cli",
2153
+ "pluginType": "core",
2154
+ "strict": true,
2155
+ "isESM": true,
2156
+ "relativePath": [
2157
+ "dist",
2158
+ "commands",
2159
+ "cors",
2160
+ "list.js"
2161
+ ]
2162
+ },
1990
2163
  "context:build": {
1991
2164
  "aliases": [],
1992
2165
  "args": {
@@ -3188,67 +3361,69 @@
3188
3361
  "list.js"
3189
3362
  ]
3190
3363
  },
3191
- "cors:add": {
3364
+ "docs:browse": {
3365
+ "aliases": [],
3366
+ "args": {},
3367
+ "description": "Open Sanity docs in your browser",
3368
+ "flags": {},
3369
+ "hasDynamicHelp": false,
3370
+ "hiddenAliases": [],
3371
+ "id": "docs:browse",
3372
+ "pluginAlias": "@sanity/cli",
3373
+ "pluginName": "@sanity/cli",
3374
+ "pluginType": "core",
3375
+ "strict": true,
3376
+ "enableJsonFlag": false,
3377
+ "isESM": true,
3378
+ "relativePath": [
3379
+ "dist",
3380
+ "commands",
3381
+ "docs",
3382
+ "browse.js"
3383
+ ]
3384
+ },
3385
+ "docs:read": {
3192
3386
  "aliases": [],
3193
3387
  "args": {
3194
- "origin": {
3195
- "description": "Origin to allow (e.g., https://example.com)",
3196
- "name": "origin",
3388
+ "path": {
3389
+ "description": "Path or URL to article, found in search results and docs content as links",
3390
+ "name": "path",
3197
3391
  "required": true
3198
3392
  }
3199
3393
  },
3200
- "description": "Add a CORS origin to the project",
3394
+ "description": "Read an article in terminal",
3201
3395
  "examples": [
3202
3396
  {
3203
- "command": "<%= config.bin %> <%= command.id %>",
3204
- "description": "Interactively add a CORS origin"
3397
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
3398
+ "description": "Read as markdown in terminal"
3205
3399
  },
3206
3400
  {
3207
- "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
3208
- "description": "Add a localhost origin without credentials"
3401
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
3402
+ "description": "Read using full URL"
3209
3403
  },
3210
3404
  {
3211
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
3212
- "description": "Add a production origin with credentials allowed"
3405
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
3406
+ "description": "Open in web browser"
3213
3407
  },
3214
3408
  {
3215
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project abc123",
3216
- "description": "Add a CORS origin for a specific project"
3409
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
3410
+ "description": "Open using full URL in web browser"
3217
3411
  }
3218
3412
  ],
3219
3413
  "flags": {
3220
- "project": {
3414
+ "web": {
3221
3415
  "aliases": [
3222
- "project-id"
3416
+ "w"
3223
3417
  ],
3224
- "char": "p",
3225
- "deprecateAliases": true,
3226
- "description": "Project ID to add CORS origin to (overrides CLI configuration)",
3227
- "helpGroup": "OVERRIDE",
3228
- "name": "project",
3229
- "hasDynamicHelp": false,
3230
- "helpValue": "<id>",
3231
- "multiple": false,
3232
- "type": "option"
3233
- },
3234
- "credentials": {
3235
- "description": "Allow credentials (token/cookie) to be sent from this origin",
3236
- "name": "credentials",
3237
- "required": false,
3238
- "allowNo": true,
3239
- "type": "boolean"
3240
- },
3241
- "yes": {
3242
- "char": "y",
3243
- "description": "Confirm risky wildcard origins without prompting",
3244
- "name": "yes",
3418
+ "description": "Open in a web browser",
3419
+ "name": "web",
3245
3420
  "allowNo": false,
3246
3421
  "type": "boolean"
3247
3422
  }
3248
3423
  },
3249
3424
  "hasDynamicHelp": false,
3250
3425
  "hiddenAliases": [],
3251
- "id": "cors:add",
3426
+ "id": "docs:read",
3252
3427
  "pluginAlias": "@sanity/cli",
3253
3428
  "pluginName": "@sanity/cli",
3254
3429
  "pluginType": "core",
@@ -3257,186 +3432,11 @@
3257
3432
  "relativePath": [
3258
3433
  "dist",
3259
3434
  "commands",
3260
- "cors",
3261
- "add.js"
3435
+ "docs",
3436
+ "read.js"
3262
3437
  ]
3263
3438
  },
3264
- "cors:delete": {
3265
- "aliases": [],
3266
- "args": {
3267
- "origin": {
3268
- "description": "Origin to delete (will prompt if not provided)",
3269
- "name": "origin",
3270
- "required": false
3271
- }
3272
- },
3273
- "description": "Delete a CORS origin from the project",
3274
- "examples": [
3275
- {
3276
- "command": "<%= config.bin %> <%= command.id %>",
3277
- "description": "Interactively select and delete a CORS origin"
3278
- },
3279
- {
3280
- "command": "<%= config.bin %> <%= command.id %> https://example.com",
3281
- "description": "Delete a specific CORS origin"
3282
- },
3283
- {
3284
- "command": "<%= config.bin %> <%= command.id %> --project abc123",
3285
- "description": "Delete a CORS origin from a specific project"
3286
- }
3287
- ],
3288
- "flags": {
3289
- "project": {
3290
- "aliases": [
3291
- "project-id"
3292
- ],
3293
- "char": "p",
3294
- "deprecateAliases": true,
3295
- "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
3296
- "helpGroup": "OVERRIDE",
3297
- "name": "project",
3298
- "hasDynamicHelp": false,
3299
- "helpValue": "<id>",
3300
- "multiple": false,
3301
- "type": "option"
3302
- }
3303
- },
3304
- "hasDynamicHelp": false,
3305
- "hiddenAliases": [],
3306
- "id": "cors:delete",
3307
- "pluginAlias": "@sanity/cli",
3308
- "pluginName": "@sanity/cli",
3309
- "pluginType": "core",
3310
- "strict": true,
3311
- "isESM": true,
3312
- "relativePath": [
3313
- "dist",
3314
- "commands",
3315
- "cors",
3316
- "delete.js"
3317
- ]
3318
- },
3319
- "cors:list": {
3320
- "aliases": [],
3321
- "args": {},
3322
- "description": "List CORS origins for the project",
3323
- "examples": [
3324
- {
3325
- "command": "<%= config.bin %> <%= command.id %>",
3326
- "description": "List CORS origins for the project"
3327
- },
3328
- {
3329
- "command": "<%= config.bin %> <%= command.id %> --project abc123",
3330
- "description": "List CORS origins for a specific project"
3331
- }
3332
- ],
3333
- "flags": {
3334
- "project": {
3335
- "aliases": [
3336
- "project-id"
3337
- ],
3338
- "char": "p",
3339
- "deprecateAliases": true,
3340
- "description": "Project ID to list CORS origins for (overrides CLI configuration)",
3341
- "helpGroup": "OVERRIDE",
3342
- "name": "project",
3343
- "hasDynamicHelp": false,
3344
- "helpValue": "<id>",
3345
- "multiple": false,
3346
- "type": "option"
3347
- }
3348
- },
3349
- "hasDynamicHelp": false,
3350
- "hiddenAliases": [],
3351
- "id": "cors:list",
3352
- "pluginAlias": "@sanity/cli",
3353
- "pluginName": "@sanity/cli",
3354
- "pluginType": "core",
3355
- "strict": true,
3356
- "isESM": true,
3357
- "relativePath": [
3358
- "dist",
3359
- "commands",
3360
- "cors",
3361
- "list.js"
3362
- ]
3363
- },
3364
- "docs:browse": {
3365
- "aliases": [],
3366
- "args": {},
3367
- "description": "Open Sanity docs in your browser",
3368
- "flags": {},
3369
- "hasDynamicHelp": false,
3370
- "hiddenAliases": [],
3371
- "id": "docs:browse",
3372
- "pluginAlias": "@sanity/cli",
3373
- "pluginName": "@sanity/cli",
3374
- "pluginType": "core",
3375
- "strict": true,
3376
- "enableJsonFlag": false,
3377
- "isESM": true,
3378
- "relativePath": [
3379
- "dist",
3380
- "commands",
3381
- "docs",
3382
- "browse.js"
3383
- ]
3384
- },
3385
- "docs:read": {
3386
- "aliases": [],
3387
- "args": {
3388
- "path": {
3389
- "description": "Path or URL to article, found in search results and docs content as links",
3390
- "name": "path",
3391
- "required": true
3392
- }
3393
- },
3394
- "description": "Read an article in terminal",
3395
- "examples": [
3396
- {
3397
- "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
3398
- "description": "Read as markdown in terminal"
3399
- },
3400
- {
3401
- "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
3402
- "description": "Read using full URL"
3403
- },
3404
- {
3405
- "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
3406
- "description": "Open in web browser"
3407
- },
3408
- {
3409
- "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
3410
- "description": "Open using full URL in web browser"
3411
- }
3412
- ],
3413
- "flags": {
3414
- "web": {
3415
- "aliases": [
3416
- "w"
3417
- ],
3418
- "description": "Open in a web browser",
3419
- "name": "web",
3420
- "allowNo": false,
3421
- "type": "boolean"
3422
- }
3423
- },
3424
- "hasDynamicHelp": false,
3425
- "hiddenAliases": [],
3426
- "id": "docs:read",
3427
- "pluginAlias": "@sanity/cli",
3428
- "pluginName": "@sanity/cli",
3429
- "pluginType": "core",
3430
- "strict": true,
3431
- "isESM": true,
3432
- "relativePath": [
3433
- "dist",
3434
- "commands",
3435
- "docs",
3436
- "read.js"
3437
- ]
3438
- },
3439
- "docs:search": {
3439
+ "docs:search": {
3440
3440
  "aliases": [],
3441
3441
  "args": {
3442
3442
  "query": {
@@ -4498,58 +4498,69 @@
4498
4498
  "logs.js"
4499
4499
  ]
4500
4500
  },
4501
- "mcp:configure": {
4501
+ "manifest:extract": {
4502
4502
  "aliases": [],
4503
4503
  "args": {},
4504
- "description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, Pi, VS Code, VS Code Insiders, Zed)",
4504
+ "description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
4505
4505
  "examples": [
4506
4506
  {
4507
4507
  "command": "<%= config.bin %> <%= command.id %>",
4508
- "description": "Configure Sanity MCP server for detected AI editors"
4508
+ "description": "Extracts manifests"
4509
+ },
4510
+ {
4511
+ "command": "<%= config.bin %> <%= command.id %> --path /public/static",
4512
+ "description": "Extracts manifests into /public/static"
4509
4513
  }
4510
4514
  ],
4511
- "flags": {},
4515
+ "flags": {
4516
+ "path": {
4517
+ "description": "Optional path to specify destination directory of the manifest files",
4518
+ "name": "path",
4519
+ "default": "dist/static",
4520
+ "hasDynamicHelp": false,
4521
+ "multiple": false,
4522
+ "type": "option"
4523
+ }
4524
+ },
4512
4525
  "hasDynamicHelp": false,
4513
4526
  "hiddenAliases": [],
4514
- "id": "mcp:configure",
4527
+ "id": "manifest:extract",
4515
4528
  "pluginAlias": "@sanity/cli",
4516
4529
  "pluginName": "@sanity/cli",
4517
4530
  "pluginType": "core",
4518
4531
  "strict": true,
4532
+ "telemetry": {
4533
+ "redactedFlags": [
4534
+ {
4535
+ "canonical": "--path",
4536
+ "flags": [
4537
+ "--path"
4538
+ ]
4539
+ }
4540
+ ]
4541
+ },
4519
4542
  "isESM": true,
4520
4543
  "relativePath": [
4521
4544
  "dist",
4522
4545
  "commands",
4523
- "mcp",
4524
- "configure.js"
4546
+ "manifest",
4547
+ "extract.js"
4525
4548
  ]
4526
4549
  },
4527
- "migrations:create": {
4550
+ "mcp:configure": {
4528
4551
  "aliases": [],
4529
- "args": {
4530
- "title": {
4531
- "description": "Title of migration",
4532
- "name": "title",
4533
- "required": false
4534
- }
4535
- },
4536
- "description": "Create a new migration within your project",
4552
+ "args": {},
4553
+ "description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, Pi, VS Code, VS Code Insiders, Zed)",
4537
4554
  "examples": [
4538
4555
  {
4539
4556
  "command": "<%= config.bin %> <%= command.id %>",
4540
- "description": "Create a new migration, prompting for title and options"
4541
- },
4542
- {
4543
- "command": "<%= config.bin %> <%= command.id %> \"Rename field from location to address\"",
4544
- "description": "Create a new migration with the provided title, prompting for options"
4557
+ "description": "Configure Sanity MCP server for detected AI editors"
4545
4558
  }
4546
4559
  ],
4547
4560
  "flags": {},
4548
4561
  "hasDynamicHelp": false,
4549
- "hiddenAliases": [
4550
- "migration:create"
4551
- ],
4552
- "id": "migrations:create",
4562
+ "hiddenAliases": [],
4563
+ "id": "mcp:configure",
4553
4564
  "pluginAlias": "@sanity/cli",
4554
4565
  "pluginName": "@sanity/cli",
4555
4566
  "pluginType": "core",
@@ -4558,160 +4569,18 @@
4558
4569
  "relativePath": [
4559
4570
  "dist",
4560
4571
  "commands",
4561
- "migrations",
4562
- "create.js"
4572
+ "mcp",
4573
+ "configure.js"
4563
4574
  ]
4564
4575
  },
4565
- "migrations:list": {
4576
+ "media:create-aspect": {
4566
4577
  "aliases": [],
4567
4578
  "args": {},
4568
- "description": "List available migrations",
4579
+ "description": "Create a new aspect definition file",
4569
4580
  "examples": [
4570
4581
  {
4571
4582
  "command": "<%= config.bin %> <%= command.id %>",
4572
- "description": "List all available migrations in the project"
4573
- }
4574
- ],
4575
- "flags": {},
4576
- "hasDynamicHelp": false,
4577
- "hiddenAliases": [
4578
- "migration:list"
4579
- ],
4580
- "id": "migrations:list",
4581
- "pluginAlias": "@sanity/cli",
4582
- "pluginName": "@sanity/cli",
4583
- "pluginType": "core",
4584
- "strict": true,
4585
- "isESM": true,
4586
- "relativePath": [
4587
- "dist",
4588
- "commands",
4589
- "migrations",
4590
- "list.js"
4591
- ]
4592
- },
4593
- "migrations:run": {
4594
- "aliases": [],
4595
- "args": {
4596
- "id": {
4597
- "description": "ID",
4598
- "name": "id",
4599
- "required": false
4600
- }
4601
- },
4602
- "description": "Run a migration against a dataset",
4603
- "examples": [
4604
- {
4605
- "command": "<%= config.bin %> <%= command.id %> <id>",
4606
- "description": "dry run the migration"
4607
- },
4608
- {
4609
- "command": "<%= config.bin %> <%= command.id %> <id> --no-dry-run --project xyz --dataset staging",
4610
- "description": "execute the migration against a dataset"
4611
- },
4612
- {
4613
- "command": "<%= config.bin %> <%= command.id %> <id> --from-export=production.tar.gz --no-dry-run --project xyz --dataset staging",
4614
- "description": "execute the migration using a dataset export as the source"
4615
- }
4616
- ],
4617
- "flags": {
4618
- "api-version": {
4619
- "description": "API version to use when migrating. Defaults to v2024-01-29.",
4620
- "name": "api-version",
4621
- "hasDynamicHelp": false,
4622
- "multiple": false,
4623
- "type": "option"
4624
- },
4625
- "concurrency": {
4626
- "description": "How many mutation requests to run in parallel. Must be between 1 and 10. Default: 6.",
4627
- "name": "concurrency",
4628
- "default": 6,
4629
- "hasDynamicHelp": false,
4630
- "multiple": false,
4631
- "type": "option"
4632
- },
4633
- "confirm": {
4634
- "description": "Prompt for confirmation before running the migration (default: true). Use --no-confirm to skip.",
4635
- "name": "confirm",
4636
- "allowNo": true,
4637
- "type": "boolean"
4638
- },
4639
- "dataset": {
4640
- "description": "Dataset to migrate. Defaults to the dataset configured in your Sanity CLI config.",
4641
- "name": "dataset",
4642
- "hasDynamicHelp": false,
4643
- "multiple": false,
4644
- "type": "option"
4645
- },
4646
- "dry-run": {
4647
- "description": "By default the migration runs in dry mode. Use --no-dry-run to migrate dataset.",
4648
- "name": "dry-run",
4649
- "allowNo": true,
4650
- "type": "boolean"
4651
- },
4652
- "from-export": {
4653
- "description": "Use a local dataset export as source for migration instead of calling the Sanity API. Note: this is only supported for dry runs.",
4654
- "name": "from-export",
4655
- "hasDynamicHelp": false,
4656
- "multiple": false,
4657
- "type": "option"
4658
- },
4659
- "progress": {
4660
- "description": "Display progress during migration (default: true). Use --no-progress to hide output.",
4661
- "name": "progress",
4662
- "allowNo": true,
4663
- "type": "boolean"
4664
- },
4665
- "project": {
4666
- "aliases": [
4667
- "project-id"
4668
- ],
4669
- "char": "p",
4670
- "deprecateAliases": true,
4671
- "description": "Project ID of the dataset to migrate (overrides CLI configuration)",
4672
- "helpGroup": "OVERRIDE",
4673
- "name": "project",
4674
- "hasDynamicHelp": false,
4675
- "helpValue": "<id>",
4676
- "multiple": false,
4677
- "type": "option"
4678
- }
4679
- },
4680
- "hasDynamicHelp": false,
4681
- "hiddenAliases": [
4682
- "migration:run"
4683
- ],
4684
- "id": "migrations:run",
4685
- "pluginAlias": "@sanity/cli",
4686
- "pluginName": "@sanity/cli",
4687
- "pluginType": "core",
4688
- "strict": true,
4689
- "telemetry": {
4690
- "redactedFlags": [
4691
- {
4692
- "canonical": "--from-export",
4693
- "flags": [
4694
- "--from-export"
4695
- ]
4696
- }
4697
- ]
4698
- },
4699
- "isESM": true,
4700
- "relativePath": [
4701
- "dist",
4702
- "commands",
4703
- "migrations",
4704
- "run.js"
4705
- ]
4706
- },
4707
- "media:create-aspect": {
4708
- "aliases": [],
4709
- "args": {},
4710
- "description": "Create a new aspect definition file",
4711
- "examples": [
4712
- {
4713
- "command": "<%= config.bin %> <%= command.id %>",
4714
- "description": "Create a new aspect definition file"
4583
+ "description": "Create a new aspect definition file"
4715
4584
  }
4716
4585
  ],
4717
4586
  "flags": {
@@ -5197,58 +5066,32 @@
5197
5066
  "pull-aspects.js"
5198
5067
  ]
5199
5068
  },
5200
- "openapi:get": {
5069
+ "migrations:create": {
5201
5070
  "aliases": [],
5202
5071
  "args": {
5203
- "slug": {
5204
- "description": "Slug of the OpenAPI specification to retrieve",
5205
- "name": "slug",
5206
- "required": true
5072
+ "title": {
5073
+ "description": "Title of migration",
5074
+ "name": "title",
5075
+ "required": false
5207
5076
  }
5208
5077
  },
5209
- "description": "Get an OpenAPI specification by slug",
5078
+ "description": "Create a new migration within your project",
5210
5079
  "examples": [
5211
5080
  {
5212
- "command": "<%= config.bin %> <%= command.id %> query",
5213
- "description": "Get a specification (YAML format, default)"
5214
- },
5215
- {
5216
- "command": "<%= config.bin %> <%= command.id %> query --format=json",
5217
- "description": "Get specification in JSON format"
5218
- },
5219
- {
5220
- "command": "<%= config.bin %> <%= command.id %> query --web",
5221
- "description": "Open specification in browser"
5081
+ "command": "<%= config.bin %> <%= command.id %>",
5082
+ "description": "Create a new migration, prompting for title and options"
5222
5083
  },
5223
5084
  {
5224
- "command": "<%= config.bin %> <%= command.id %> query > query-api.yaml",
5225
- "description": "Pipe to file"
5085
+ "command": "<%= config.bin %> <%= command.id %> \"Rename field from location to address\"",
5086
+ "description": "Create a new migration with the provided title, prompting for options"
5226
5087
  }
5227
5088
  ],
5228
- "flags": {
5229
- "format": {
5230
- "description": "Output format: yaml (default), json",
5231
- "name": "format",
5232
- "default": "yaml",
5233
- "hasDynamicHelp": false,
5234
- "multiple": false,
5235
- "options": [
5236
- "yaml",
5237
- "json"
5238
- ],
5239
- "type": "option"
5240
- },
5241
- "web": {
5242
- "char": "w",
5243
- "description": "Open in web browser",
5244
- "name": "web",
5245
- "allowNo": false,
5246
- "type": "boolean"
5247
- }
5248
- },
5089
+ "flags": {},
5249
5090
  "hasDynamicHelp": false,
5250
- "hiddenAliases": [],
5251
- "id": "openapi:get",
5091
+ "hiddenAliases": [
5092
+ "migration:create"
5093
+ ],
5094
+ "id": "migrations:create",
5252
5095
  "pluginAlias": "@sanity/cli",
5253
5096
  "pluginName": "@sanity/cli",
5254
5097
  "pluginType": "core",
@@ -5257,87 +5100,130 @@
5257
5100
  "relativePath": [
5258
5101
  "dist",
5259
5102
  "commands",
5260
- "openapi",
5261
- "get.js"
5103
+ "migrations",
5104
+ "create.js"
5262
5105
  ]
5263
5106
  },
5264
- "openapi:list": {
5107
+ "migrations:list": {
5265
5108
  "aliases": [],
5266
5109
  "args": {},
5267
- "description": "List all available OpenAPI specifications",
5110
+ "description": "List available migrations",
5268
5111
  "examples": [
5269
5112
  {
5270
5113
  "command": "<%= config.bin %> <%= command.id %>",
5271
- "description": "List all available OpenAPI specs"
5272
- },
5273
- {
5274
- "command": "<%= config.bin %> <%= command.id %> --json",
5275
- "description": "List with JSON output"
5276
- },
5277
- {
5278
- "command": "<%= config.bin %> <%= command.id %> --web",
5279
- "description": "Open HTTP Reference in browser"
5114
+ "description": "List all available migrations in the project"
5280
5115
  }
5281
5116
  ],
5282
- "flags": {
5283
- "json": {
5284
- "description": "Format output as json.",
5285
- "helpGroup": "GLOBAL",
5286
- "name": "json",
5287
- "allowNo": false,
5288
- "type": "boolean"
5289
- },
5290
- "web": {
5291
- "char": "w",
5292
- "description": "Open HTTP Reference in web browser",
5293
- "name": "web",
5294
- "allowNo": false,
5295
- "type": "boolean"
5296
- }
5297
- },
5117
+ "flags": {},
5298
5118
  "hasDynamicHelp": false,
5299
- "hiddenAliases": [],
5300
- "id": "openapi:list",
5119
+ "hiddenAliases": [
5120
+ "migration:list"
5121
+ ],
5122
+ "id": "migrations:list",
5301
5123
  "pluginAlias": "@sanity/cli",
5302
5124
  "pluginName": "@sanity/cli",
5303
5125
  "pluginType": "core",
5304
5126
  "strict": true,
5305
- "enableJsonFlag": true,
5306
5127
  "isESM": true,
5307
5128
  "relativePath": [
5308
5129
  "dist",
5309
5130
  "commands",
5310
- "openapi",
5131
+ "migrations",
5311
5132
  "list.js"
5312
5133
  ]
5313
5134
  },
5314
- "manifest:extract": {
5135
+ "migrations:run": {
5315
5136
  "aliases": [],
5316
- "args": {},
5317
- "description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
5137
+ "args": {
5138
+ "id": {
5139
+ "description": "ID",
5140
+ "name": "id",
5141
+ "required": false
5142
+ }
5143
+ },
5144
+ "description": "Run a migration against a dataset",
5318
5145
  "examples": [
5319
5146
  {
5320
- "command": "<%= config.bin %> <%= command.id %>",
5321
- "description": "Extracts manifests"
5147
+ "command": "<%= config.bin %> <%= command.id %> <id>",
5148
+ "description": "dry run the migration"
5322
5149
  },
5323
5150
  {
5324
- "command": "<%= config.bin %> <%= command.id %> --path /public/static",
5325
- "description": "Extracts manifests into /public/static"
5151
+ "command": "<%= config.bin %> <%= command.id %> <id> --no-dry-run --project xyz --dataset staging",
5152
+ "description": "execute the migration against a dataset"
5153
+ },
5154
+ {
5155
+ "command": "<%= config.bin %> <%= command.id %> <id> --from-export=production.tar.gz --no-dry-run --project xyz --dataset staging",
5156
+ "description": "execute the migration using a dataset export as the source"
5326
5157
  }
5327
5158
  ],
5328
5159
  "flags": {
5329
- "path": {
5330
- "description": "Optional path to specify destination directory of the manifest files",
5331
- "name": "path",
5332
- "default": "dist/static",
5160
+ "api-version": {
5161
+ "description": "API version to use when migrating. Defaults to v2024-01-29.",
5162
+ "name": "api-version",
5163
+ "hasDynamicHelp": false,
5164
+ "multiple": false,
5165
+ "type": "option"
5166
+ },
5167
+ "concurrency": {
5168
+ "description": "How many mutation requests to run in parallel. Must be between 1 and 10. Default: 6.",
5169
+ "name": "concurrency",
5170
+ "default": 6,
5171
+ "hasDynamicHelp": false,
5172
+ "multiple": false,
5173
+ "type": "option"
5174
+ },
5175
+ "confirm": {
5176
+ "description": "Prompt for confirmation before running the migration (default: true). Use --no-confirm to skip.",
5177
+ "name": "confirm",
5178
+ "allowNo": true,
5179
+ "type": "boolean"
5180
+ },
5181
+ "dataset": {
5182
+ "description": "Dataset to migrate. Defaults to the dataset configured in your Sanity CLI config.",
5183
+ "name": "dataset",
5184
+ "hasDynamicHelp": false,
5185
+ "multiple": false,
5186
+ "type": "option"
5187
+ },
5188
+ "dry-run": {
5189
+ "description": "By default the migration runs in dry mode. Use --no-dry-run to migrate dataset.",
5190
+ "name": "dry-run",
5191
+ "allowNo": true,
5192
+ "type": "boolean"
5193
+ },
5194
+ "from-export": {
5195
+ "description": "Use a local dataset export as source for migration instead of calling the Sanity API. Note: this is only supported for dry runs.",
5196
+ "name": "from-export",
5197
+ "hasDynamicHelp": false,
5198
+ "multiple": false,
5199
+ "type": "option"
5200
+ },
5201
+ "progress": {
5202
+ "description": "Display progress during migration (default: true). Use --no-progress to hide output.",
5203
+ "name": "progress",
5204
+ "allowNo": true,
5205
+ "type": "boolean"
5206
+ },
5207
+ "project": {
5208
+ "aliases": [
5209
+ "project-id"
5210
+ ],
5211
+ "char": "p",
5212
+ "deprecateAliases": true,
5213
+ "description": "Project ID of the dataset to migrate (overrides CLI configuration)",
5214
+ "helpGroup": "OVERRIDE",
5215
+ "name": "project",
5333
5216
  "hasDynamicHelp": false,
5217
+ "helpValue": "<id>",
5334
5218
  "multiple": false,
5335
5219
  "type": "option"
5336
5220
  }
5337
5221
  },
5338
5222
  "hasDynamicHelp": false,
5339
- "hiddenAliases": [],
5340
- "id": "manifest:extract",
5223
+ "hiddenAliases": [
5224
+ "migration:run"
5225
+ ],
5226
+ "id": "migrations:run",
5341
5227
  "pluginAlias": "@sanity/cli",
5342
5228
  "pluginName": "@sanity/cli",
5343
5229
  "pluginType": "core",
@@ -5345,9 +5231,9 @@
5345
5231
  "telemetry": {
5346
5232
  "redactedFlags": [
5347
5233
  {
5348
- "canonical": "--path",
5234
+ "canonical": "--from-export",
5349
5235
  "flags": [
5350
- "--path"
5236
+ "--from-export"
5351
5237
  ]
5352
5238
  }
5353
5239
  ]
@@ -5356,8 +5242,122 @@
5356
5242
  "relativePath": [
5357
5243
  "dist",
5358
5244
  "commands",
5359
- "manifest",
5360
- "extract.js"
5245
+ "migrations",
5246
+ "run.js"
5247
+ ]
5248
+ },
5249
+ "openapi:get": {
5250
+ "aliases": [],
5251
+ "args": {
5252
+ "slug": {
5253
+ "description": "Slug of the OpenAPI specification to retrieve",
5254
+ "name": "slug",
5255
+ "required": true
5256
+ }
5257
+ },
5258
+ "description": "Get an OpenAPI specification by slug",
5259
+ "examples": [
5260
+ {
5261
+ "command": "<%= config.bin %> <%= command.id %> query",
5262
+ "description": "Get a specification (YAML format, default)"
5263
+ },
5264
+ {
5265
+ "command": "<%= config.bin %> <%= command.id %> query --format=json",
5266
+ "description": "Get specification in JSON format"
5267
+ },
5268
+ {
5269
+ "command": "<%= config.bin %> <%= command.id %> query --web",
5270
+ "description": "Open specification in browser"
5271
+ },
5272
+ {
5273
+ "command": "<%= config.bin %> <%= command.id %> query > query-api.yaml",
5274
+ "description": "Pipe to file"
5275
+ }
5276
+ ],
5277
+ "flags": {
5278
+ "format": {
5279
+ "description": "Output format: yaml (default), json",
5280
+ "name": "format",
5281
+ "default": "yaml",
5282
+ "hasDynamicHelp": false,
5283
+ "multiple": false,
5284
+ "options": [
5285
+ "yaml",
5286
+ "json"
5287
+ ],
5288
+ "type": "option"
5289
+ },
5290
+ "web": {
5291
+ "char": "w",
5292
+ "description": "Open in web browser",
5293
+ "name": "web",
5294
+ "allowNo": false,
5295
+ "type": "boolean"
5296
+ }
5297
+ },
5298
+ "hasDynamicHelp": false,
5299
+ "hiddenAliases": [],
5300
+ "id": "openapi:get",
5301
+ "pluginAlias": "@sanity/cli",
5302
+ "pluginName": "@sanity/cli",
5303
+ "pluginType": "core",
5304
+ "strict": true,
5305
+ "isESM": true,
5306
+ "relativePath": [
5307
+ "dist",
5308
+ "commands",
5309
+ "openapi",
5310
+ "get.js"
5311
+ ]
5312
+ },
5313
+ "openapi:list": {
5314
+ "aliases": [],
5315
+ "args": {},
5316
+ "description": "List all available OpenAPI specifications",
5317
+ "examples": [
5318
+ {
5319
+ "command": "<%= config.bin %> <%= command.id %>",
5320
+ "description": "List all available OpenAPI specs"
5321
+ },
5322
+ {
5323
+ "command": "<%= config.bin %> <%= command.id %> --json",
5324
+ "description": "List with JSON output"
5325
+ },
5326
+ {
5327
+ "command": "<%= config.bin %> <%= command.id %> --web",
5328
+ "description": "Open HTTP Reference in browser"
5329
+ }
5330
+ ],
5331
+ "flags": {
5332
+ "json": {
5333
+ "description": "Format output as json.",
5334
+ "helpGroup": "GLOBAL",
5335
+ "name": "json",
5336
+ "allowNo": false,
5337
+ "type": "boolean"
5338
+ },
5339
+ "web": {
5340
+ "char": "w",
5341
+ "description": "Open HTTP Reference in web browser",
5342
+ "name": "web",
5343
+ "allowNo": false,
5344
+ "type": "boolean"
5345
+ }
5346
+ },
5347
+ "hasDynamicHelp": false,
5348
+ "hiddenAliases": [],
5349
+ "id": "openapi:list",
5350
+ "pluginAlias": "@sanity/cli",
5351
+ "pluginName": "@sanity/cli",
5352
+ "pluginType": "core",
5353
+ "strict": true,
5354
+ "enableJsonFlag": true,
5355
+ "isESM": true,
5356
+ "relativePath": [
5357
+ "dist",
5358
+ "commands",
5359
+ "openapi",
5360
+ "list.js"
5361
5361
  ]
5362
5362
  },
5363
5363
  "organizations:create": {
@@ -7831,7 +7831,7 @@
7831
7831
  "edit.js"
7832
7832
  ]
7833
7833
  },
7834
- "context:issues:apply": {
7834
+ "context:jobs:get": {
7835
7835
  "aliases": [],
7836
7836
  "args": {
7837
7837
  "knowledgeBaseId": {
@@ -7839,22 +7839,21 @@
7839
7839
  "name": "knowledgeBaseId",
7840
7840
  "required": true
7841
7841
  },
7842
- "issueIds": {
7843
- "description": "The IDs of the issues to accept and apply.",
7844
- "multiple": true,
7845
- "name": "issueIds",
7842
+ "jobId": {
7843
+ "description": "The job ID returned by the endpoint that started the work.",
7844
+ "name": "jobId",
7846
7845
  "required": true
7847
7846
  }
7848
7847
  },
7849
- "description": "Accepts the issues in `issueIds`, then queues a job that applies them, rewrites the affected entries, and saves a new revision. Returns a job ID. IDs of issues that no longer exist are skipped. Returns `409` with code `issueNotAutoApplicable`, and accepts none of the issues, if any of them cannot be applied: a `conflict` (resolve it with `POST .../issues/{issueId}/resolve`), or an `update_required` issue whose `scopePath` is `*` or names an entry that no longer exists. Dismiss those instead.",
7848
+ "description": "Returns the status of a background job, such as a build, sync, or refresh. The endpoint that starts the work returns the job ID. A job cancelled before it started never ran, so it returns 404.",
7850
7849
  "examples": [
7851
7850
  {
7852
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
7853
- "description": "Accept and apply issues"
7851
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId>",
7852
+ "description": "Get a job"
7854
7853
  },
7855
7854
  {
7856
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
7857
- "description": "Accept and apply issues, as JSON"
7855
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId> --json",
7856
+ "description": "Get a job, as JSON"
7858
7857
  }
7859
7858
  ],
7860
7859
  "flags": {
@@ -7874,12 +7873,12 @@
7874
7873
  },
7875
7874
  "hasDynamicHelp": false,
7876
7875
  "hiddenAliases": [],
7877
- "id": "context:issues:apply",
7876
+ "id": "context:jobs:get",
7878
7877
  "pluginAlias": "@sanity/cli",
7879
7878
  "pluginName": "@sanity/cli",
7880
7879
  "pluginType": "core",
7881
7880
  "strict": true,
7882
- "summary": "Accept and apply issues",
7881
+ "summary": "Get a job",
7883
7882
  "enableJsonFlag": true,
7884
7883
  "telemetry": {
7885
7884
  "redactedFlags": []
@@ -7889,146 +7888,243 @@
7889
7888
  "dist",
7890
7889
  "commands",
7891
7890
  "context",
7892
- "issues",
7893
- "apply.js"
7891
+ "jobs",
7892
+ "get.js"
7894
7893
  ]
7895
7894
  },
7896
- "context:issues:dismiss": {
7895
+ "context:mcp:create": {
7897
7896
  "aliases": [],
7898
7897
  "args": {
7899
- "knowledgeBaseId": {
7900
- "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
7901
- "name": "knowledgeBaseId",
7902
- "required": true
7903
- },
7904
- "issueId": {
7905
- "description": "The issue's document ID.",
7906
- "name": "issueId",
7898
+ "name": {
7899
+ "description": "Permanent MCP endpoint name used in its URL, made of lowercase letters, digits and hyphens",
7900
+ "name": "name",
7907
7901
  "required": true
7908
7902
  }
7909
7903
  },
7910
- "description": "Marks the issue as rejected. If the issue already left triage, the request returns it unchanged. Returns `422` with code `issueDocumentInvalid` if the issue document was edited into a shape the API cannot verify. Returns `409` with code `issueTransitionConflict` if another change to the issue happened at the same time. You can safely retry a `409`.",
7904
+ "description": "Create a Context MCP endpoint that serves knowledge bases and a dataset to agents",
7911
7905
  "examples": [
7912
7906
  {
7913
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId>",
7914
- "description": "Dismiss an issue"
7907
+ "command": "<%= config.bin %> <%= command.id %> support --title \"Support\" --knowledge-base kb-abc123 --knowledge-base kb-def456",
7908
+ "description": "Create an MCP endpoint that serves two knowledge bases"
7915
7909
  },
7916
7910
  {
7917
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId> --json",
7918
- "description": "Dismiss an issue, as JSON"
7911
+ "command": "<%= config.bin %> <%= command.id %> catalog --title \"Catalog\" --project abc123 --dataset production --perspective drafts --groq-filter '_type in [\"product\"]'",
7912
+ "description": "Create an MCP endpoint that serves the products in a dataset"
7919
7913
  }
7920
7914
  ],
7921
7915
  "flags": {
7922
- "json": {
7923
- "description": "Format output as json.",
7924
- "helpGroup": "GLOBAL",
7925
- "name": "json",
7926
- "allowNo": false,
7927
- "type": "boolean"
7928
- }
7929
- },
7930
- "hasDynamicHelp": false,
7931
- "hiddenAliases": [],
7932
- "id": "context:issues:dismiss",
7933
- "pluginAlias": "@sanity/cli",
7934
- "pluginName": "@sanity/cli",
7935
- "pluginType": "core",
7936
- "strict": true,
7937
- "summary": "Dismiss an issue",
7938
- "enableJsonFlag": true,
7939
- "telemetry": {
7940
- "redactedFlags": []
7916
+ "organization": {
7917
+ "description": "Organization to create the MCP endpoint in (overrides CLI configuration)",
7918
+ "helpGroup": "OVERRIDE",
7919
+ "name": "organization",
7920
+ "hasDynamicHelp": false,
7921
+ "helpValue": "<id>",
7922
+ "multiple": false,
7923
+ "type": "option"
7924
+ },
7925
+ "dataset": {
7926
+ "char": "d",
7927
+ "description": "Dataset the endpoint serves",
7928
+ "name": "dataset",
7929
+ "hasDynamicHelp": false,
7930
+ "helpValue": "<name>",
7931
+ "multiple": false,
7932
+ "type": "option"
7933
+ },
7934
+ "project": {
7935
+ "aliases": [
7936
+ "project-id"
7937
+ ],
7938
+ "char": "p",
7939
+ "dependsOn": [
7940
+ "dataset"
7941
+ ],
7942
+ "deprecateAliases": true,
7943
+ "description": "Project the dataset belongs to (overrides CLI configuration)",
7944
+ "helpGroup": "OVERRIDE",
7945
+ "name": "project",
7946
+ "hasDynamicHelp": false,
7947
+ "helpValue": "<id>",
7948
+ "multiple": false,
7949
+ "type": "option"
7950
+ },
7951
+ "groq-filter": {
7952
+ "dependsOn": [
7953
+ "dataset"
7954
+ ],
7955
+ "description": "GROQ filter that limits which dataset documents the endpoint serves",
7956
+ "name": "groq-filter",
7957
+ "hasDynamicHelp": false,
7958
+ "multiple": false,
7959
+ "type": "option"
7960
+ },
7961
+ "instructions": {
7962
+ "description": "Instructions the endpoint serves to connecting agents",
7963
+ "name": "instructions",
7964
+ "hasDynamicHelp": false,
7965
+ "multiple": false,
7966
+ "type": "option"
7967
+ },
7968
+ "knowledge-base": {
7969
+ "description": "Knowledge base the endpoint serves; repeat the flag to serve several",
7970
+ "name": "knowledge-base",
7971
+ "hasDynamicHelp": false,
7972
+ "helpValue": "<id>",
7973
+ "multiple": true,
7974
+ "type": "option"
7975
+ },
7976
+ "perspective": {
7977
+ "dependsOn": [
7978
+ "dataset"
7979
+ ],
7980
+ "description": "Perspective agents query the dataset with",
7981
+ "name": "perspective",
7982
+ "hasDynamicHelp": false,
7983
+ "multiple": false,
7984
+ "options": [
7985
+ "published",
7986
+ "drafts",
7987
+ "raw"
7988
+ ],
7989
+ "type": "option"
7990
+ },
7991
+ "semantic-search": {
7992
+ "dependsOn": [
7993
+ "dataset"
7994
+ ],
7995
+ "description": "Let agents use semantic search on the dataset (--no-semantic-search to turn it off)",
7996
+ "name": "semantic-search",
7997
+ "allowNo": true,
7998
+ "type": "boolean"
7999
+ },
8000
+ "title": {
8001
+ "description": "MCP endpoint title",
8002
+ "name": "title",
8003
+ "hasDynamicHelp": false,
8004
+ "multiple": false,
8005
+ "type": "option"
8006
+ },
8007
+ "workspace": {
8008
+ "dependsOn": [
8009
+ "dataset"
8010
+ ],
8011
+ "description": "Studio workspace whose schema agents use, instead of the first workspace",
8012
+ "name": "workspace",
8013
+ "hasDynamicHelp": false,
8014
+ "multiple": false,
8015
+ "type": "option"
8016
+ }
8017
+ },
8018
+ "hasDynamicHelp": false,
8019
+ "hiddenAliases": [],
8020
+ "id": "context:mcp:create",
8021
+ "pluginAlias": "@sanity/cli",
8022
+ "pluginName": "@sanity/cli",
8023
+ "pluginType": "core",
8024
+ "strict": true,
8025
+ "telemetry": {
8026
+ "redactedFlags": [
8027
+ {
8028
+ "canonical": "--title",
8029
+ "flags": [
8030
+ "--title"
8031
+ ]
8032
+ },
8033
+ {
8034
+ "canonical": "--instructions",
8035
+ "flags": [
8036
+ "--instructions"
8037
+ ]
8038
+ },
8039
+ {
8040
+ "canonical": "--groq-filter",
8041
+ "flags": [
8042
+ "--groq-filter"
8043
+ ]
8044
+ }
8045
+ ]
7941
8046
  },
7942
8047
  "isESM": true,
7943
8048
  "relativePath": [
7944
8049
  "dist",
7945
8050
  "commands",
7946
8051
  "context",
7947
- "issues",
7948
- "dismiss.js"
8052
+ "mcp",
8053
+ "create.js"
7949
8054
  ]
7950
8055
  },
7951
- "context:issues:get": {
8056
+ "context:mcp:delete": {
7952
8057
  "aliases": [],
7953
8058
  "args": {
7954
- "knowledgeBaseId": {
7955
- "description": "Knowledge base ID",
7956
- "name": "knowledgeBaseId",
7957
- "required": true
7958
- },
7959
- "issueId": {
7960
- "description": "Issue ID",
7961
- "name": "issueId",
8059
+ "name": {
8060
+ "description": "MCP endpoint name, as in its URL",
8061
+ "name": "name",
7962
8062
  "required": true
7963
8063
  }
7964
8064
  },
7965
- "description": "Get details of an issue",
8065
+ "description": "Delete a Context MCP endpoint, which disconnects any agents using it",
7966
8066
  "examples": [
7967
8067
  {
7968
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456",
7969
- "description": "Get details of a specific issue"
8068
+ "command": "<%= config.bin %> <%= command.id %> support",
8069
+ "description": "Delete an MCP endpoint after confirmation"
7970
8070
  },
7971
8071
  {
7972
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 --json",
7973
- "description": "Output the issue as JSON"
8072
+ "command": "<%= config.bin %> <%= command.id %> support --yes",
8073
+ "description": "Delete an MCP endpoint without confirmation prompt"
7974
8074
  }
7975
8075
  ],
7976
8076
  "flags": {
7977
- "json": {
7978
- "description": "Format output as json.",
7979
- "helpGroup": "GLOBAL",
7980
- "name": "json",
8077
+ "organization": {
8078
+ "description": "Organization the MCP endpoint belongs to (overrides CLI configuration)",
8079
+ "helpGroup": "OVERRIDE",
8080
+ "name": "organization",
8081
+ "hasDynamicHelp": false,
8082
+ "helpValue": "<id>",
8083
+ "multiple": false,
8084
+ "type": "option"
8085
+ },
8086
+ "yes": {
8087
+ "char": "y",
8088
+ "description": "Skip confirmation prompt (unattended mode)",
8089
+ "name": "yes",
7981
8090
  "allowNo": false,
7982
8091
  "type": "boolean"
7983
8092
  }
7984
8093
  },
7985
8094
  "hasDynamicHelp": false,
7986
8095
  "hiddenAliases": [],
7987
- "id": "context:issues:get",
8096
+ "id": "context:mcp:delete",
7988
8097
  "pluginAlias": "@sanity/cli",
7989
8098
  "pluginName": "@sanity/cli",
7990
8099
  "pluginType": "core",
7991
8100
  "strict": true,
7992
- "enableJsonFlag": true,
7993
8101
  "isESM": true,
7994
8102
  "relativePath": [
7995
8103
  "dist",
7996
8104
  "commands",
7997
8105
  "context",
7998
- "issues",
7999
- "get.js"
8106
+ "mcp",
8107
+ "delete.js"
8000
8108
  ]
8001
8109
  },
8002
- "context:issues:list": {
8110
+ "context:mcp:get": {
8003
8111
  "aliases": [],
8004
8112
  "args": {
8005
- "knowledgeBaseId": {
8006
- "description": "Knowledge base ID",
8007
- "name": "knowledgeBaseId",
8113
+ "name": {
8114
+ "description": "MCP endpoint name, as in its URL",
8115
+ "name": "name",
8008
8116
  "required": true
8009
8117
  }
8010
8118
  },
8011
- "description": "List issues found by knowledge base builds",
8119
+ "description": "Get details of a Context MCP endpoint, including its URL",
8012
8120
  "examples": [
8013
8121
  {
8014
- "command": "<%= config.bin %> <%= command.id %> kb-abc123",
8015
- "description": "List all issues for a knowledge base"
8016
- },
8017
- {
8018
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 --status open",
8019
- "description": "List issues awaiting triage"
8020
- },
8021
- {
8022
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 --kind conflict --severity critical",
8023
- "description": "List critical conflicts"
8024
- },
8025
- {
8026
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 --scope billing",
8027
- "description": "List issues about entries under billing/"
8122
+ "command": "<%= config.bin %> <%= command.id %> support",
8123
+ "description": "Get details of the \"support\" MCP endpoint"
8028
8124
  },
8029
8125
  {
8030
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
8031
- "description": "Output issues as JSON"
8126
+ "command": "<%= config.bin %> <%= command.id %> support --organization org-abc123 --json",
8127
+ "description": "Output an MCP endpoint in a specific organization as JSON"
8032
8128
  }
8033
8129
  ],
8034
8130
  "flags": {
@@ -8039,52 +8135,19 @@
8039
8135
  "allowNo": false,
8040
8136
  "type": "boolean"
8041
8137
  },
8042
- "kind": {
8043
- "description": "Only list issues of this kind",
8044
- "name": "kind",
8045
- "hasDynamicHelp": false,
8046
- "multiple": false,
8047
- "options": [
8048
- "conflict",
8049
- "update_required"
8050
- ],
8051
- "type": "option"
8052
- },
8053
- "scope": {
8054
- "description": "Only list issues about this entry path or anything under it (`*` for knowledge-base-wide issues)",
8055
- "name": "scope",
8056
- "hasDynamicHelp": false,
8057
- "helpValue": "<path>",
8058
- "multiple": false,
8059
- "type": "option"
8060
- },
8061
- "severity": {
8062
- "description": "Only list issues of this severity",
8063
- "name": "severity",
8064
- "hasDynamicHelp": false,
8065
- "multiple": false,
8066
- "options": [
8067
- "critical",
8068
- "suggestion"
8069
- ],
8070
- "type": "option"
8071
- },
8072
- "status": {
8073
- "description": "Only list issues with this status (rejected = dismissed, accepted = resolved or applied)",
8074
- "name": "status",
8138
+ "organization": {
8139
+ "description": "Organization the MCP endpoint belongs to (overrides CLI configuration)",
8140
+ "helpGroup": "OVERRIDE",
8141
+ "name": "organization",
8075
8142
  "hasDynamicHelp": false,
8143
+ "helpValue": "<id>",
8076
8144
  "multiple": false,
8077
- "options": [
8078
- "open",
8079
- "accepted",
8080
- "rejected"
8081
- ],
8082
8145
  "type": "option"
8083
8146
  }
8084
8147
  },
8085
8148
  "hasDynamicHelp": false,
8086
8149
  "hiddenAliases": [],
8087
- "id": "context:issues:list",
8150
+ "id": "context:mcp:get",
8088
8151
  "pluginAlias": "@sanity/cli",
8089
8152
  "pluginName": "@sanity/cli",
8090
8153
  "pluginType": "core",
@@ -8095,33 +8158,28 @@
8095
8158
  "dist",
8096
8159
  "commands",
8097
8160
  "context",
8098
- "issues",
8099
- "list.js"
8161
+ "mcp",
8162
+ "get.js"
8100
8163
  ]
8101
8164
  },
8102
- "context:issues:reopen": {
8165
+ "context:mcp:initial-context": {
8103
8166
  "aliases": [],
8104
8167
  "args": {
8105
- "knowledgeBaseId": {
8106
- "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
8107
- "name": "knowledgeBaseId",
8108
- "required": true
8109
- },
8110
- "issueId": {
8111
- "description": "The issue's document ID.",
8112
- "name": "issueId",
8168
+ "mcpEndpoint": {
8169
+ "description": "The MCP endpoint's name, set when the endpoint was created.",
8170
+ "name": "mcpEndpoint",
8113
8171
  "required": true
8114
8172
  }
8115
8173
  },
8116
- "description": "Returns an accepted conflict issue to triage, clears its resolution, and deletes the instruction the resolution created. Reopening an open or dismissed conflict returns it unchanged. Other issue types return `422` with code `issueNotResolvable`.",
8174
+ "description": "Returns the same text as the `initial_context` MCP tool, as plain text you can add to a system prompt. `heading_offset` shifts markdown headings down by that many levels. The default is `1`, so `#` becomes `##`.",
8117
8175
  "examples": [
8118
8176
  {
8119
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId>",
8120
- "description": "Reopen an accepted conflict"
8177
+ "command": "<%= config.bin %> <%= command.id %> <mcpEndpoint>",
8178
+ "description": "Get an MCP endpoint's initial context"
8121
8179
  },
8122
8180
  {
8123
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId> --json",
8124
- "description": "Reopen an accepted conflict, as JSON"
8181
+ "command": "<%= config.bin %> <%= command.id %> <mcpEndpoint> --json",
8182
+ "description": "Get an MCP endpoint's initial context, as JSON"
8125
8183
  }
8126
8184
  ],
8127
8185
  "flags": {
@@ -8131,52 +8189,77 @@
8131
8189
  "name": "json",
8132
8190
  "allowNo": false,
8133
8191
  "type": "boolean"
8192
+ },
8193
+ "link-resolver": {
8194
+ "description": "A JSON array that adds `_url` fields to query results. Each item has `types` (document types), `baseUrl`, and an optional `slugExpression`, a GROQ expression that defaults to `slug.current`. Invalid JSON is ignored.",
8195
+ "name": "link-resolver",
8196
+ "hasDynamicHelp": false,
8197
+ "multiple": false,
8198
+ "type": "option"
8199
+ },
8200
+ "heading_offset": {
8201
+ "description": "How many levels to shift markdown headings down, from `0` to `6`. Defaults to `1`, so `#` becomes `##`.",
8202
+ "name": "heading_offset",
8203
+ "hasDynamicHelp": false,
8204
+ "multiple": false,
8205
+ "type": "option"
8206
+ },
8207
+ "organization": {
8208
+ "description": "Organization ID (overrides CLI configuration)",
8209
+ "helpGroup": "OVERRIDE",
8210
+ "name": "organization",
8211
+ "hasDynamicHelp": false,
8212
+ "helpValue": "<id>",
8213
+ "multiple": false,
8214
+ "type": "option"
8134
8215
  }
8135
8216
  },
8136
8217
  "hasDynamicHelp": false,
8137
8218
  "hiddenAliases": [],
8138
- "id": "context:issues:reopen",
8219
+ "id": "context:mcp:initial-context",
8139
8220
  "pluginAlias": "@sanity/cli",
8140
8221
  "pluginName": "@sanity/cli",
8141
8222
  "pluginType": "core",
8142
8223
  "strict": true,
8143
- "summary": "Reopen an accepted conflict",
8224
+ "summary": "Get an MCP endpoint's initial context",
8144
8225
  "enableJsonFlag": true,
8145
8226
  "telemetry": {
8146
- "redactedFlags": []
8227
+ "redactedFlags": [
8228
+ {
8229
+ "canonical": "--link-resolver",
8230
+ "flags": [
8231
+ "--link-resolver"
8232
+ ]
8233
+ },
8234
+ {
8235
+ "canonical": "--heading_offset",
8236
+ "flags": [
8237
+ "--heading_offset"
8238
+ ]
8239
+ }
8240
+ ]
8147
8241
  },
8148
8242
  "isESM": true,
8149
8243
  "relativePath": [
8150
8244
  "dist",
8151
8245
  "commands",
8152
8246
  "context",
8153
- "issues",
8154
- "reopen.js"
8247
+ "mcp",
8248
+ "initial-context.js"
8155
8249
  ]
8156
8250
  },
8157
- "context:issues:resolve": {
8251
+ "context:mcp:list": {
8158
8252
  "aliases": [],
8159
- "args": {
8160
- "knowledgeBaseId": {
8161
- "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
8162
- "name": "knowledgeBaseId",
8163
- "required": true
8164
- },
8165
- "issueId": {
8166
- "description": "The issue's document ID.",
8167
- "name": "issueId",
8168
- "required": true
8169
- }
8170
- },
8171
- "description": "Resolves a conflict issue by choosing one of its sides. Set `resolution` to the index of a side in `content.sides`. For a conflict on a single entry, index `0` is the entry's current content, so choosing it keeps the entry as it is. Choosing any other side rewrites the entry, and the returned `jobId` tracks the rewrite. The decision becomes a standing instruction for every future build, and `resolvedBy` records who made it. To change a decision, resolve the accepted conflict again. Other issue types, dismissed conflicts, and out-of-range indexes return `422` with code `issueNotResolvable`.",
8253
+ "args": {},
8254
+ "description": "List Context MCP endpoints in an organization",
8172
8255
  "examples": [
8173
8256
  {
8174
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue-def456",
8175
- "description": "Choose the correct side interactively"
8257
+ "command": "<%= config.bin %> <%= command.id %>",
8258
+ "description": "List MCP endpoints, selecting the organization interactively"
8176
8259
  },
8177
8260
  {
8178
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue-def456 --side 1 --watch",
8179
- "description": "Choose side 1 and wait for the entry rewrite"
8261
+ "command": "<%= config.bin %> <%= command.id %> --organization org-abc123 --json",
8262
+ "description": "Output the MCP endpoints of a specific organization as JSON"
8180
8263
  }
8181
8264
  ],
8182
8265
  "flags": {
@@ -8187,63 +8270,47 @@
8187
8270
  "allowNo": false,
8188
8271
  "type": "boolean"
8189
8272
  },
8190
- "watch": {
8191
- "description": "Wait for the job to finish, exiting non-zero if it fails",
8192
- "name": "watch",
8193
- "allowNo": false,
8194
- "type": "boolean"
8195
- },
8196
- "side": {
8197
- "description": "Index of the correct side, as listed by `sanity context issues get`",
8198
- "name": "side",
8273
+ "organization": {
8274
+ "description": "Organization to list MCP endpoints for (overrides CLI configuration)",
8275
+ "helpGroup": "OVERRIDE",
8276
+ "name": "organization",
8199
8277
  "hasDynamicHelp": false,
8278
+ "helpValue": "<id>",
8200
8279
  "multiple": false,
8201
8280
  "type": "option"
8202
8281
  }
8203
8282
  },
8204
8283
  "hasDynamicHelp": false,
8205
8284
  "hiddenAliases": [],
8206
- "id": "context:issues:resolve",
8285
+ "id": "context:mcp:list",
8207
8286
  "pluginAlias": "@sanity/cli",
8208
8287
  "pluginName": "@sanity/cli",
8209
8288
  "pluginType": "core",
8210
- "summary": "Resolve a conflict issue",
8289
+ "strict": true,
8211
8290
  "enableJsonFlag": true,
8212
- "telemetry": {
8213
- "redactedFlags": []
8214
- },
8215
8291
  "isESM": true,
8216
8292
  "relativePath": [
8217
8293
  "dist",
8218
8294
  "commands",
8219
8295
  "context",
8220
- "issues",
8221
- "resolve.js"
8296
+ "mcp",
8297
+ "list.js"
8222
8298
  ]
8223
8299
  },
8224
- "context:jobs:get": {
8300
+ "context:mcp:status": {
8225
8301
  "aliases": [],
8226
8302
  "args": {
8227
- "knowledgeBaseId": {
8228
- "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
8229
- "name": "knowledgeBaseId",
8230
- "required": true
8231
- },
8232
- "jobId": {
8233
- "description": "The job ID returned by the endpoint that started the work.",
8234
- "name": "jobId",
8303
+ "name": {
8304
+ "description": "MCP endpoint name, as in its URL",
8305
+ "name": "name",
8235
8306
  "required": true
8236
8307
  }
8237
8308
  },
8238
- "description": "Returns the status of a background job, such as a build, sync, or refresh. The endpoint that starts the work returns the job ID. A job cancelled before it started never ran, so it returns 404.",
8309
+ "description": "Check whether an agent connecting with your credentials can use a Context MCP endpoint",
8239
8310
  "examples": [
8240
8311
  {
8241
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId>",
8242
- "description": "Get a job"
8243
- },
8244
- {
8245
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId> --json",
8246
- "description": "Get a job, as JSON"
8312
+ "command": "<%= config.bin %> <%= command.id %> support",
8313
+ "description": "Check the \"support\" MCP endpoint"
8247
8314
  }
8248
8315
  ],
8249
8316
  "flags": {
@@ -8254,57 +8321,68 @@
8254
8321
  "allowNo": false,
8255
8322
  "type": "boolean"
8256
8323
  },
8257
- "watch": {
8258
- "description": "Wait for the job to finish, exiting non-zero if it fails",
8259
- "name": "watch",
8260
- "allowNo": false,
8261
- "type": "boolean"
8324
+ "organization": {
8325
+ "description": "Organization the MCP endpoint belongs to (overrides CLI configuration)",
8326
+ "helpGroup": "OVERRIDE",
8327
+ "name": "organization",
8328
+ "hasDynamicHelp": false,
8329
+ "helpValue": "<id>",
8330
+ "multiple": false,
8331
+ "type": "option"
8262
8332
  }
8263
8333
  },
8264
8334
  "hasDynamicHelp": false,
8265
8335
  "hiddenAliases": [],
8266
- "id": "context:jobs:get",
8336
+ "id": "context:mcp:status",
8267
8337
  "pluginAlias": "@sanity/cli",
8268
8338
  "pluginName": "@sanity/cli",
8269
8339
  "pluginType": "core",
8270
8340
  "strict": true,
8271
- "summary": "Get a job",
8272
8341
  "enableJsonFlag": true,
8273
- "telemetry": {
8274
- "redactedFlags": []
8275
- },
8276
8342
  "isESM": true,
8277
8343
  "relativePath": [
8278
8344
  "dist",
8279
8345
  "commands",
8280
8346
  "context",
8281
- "jobs",
8282
- "get.js"
8347
+ "mcp",
8348
+ "status.js"
8283
8349
  ]
8284
8350
  },
8285
- "context:mcp:create": {
8351
+ "context:mcp:update": {
8286
8352
  "aliases": [],
8287
8353
  "args": {
8288
8354
  "name": {
8289
- "description": "Permanent MCP endpoint name used in its URL, made of lowercase letters, digits and hyphens",
8355
+ "description": "MCP endpoint name, as in its URL",
8290
8356
  "name": "name",
8291
8357
  "required": true
8292
8358
  }
8293
8359
  },
8294
- "description": "Create a Context MCP endpoint that serves knowledge bases and a dataset to agents",
8360
+ "description": "Update a Context MCP endpoint\n\nOnly the settings you pass change. Dataset settings (--workspace, --perspective, --semantic-search) apply to the endpoint's dataset and start from the defaults when --dataset switches to another dataset.",
8295
8361
  "examples": [
8296
8362
  {
8297
- "command": "<%= config.bin %> <%= command.id %> support --title \"Support\" --knowledge-base kb-abc123 --knowledge-base kb-def456",
8298
- "description": "Create an MCP endpoint that serves two knowledge bases"
8363
+ "command": "<%= config.bin %> <%= command.id %> support --title \"Customer support\"",
8364
+ "description": "Rename an MCP endpoint"
8299
8365
  },
8300
8366
  {
8301
- "command": "<%= config.bin %> <%= command.id %> catalog --title \"Catalog\" --project abc123 --dataset production --perspective drafts --groq-filter '_type in [\"product\"]'",
8302
- "description": "Create an MCP endpoint that serves the products in a dataset"
8367
+ "command": "<%= config.bin %> <%= command.id %> support --add-knowledge-base kb-def456 --remove-knowledge-base kb-abc123",
8368
+ "description": "Serve a different knowledge base"
8369
+ },
8370
+ {
8371
+ "command": "<%= config.bin %> <%= command.id %> catalog --project abc123 --dataset staging --perspective drafts",
8372
+ "description": "Switch to another dataset and query its drafts"
8373
+ },
8374
+ {
8375
+ "command": "<%= config.bin %> <%= command.id %> support --no-dataset",
8376
+ "description": "Stop serving the dataset"
8377
+ },
8378
+ {
8379
+ "command": "<%= config.bin %> <%= command.id %> support --instructions \"\"",
8380
+ "description": "Remove the instructions"
8303
8381
  }
8304
8382
  ],
8305
8383
  "flags": {
8306
8384
  "organization": {
8307
- "description": "Organization to create the MCP endpoint in (overrides CLI configuration)",
8385
+ "description": "Organization the MCP endpoint belongs to (overrides CLI configuration)",
8308
8386
  "helpGroup": "OVERRIDE",
8309
8387
  "name": "organization",
8310
8388
  "hasDynamicHelp": false,
@@ -8312,9 +8390,17 @@
8312
8390
  "multiple": false,
8313
8391
  "type": "option"
8314
8392
  },
8393
+ "add-knowledge-base": {
8394
+ "description": "Knowledge base to add to the endpoint; repeat the flag to add several",
8395
+ "name": "add-knowledge-base",
8396
+ "hasDynamicHelp": false,
8397
+ "helpValue": "<id>",
8398
+ "multiple": true,
8399
+ "type": "option"
8400
+ },
8315
8401
  "dataset": {
8316
8402
  "char": "d",
8317
- "description": "Dataset the endpoint serves",
8403
+ "description": "Dataset the endpoint serves, replacing its current dataset",
8318
8404
  "name": "dataset",
8319
8405
  "hasDynamicHelp": false,
8320
8406
  "helpValue": "<name>",
@@ -8339,34 +8425,36 @@
8339
8425
  "type": "option"
8340
8426
  },
8341
8427
  "groq-filter": {
8342
- "dependsOn": [
8343
- "dataset"
8344
- ],
8345
- "description": "GROQ filter that limits which dataset documents the endpoint serves",
8428
+ "description": "GROQ filter that limits which dataset documents the endpoint serves (\"\" removes it)",
8346
8429
  "name": "groq-filter",
8347
8430
  "hasDynamicHelp": false,
8348
8431
  "multiple": false,
8349
8432
  "type": "option"
8350
8433
  },
8351
8434
  "instructions": {
8352
- "description": "Instructions the endpoint serves to connecting agents",
8435
+ "description": "Instructions the endpoint serves to connecting agents (\"\" removes them)",
8353
8436
  "name": "instructions",
8354
8437
  "hasDynamicHelp": false,
8355
8438
  "multiple": false,
8356
8439
  "type": "option"
8357
8440
  },
8358
8441
  "knowledge-base": {
8359
- "description": "Knowledge base the endpoint serves; repeat the flag to serve several",
8442
+ "hidden": true,
8360
8443
  "name": "knowledge-base",
8361
8444
  "hasDynamicHelp": false,
8362
- "helpValue": "<id>",
8363
8445
  "multiple": true,
8364
8446
  "type": "option"
8365
8447
  },
8366
- "perspective": {
8367
- "dependsOn": [
8448
+ "no-dataset": {
8449
+ "description": "Stop serving the dataset, which also removes the GROQ filter",
8450
+ "exclusive": [
8368
8451
  "dataset"
8369
8452
  ],
8453
+ "name": "no-dataset",
8454
+ "allowNo": false,
8455
+ "type": "boolean"
8456
+ },
8457
+ "perspective": {
8370
8458
  "description": "Perspective agents query the dataset with",
8371
8459
  "name": "perspective",
8372
8460
  "hasDynamicHelp": false,
@@ -8378,27 +8466,29 @@
8378
8466
  ],
8379
8467
  "type": "option"
8380
8468
  },
8469
+ "remove-knowledge-base": {
8470
+ "description": "Knowledge base to remove from the endpoint; repeat the flag to remove several",
8471
+ "name": "remove-knowledge-base",
8472
+ "hasDynamicHelp": false,
8473
+ "helpValue": "<id>",
8474
+ "multiple": true,
8475
+ "type": "option"
8476
+ },
8381
8477
  "semantic-search": {
8382
- "dependsOn": [
8383
- "dataset"
8384
- ],
8385
8478
  "description": "Let agents use semantic search on the dataset (--no-semantic-search to turn it off)",
8386
8479
  "name": "semantic-search",
8387
8480
  "allowNo": true,
8388
8481
  "type": "boolean"
8389
8482
  },
8390
8483
  "title": {
8391
- "description": "MCP endpoint title",
8484
+ "description": "New MCP endpoint title",
8392
8485
  "name": "title",
8393
8486
  "hasDynamicHelp": false,
8394
8487
  "multiple": false,
8395
8488
  "type": "option"
8396
8489
  },
8397
8490
  "workspace": {
8398
- "dependsOn": [
8399
- "dataset"
8400
- ],
8401
- "description": "Studio workspace whose schema agents use, instead of the first workspace",
8491
+ "description": "Studio workspace whose schema agents use (\"\" goes back to the first workspace)",
8402
8492
  "name": "workspace",
8403
8493
  "hasDynamicHelp": false,
8404
8494
  "multiple": false,
@@ -8407,7 +8497,7 @@
8407
8497
  },
8408
8498
  "hasDynamicHelp": false,
8409
8499
  "hiddenAliases": [],
8410
- "id": "context:mcp:create",
8500
+ "id": "context:mcp:update",
8411
8501
  "pluginAlias": "@sanity/cli",
8412
8502
  "pluginName": "@sanity/cli",
8413
8503
  "pluginType": "core",
@@ -8440,81 +8530,94 @@
8440
8530
  "commands",
8441
8531
  "context",
8442
8532
  "mcp",
8443
- "create.js"
8533
+ "update.js"
8444
8534
  ]
8445
8535
  },
8446
- "context:mcp:delete": {
8536
+ "context:issues:apply": {
8447
8537
  "aliases": [],
8448
8538
  "args": {
8449
- "name": {
8450
- "description": "MCP endpoint name, as in its URL",
8451
- "name": "name",
8539
+ "knowledgeBaseId": {
8540
+ "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
8541
+ "name": "knowledgeBaseId",
8542
+ "required": true
8543
+ },
8544
+ "issueIds": {
8545
+ "description": "The IDs of the issues to accept and apply.",
8546
+ "multiple": true,
8547
+ "name": "issueIds",
8452
8548
  "required": true
8453
8549
  }
8454
8550
  },
8455
- "description": "Delete a Context MCP endpoint, which disconnects any agents using it",
8551
+ "description": "Accepts the issues in `issueIds`, then queues a job that applies them, rewrites the affected entries, and saves a new revision. Returns a job ID. IDs of issues that no longer exist are skipped. Returns `409` with code `issueNotAutoApplicable`, and accepts none of the issues, if any of them cannot be applied: a `conflict` (resolve it with `POST .../issues/{issueId}/resolve`), or an `update_required` issue whose `scopePath` is `*` or names an entry that no longer exists. Dismiss those instead.",
8456
8552
  "examples": [
8457
8553
  {
8458
- "command": "<%= config.bin %> <%= command.id %> support",
8459
- "description": "Delete an MCP endpoint after confirmation"
8554
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
8555
+ "description": "Accept and apply issues"
8460
8556
  },
8461
8557
  {
8462
- "command": "<%= config.bin %> <%= command.id %> support --yes",
8463
- "description": "Delete an MCP endpoint without confirmation prompt"
8558
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
8559
+ "description": "Accept and apply issues, as JSON"
8464
8560
  }
8465
8561
  ],
8466
8562
  "flags": {
8467
- "organization": {
8468
- "description": "Organization the MCP endpoint belongs to (overrides CLI configuration)",
8469
- "helpGroup": "OVERRIDE",
8470
- "name": "organization",
8471
- "hasDynamicHelp": false,
8472
- "helpValue": "<id>",
8473
- "multiple": false,
8474
- "type": "option"
8563
+ "json": {
8564
+ "description": "Format output as json.",
8565
+ "helpGroup": "GLOBAL",
8566
+ "name": "json",
8567
+ "allowNo": false,
8568
+ "type": "boolean"
8475
8569
  },
8476
- "yes": {
8477
- "char": "y",
8478
- "description": "Skip confirmation prompt (unattended mode)",
8479
- "name": "yes",
8570
+ "watch": {
8571
+ "description": "Wait for the job to finish, exiting non-zero if it fails",
8572
+ "name": "watch",
8480
8573
  "allowNo": false,
8481
8574
  "type": "boolean"
8482
8575
  }
8483
8576
  },
8484
8577
  "hasDynamicHelp": false,
8485
8578
  "hiddenAliases": [],
8486
- "id": "context:mcp:delete",
8579
+ "id": "context:issues:apply",
8487
8580
  "pluginAlias": "@sanity/cli",
8488
8581
  "pluginName": "@sanity/cli",
8489
8582
  "pluginType": "core",
8490
8583
  "strict": true,
8584
+ "summary": "Accept and apply issues",
8585
+ "enableJsonFlag": true,
8586
+ "telemetry": {
8587
+ "redactedFlags": []
8588
+ },
8491
8589
  "isESM": true,
8492
8590
  "relativePath": [
8493
8591
  "dist",
8494
8592
  "commands",
8495
8593
  "context",
8496
- "mcp",
8497
- "delete.js"
8594
+ "issues",
8595
+ "apply.js"
8498
8596
  ]
8499
8597
  },
8500
- "context:mcp:get": {
8598
+ "context:issues:dismiss": {
8501
8599
  "aliases": [],
8502
8600
  "args": {
8503
- "name": {
8504
- "description": "MCP endpoint name, as in its URL",
8505
- "name": "name",
8601
+ "knowledgeBaseId": {
8602
+ "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
8603
+ "name": "knowledgeBaseId",
8604
+ "required": true
8605
+ },
8606
+ "issueId": {
8607
+ "description": "The issue's document ID.",
8608
+ "name": "issueId",
8506
8609
  "required": true
8507
8610
  }
8508
8611
  },
8509
- "description": "Get details of a Context MCP endpoint, including its URL",
8612
+ "description": "Marks the issue as rejected. If the issue already left triage, the request returns it unchanged. Returns `422` with code `issueDocumentInvalid` if the issue document was edited into a shape the API cannot verify. Returns `409` with code `issueTransitionConflict` if another change to the issue happened at the same time. You can safely retry a `409`.",
8510
8613
  "examples": [
8511
8614
  {
8512
- "command": "<%= config.bin %> <%= command.id %> support",
8513
- "description": "Get details of the \"support\" MCP endpoint"
8615
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId>",
8616
+ "description": "Dismiss an issue"
8514
8617
  },
8515
8618
  {
8516
- "command": "<%= config.bin %> <%= command.id %> support --organization org-abc123 --json",
8517
- "description": "Output an MCP endpoint in a specific organization as JSON"
8619
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId> --json",
8620
+ "description": "Dismiss an issue, as JSON"
8518
8621
  }
8519
8622
  ],
8520
8623
  "flags": {
@@ -8524,52 +8627,52 @@
8524
8627
  "name": "json",
8525
8628
  "allowNo": false,
8526
8629
  "type": "boolean"
8527
- },
8528
- "organization": {
8529
- "description": "Organization the MCP endpoint belongs to (overrides CLI configuration)",
8530
- "helpGroup": "OVERRIDE",
8531
- "name": "organization",
8532
- "hasDynamicHelp": false,
8533
- "helpValue": "<id>",
8534
- "multiple": false,
8535
- "type": "option"
8536
8630
  }
8537
8631
  },
8538
8632
  "hasDynamicHelp": false,
8539
8633
  "hiddenAliases": [],
8540
- "id": "context:mcp:get",
8634
+ "id": "context:issues:dismiss",
8541
8635
  "pluginAlias": "@sanity/cli",
8542
8636
  "pluginName": "@sanity/cli",
8543
8637
  "pluginType": "core",
8544
8638
  "strict": true,
8639
+ "summary": "Dismiss an issue",
8545
8640
  "enableJsonFlag": true,
8641
+ "telemetry": {
8642
+ "redactedFlags": []
8643
+ },
8546
8644
  "isESM": true,
8547
8645
  "relativePath": [
8548
8646
  "dist",
8549
8647
  "commands",
8550
8648
  "context",
8551
- "mcp",
8552
- "get.js"
8649
+ "issues",
8650
+ "dismiss.js"
8553
8651
  ]
8554
8652
  },
8555
- "context:mcp:initial-context": {
8653
+ "context:issues:get": {
8556
8654
  "aliases": [],
8557
8655
  "args": {
8558
- "mcpEndpoint": {
8559
- "description": "The MCP endpoint's name, set when the endpoint was created.",
8560
- "name": "mcpEndpoint",
8656
+ "knowledgeBaseId": {
8657
+ "description": "Knowledge base ID",
8658
+ "name": "knowledgeBaseId",
8659
+ "required": true
8660
+ },
8661
+ "issueId": {
8662
+ "description": "Issue ID",
8663
+ "name": "issueId",
8561
8664
  "required": true
8562
8665
  }
8563
8666
  },
8564
- "description": "Returns the same text as the `initial_context` MCP tool, as plain text you can add to a system prompt. `heading_offset` shifts markdown headings down by that many levels. The default is `1`, so `#` becomes `##`.",
8667
+ "description": "Get details of an issue",
8565
8668
  "examples": [
8566
8669
  {
8567
- "command": "<%= config.bin %> <%= command.id %> <mcpEndpoint>",
8568
- "description": "Get an MCP endpoint's initial context"
8670
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456",
8671
+ "description": "Get details of a specific issue"
8569
8672
  },
8570
8673
  {
8571
- "command": "<%= config.bin %> <%= command.id %> <mcpEndpoint> --json",
8572
- "description": "Get an MCP endpoint's initial context, as JSON"
8674
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 --json",
8675
+ "description": "Output the issue as JSON"
8573
8676
  }
8574
8677
  ],
8575
8678
  "flags": {
@@ -8579,77 +8682,55 @@
8579
8682
  "name": "json",
8580
8683
  "allowNo": false,
8581
8684
  "type": "boolean"
8582
- },
8583
- "link-resolver": {
8584
- "description": "A JSON array that adds `_url` fields to query results. Each item has `types` (document types), `baseUrl`, and an optional `slugExpression`, a GROQ expression that defaults to `slug.current`. Invalid JSON is ignored.",
8585
- "name": "link-resolver",
8586
- "hasDynamicHelp": false,
8587
- "multiple": false,
8588
- "type": "option"
8589
- },
8590
- "heading_offset": {
8591
- "description": "How many levels to shift markdown headings down, from `0` to `6`. Defaults to `1`, so `#` becomes `##`.",
8592
- "name": "heading_offset",
8593
- "hasDynamicHelp": false,
8594
- "multiple": false,
8595
- "type": "option"
8596
- },
8597
- "organization": {
8598
- "description": "Organization ID (overrides CLI configuration)",
8599
- "helpGroup": "OVERRIDE",
8600
- "name": "organization",
8601
- "hasDynamicHelp": false,
8602
- "helpValue": "<id>",
8603
- "multiple": false,
8604
- "type": "option"
8605
8685
  }
8606
8686
  },
8607
8687
  "hasDynamicHelp": false,
8608
8688
  "hiddenAliases": [],
8609
- "id": "context:mcp:initial-context",
8689
+ "id": "context:issues:get",
8610
8690
  "pluginAlias": "@sanity/cli",
8611
8691
  "pluginName": "@sanity/cli",
8612
8692
  "pluginType": "core",
8613
8693
  "strict": true,
8614
- "summary": "Get an MCP endpoint's initial context",
8615
8694
  "enableJsonFlag": true,
8616
- "telemetry": {
8617
- "redactedFlags": [
8618
- {
8619
- "canonical": "--link-resolver",
8620
- "flags": [
8621
- "--link-resolver"
8622
- ]
8623
- },
8624
- {
8625
- "canonical": "--heading_offset",
8626
- "flags": [
8627
- "--heading_offset"
8628
- ]
8629
- }
8630
- ]
8631
- },
8632
8695
  "isESM": true,
8633
8696
  "relativePath": [
8634
8697
  "dist",
8635
8698
  "commands",
8636
8699
  "context",
8637
- "mcp",
8638
- "initial-context.js"
8700
+ "issues",
8701
+ "get.js"
8639
8702
  ]
8640
8703
  },
8641
- "context:mcp:list": {
8704
+ "context:issues:list": {
8642
8705
  "aliases": [],
8643
- "args": {},
8644
- "description": "List Context MCP endpoints in an organization",
8706
+ "args": {
8707
+ "knowledgeBaseId": {
8708
+ "description": "Knowledge base ID",
8709
+ "name": "knowledgeBaseId",
8710
+ "required": true
8711
+ }
8712
+ },
8713
+ "description": "List issues found by knowledge base builds",
8645
8714
  "examples": [
8646
8715
  {
8647
- "command": "<%= config.bin %> <%= command.id %>",
8648
- "description": "List MCP endpoints, selecting the organization interactively"
8716
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123",
8717
+ "description": "List all issues for a knowledge base"
8649
8718
  },
8650
8719
  {
8651
- "command": "<%= config.bin %> <%= command.id %> --organization org-abc123 --json",
8652
- "description": "Output the MCP endpoints of a specific organization as JSON"
8720
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 --status open",
8721
+ "description": "List issues awaiting triage"
8722
+ },
8723
+ {
8724
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 --kind conflict --severity critical",
8725
+ "description": "List critical conflicts"
8726
+ },
8727
+ {
8728
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 --scope billing",
8729
+ "description": "List issues about entries under billing/"
8730
+ },
8731
+ {
8732
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
8733
+ "description": "Output issues as JSON"
8653
8734
  }
8654
8735
  ],
8655
8736
  "flags": {
@@ -8660,19 +8741,52 @@
8660
8741
  "allowNo": false,
8661
8742
  "type": "boolean"
8662
8743
  },
8663
- "organization": {
8664
- "description": "Organization to list MCP endpoints for (overrides CLI configuration)",
8665
- "helpGroup": "OVERRIDE",
8666
- "name": "organization",
8744
+ "kind": {
8745
+ "description": "Only list issues of this kind",
8746
+ "name": "kind",
8747
+ "hasDynamicHelp": false,
8748
+ "multiple": false,
8749
+ "options": [
8750
+ "conflict",
8751
+ "update_required"
8752
+ ],
8753
+ "type": "option"
8754
+ },
8755
+ "scope": {
8756
+ "description": "Only list issues about this entry path or anything under it (`*` for knowledge-base-wide issues)",
8757
+ "name": "scope",
8758
+ "hasDynamicHelp": false,
8759
+ "helpValue": "<path>",
8760
+ "multiple": false,
8761
+ "type": "option"
8762
+ },
8763
+ "severity": {
8764
+ "description": "Only list issues of this severity",
8765
+ "name": "severity",
8766
+ "hasDynamicHelp": false,
8767
+ "multiple": false,
8768
+ "options": [
8769
+ "critical",
8770
+ "suggestion"
8771
+ ],
8772
+ "type": "option"
8773
+ },
8774
+ "status": {
8775
+ "description": "Only list issues with this status (rejected = dismissed, accepted = resolved or applied)",
8776
+ "name": "status",
8667
8777
  "hasDynamicHelp": false,
8668
- "helpValue": "<id>",
8669
8778
  "multiple": false,
8779
+ "options": [
8780
+ "open",
8781
+ "accepted",
8782
+ "rejected"
8783
+ ],
8670
8784
  "type": "option"
8671
8785
  }
8672
8786
  },
8673
8787
  "hasDynamicHelp": false,
8674
8788
  "hiddenAliases": [],
8675
- "id": "context:mcp:list",
8789
+ "id": "context:issues:list",
8676
8790
  "pluginAlias": "@sanity/cli",
8677
8791
  "pluginName": "@sanity/cli",
8678
8792
  "pluginType": "core",
@@ -8683,24 +8797,33 @@
8683
8797
  "dist",
8684
8798
  "commands",
8685
8799
  "context",
8686
- "mcp",
8800
+ "issues",
8687
8801
  "list.js"
8688
8802
  ]
8689
8803
  },
8690
- "context:mcp:status": {
8804
+ "context:issues:reopen": {
8691
8805
  "aliases": [],
8692
8806
  "args": {
8693
- "name": {
8694
- "description": "MCP endpoint name, as in its URL",
8695
- "name": "name",
8807
+ "knowledgeBaseId": {
8808
+ "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
8809
+ "name": "knowledgeBaseId",
8810
+ "required": true
8811
+ },
8812
+ "issueId": {
8813
+ "description": "The issue's document ID.",
8814
+ "name": "issueId",
8696
8815
  "required": true
8697
8816
  }
8698
8817
  },
8699
- "description": "Check whether an agent connecting with your credentials can use a Context MCP endpoint",
8818
+ "description": "Returns an accepted conflict issue to triage, clears its resolution, and deletes the instruction the resolution created. Reopening an open or dismissed conflict returns it unchanged. Other issue types return `422` with code `issueNotResolvable`.",
8700
8819
  "examples": [
8701
8820
  {
8702
- "command": "<%= config.bin %> <%= command.id %> support",
8703
- "description": "Check the \"support\" MCP endpoint"
8821
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId>",
8822
+ "description": "Reopen an accepted conflict"
8823
+ },
8824
+ {
8825
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId> --json",
8826
+ "description": "Reopen an accepted conflict, as JSON"
8704
8827
  }
8705
8828
  ],
8706
8829
  "flags": {
@@ -8710,176 +8833,71 @@
8710
8833
  "name": "json",
8711
8834
  "allowNo": false,
8712
8835
  "type": "boolean"
8713
- },
8714
- "organization": {
8715
- "description": "Organization the MCP endpoint belongs to (overrides CLI configuration)",
8716
- "helpGroup": "OVERRIDE",
8717
- "name": "organization",
8718
- "hasDynamicHelp": false,
8719
- "helpValue": "<id>",
8720
- "multiple": false,
8721
- "type": "option"
8722
8836
  }
8723
8837
  },
8724
8838
  "hasDynamicHelp": false,
8725
8839
  "hiddenAliases": [],
8726
- "id": "context:mcp:status",
8840
+ "id": "context:issues:reopen",
8727
8841
  "pluginAlias": "@sanity/cli",
8728
8842
  "pluginName": "@sanity/cli",
8729
8843
  "pluginType": "core",
8730
8844
  "strict": true,
8845
+ "summary": "Reopen an accepted conflict",
8731
8846
  "enableJsonFlag": true,
8847
+ "telemetry": {
8848
+ "redactedFlags": []
8849
+ },
8732
8850
  "isESM": true,
8733
8851
  "relativePath": [
8734
8852
  "dist",
8735
8853
  "commands",
8736
8854
  "context",
8737
- "mcp",
8738
- "status.js"
8855
+ "issues",
8856
+ "reopen.js"
8739
8857
  ]
8740
8858
  },
8741
- "context:mcp:update": {
8859
+ "context:issues:resolve": {
8742
8860
  "aliases": [],
8743
8861
  "args": {
8744
- "name": {
8745
- "description": "MCP endpoint name, as in its URL",
8746
- "name": "name",
8862
+ "knowledgeBaseId": {
8863
+ "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
8864
+ "name": "knowledgeBaseId",
8865
+ "required": true
8866
+ },
8867
+ "issueId": {
8868
+ "description": "The issue's document ID.",
8869
+ "name": "issueId",
8747
8870
  "required": true
8748
8871
  }
8749
8872
  },
8750
- "description": "Update a Context MCP endpoint\n\nOnly the settings you pass change. Dataset settings (--workspace, --perspective, --semantic-search) apply to the endpoint's dataset and start from the defaults when --dataset switches to another dataset.",
8873
+ "description": "Resolves a conflict issue by choosing one of its sides. Set `resolution` to the index of a side in `content.sides`. For a conflict on a single entry, index `0` is the entry's current content, so choosing it keeps the entry as it is. Choosing any other side rewrites the entry, and the returned `jobId` tracks the rewrite. The decision becomes a standing instruction for every future build, and `resolvedBy` records who made it. To change a decision, resolve the accepted conflict again. Other issue types, dismissed conflicts, and out-of-range indexes return `422` with code `issueNotResolvable`.",
8751
8874
  "examples": [
8752
8875
  {
8753
- "command": "<%= config.bin %> <%= command.id %> support --title \"Customer support\"",
8754
- "description": "Rename an MCP endpoint"
8755
- },
8756
- {
8757
- "command": "<%= config.bin %> <%= command.id %> support --add-knowledge-base kb-def456 --remove-knowledge-base kb-abc123",
8758
- "description": "Serve a different knowledge base"
8759
- },
8760
- {
8761
- "command": "<%= config.bin %> <%= command.id %> catalog --project abc123 --dataset staging --perspective drafts",
8762
- "description": "Switch to another dataset and query its drafts"
8763
- },
8764
- {
8765
- "command": "<%= config.bin %> <%= command.id %> support --no-dataset",
8766
- "description": "Stop serving the dataset"
8876
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue-def456",
8877
+ "description": "Choose the correct side interactively"
8767
8878
  },
8768
8879
  {
8769
- "command": "<%= config.bin %> <%= command.id %> support --instructions \"\"",
8770
- "description": "Remove the instructions"
8880
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue-def456 --side 1 --watch",
8881
+ "description": "Choose side 1 and wait for the entry rewrite"
8771
8882
  }
8772
8883
  ],
8773
8884
  "flags": {
8774
- "organization": {
8775
- "description": "Organization the MCP endpoint belongs to (overrides CLI configuration)",
8776
- "helpGroup": "OVERRIDE",
8777
- "name": "organization",
8778
- "hasDynamicHelp": false,
8779
- "helpValue": "<id>",
8780
- "multiple": false,
8781
- "type": "option"
8782
- },
8783
- "add-knowledge-base": {
8784
- "description": "Knowledge base to add to the endpoint; repeat the flag to add several",
8785
- "name": "add-knowledge-base",
8786
- "hasDynamicHelp": false,
8787
- "helpValue": "<id>",
8788
- "multiple": true,
8789
- "type": "option"
8790
- },
8791
- "dataset": {
8792
- "char": "d",
8793
- "description": "Dataset the endpoint serves, replacing its current dataset",
8794
- "name": "dataset",
8795
- "hasDynamicHelp": false,
8796
- "helpValue": "<name>",
8797
- "multiple": false,
8798
- "type": "option"
8799
- },
8800
- "project": {
8801
- "aliases": [
8802
- "project-id"
8803
- ],
8804
- "char": "p",
8805
- "dependsOn": [
8806
- "dataset"
8807
- ],
8808
- "deprecateAliases": true,
8809
- "description": "Project the dataset belongs to (overrides CLI configuration)",
8810
- "helpGroup": "OVERRIDE",
8811
- "name": "project",
8812
- "hasDynamicHelp": false,
8813
- "helpValue": "<id>",
8814
- "multiple": false,
8815
- "type": "option"
8816
- },
8817
- "groq-filter": {
8818
- "description": "GROQ filter that limits which dataset documents the endpoint serves (\"\" removes it)",
8819
- "name": "groq-filter",
8820
- "hasDynamicHelp": false,
8821
- "multiple": false,
8822
- "type": "option"
8823
- },
8824
- "instructions": {
8825
- "description": "Instructions the endpoint serves to connecting agents (\"\" removes them)",
8826
- "name": "instructions",
8827
- "hasDynamicHelp": false,
8828
- "multiple": false,
8829
- "type": "option"
8830
- },
8831
- "knowledge-base": {
8832
- "hidden": true,
8833
- "name": "knowledge-base",
8834
- "hasDynamicHelp": false,
8835
- "multiple": true,
8836
- "type": "option"
8837
- },
8838
- "no-dataset": {
8839
- "description": "Stop serving the dataset, which also removes the GROQ filter",
8840
- "exclusive": [
8841
- "dataset"
8842
- ],
8843
- "name": "no-dataset",
8885
+ "json": {
8886
+ "description": "Format output as json.",
8887
+ "helpGroup": "GLOBAL",
8888
+ "name": "json",
8844
8889
  "allowNo": false,
8845
8890
  "type": "boolean"
8846
8891
  },
8847
- "perspective": {
8848
- "description": "Perspective agents query the dataset with",
8849
- "name": "perspective",
8850
- "hasDynamicHelp": false,
8851
- "multiple": false,
8852
- "options": [
8853
- "published",
8854
- "drafts",
8855
- "raw"
8856
- ],
8857
- "type": "option"
8858
- },
8859
- "remove-knowledge-base": {
8860
- "description": "Knowledge base to remove from the endpoint; repeat the flag to remove several",
8861
- "name": "remove-knowledge-base",
8862
- "hasDynamicHelp": false,
8863
- "helpValue": "<id>",
8864
- "multiple": true,
8865
- "type": "option"
8866
- },
8867
- "semantic-search": {
8868
- "description": "Let agents use semantic search on the dataset (--no-semantic-search to turn it off)",
8869
- "name": "semantic-search",
8870
- "allowNo": true,
8892
+ "watch": {
8893
+ "description": "Wait for the job to finish, exiting non-zero if it fails",
8894
+ "name": "watch",
8895
+ "allowNo": false,
8871
8896
  "type": "boolean"
8872
8897
  },
8873
- "title": {
8874
- "description": "New MCP endpoint title",
8875
- "name": "title",
8876
- "hasDynamicHelp": false,
8877
- "multiple": false,
8878
- "type": "option"
8879
- },
8880
- "workspace": {
8881
- "description": "Studio workspace whose schema agents use (\"\" goes back to the first workspace)",
8882
- "name": "workspace",
8898
+ "side": {
8899
+ "description": "Index of the correct side, as listed by `sanity context issues get`",
8900
+ "name": "side",
8883
8901
  "hasDynamicHelp": false,
8884
8902
  "multiple": false,
8885
8903
  "type": "option"
@@ -8887,40 +8905,22 @@
8887
8905
  },
8888
8906
  "hasDynamicHelp": false,
8889
8907
  "hiddenAliases": [],
8890
- "id": "context:mcp:update",
8908
+ "id": "context:issues:resolve",
8891
8909
  "pluginAlias": "@sanity/cli",
8892
8910
  "pluginName": "@sanity/cli",
8893
8911
  "pluginType": "core",
8894
- "strict": true,
8912
+ "summary": "Resolve a conflict issue",
8913
+ "enableJsonFlag": true,
8895
8914
  "telemetry": {
8896
- "redactedFlags": [
8897
- {
8898
- "canonical": "--title",
8899
- "flags": [
8900
- "--title"
8901
- ]
8902
- },
8903
- {
8904
- "canonical": "--instructions",
8905
- "flags": [
8906
- "--instructions"
8907
- ]
8908
- },
8909
- {
8910
- "canonical": "--groq-filter",
8911
- "flags": [
8912
- "--groq-filter"
8913
- ]
8914
- }
8915
- ]
8915
+ "redactedFlags": []
8916
8916
  },
8917
8917
  "isESM": true,
8918
8918
  "relativePath": [
8919
8919
  "dist",
8920
8920
  "commands",
8921
8921
  "context",
8922
- "mcp",
8923
- "update.js"
8922
+ "issues",
8923
+ "resolve.js"
8924
8924
  ]
8925
8925
  },
8926
8926
  "context:sources:create": {
@@ -10462,5 +10462,5 @@
10462
10462
  ]
10463
10463
  }
10464
10464
  },
10465
- "version": "8.38.0"
10465
+ "version": "8.38.1"
10466
10466
  }