@sanity/cli 8.38.1 → 8.39.0

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.
Files changed (31) hide show
  1. package/dist/actions/deploy/deployApp.js +12 -1
  2. package/dist/actions/deploy/deployApp.js.map +1 -1
  3. package/dist/actions/deploy/deployRunner.js +9 -1
  4. package/dist/actions/deploy/deployRunner.js.map +1 -1
  5. package/dist/actions/deploy/deployStudio.js +12 -1
  6. package/dist/actions/deploy/deployStudio.js.map +1 -1
  7. package/dist/actions/graphql/getSourceDeprecationWarning.js +20 -0
  8. package/dist/actions/graphql/getSourceDeprecationWarning.js.map +1 -0
  9. package/dist/actions/graphql/resolveGraphQLApisFromWorkspaces.js +12 -6
  10. package/dist/actions/graphql/resolveGraphQLApisFromWorkspaces.js.map +1 -1
  11. package/dist/actions/graphql/types.js.map +1 -1
  12. package/dist/actions/init/offerAspectPull.js +6 -8
  13. package/dist/actions/init/offerAspectPull.js.map +1 -1
  14. package/dist/commands/graphql/deploy.js +5 -0
  15. package/dist/commands/graphql/deploy.js.map +1 -1
  16. package/dist/commands/graphql/undeploy.js +5 -0
  17. package/dist/commands/graphql/undeploy.js.map +1 -1
  18. package/dist/commands/login.js +2 -3
  19. package/dist/commands/login.js.map +1 -1
  20. package/dist/commands/new.js +28 -29
  21. package/dist/commands/new.js.map +1 -1
  22. package/dist/commands/projects/unclaimed.js +6 -5
  23. package/dist/commands/projects/unclaimed.js.map +1 -1
  24. package/dist/exports/index.d.ts +3 -0
  25. package/dist/generated/apiRoutes.js +6 -0
  26. package/dist/generated/apiRoutes.js.map +1 -1
  27. package/dist/services/mintProject.js +4 -0
  28. package/dist/services/mintProject.js.map +1 -1
  29. package/oclif.manifest.json +762 -762
  30. package/package.json +5 -5
  31. package/templates/shared/AGENTS.md +8 -1
@@ -1987,179 +1987,6 @@
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
- },
2163
1990
  "context:build": {
2164
1991
  "aliases": [],
2165
1992
  "args": {
@@ -2685,57 +2512,32 @@
2685
2512
  "update.js"
2686
2513
  ]
2687
2514
  },
2688
- "datasets:copy": {
2515
+ "cors:add": {
2689
2516
  "aliases": [],
2690
2517
  "args": {
2691
- "source": {
2692
- "description": "Name of the dataset to copy from",
2693
- "name": "source",
2694
- "required": false
2695
- },
2696
- "target": {
2697
- "description": "Name of the dataset to copy to",
2698
- "name": "target",
2699
- "required": false
2518
+ "origin": {
2519
+ "description": "Origin to allow (e.g., https://example.com)",
2520
+ "name": "origin",
2521
+ "required": true
2700
2522
  }
2701
2523
  },
2702
- "description": "Copy a dataset or manage copy jobs",
2524
+ "description": "Add a CORS origin to the project",
2703
2525
  "examples": [
2704
2526
  {
2705
2527
  "command": "<%= config.bin %> <%= command.id %>",
2706
- "description": "Interactively copy a dataset"
2707
- },
2708
- {
2709
- "command": "<%= config.bin %> <%= command.id %> source-dataset",
2710
- "description": "Copy from source-dataset (prompts for target)"
2711
- },
2712
- {
2713
- "command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
2714
- "description": "Copy from source-dataset to target-dataset"
2715
- },
2716
- {
2717
- "command": "<%= config.bin %> <%= command.id %> --skip-history source target",
2718
- "description": "Copy without preserving document history (faster for large datasets)"
2719
- },
2720
- {
2721
- "command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
2722
- "description": "Copy without content release documents"
2723
- },
2724
- {
2725
- "command": "<%= config.bin %> <%= command.id %> --detach source target",
2726
- "description": "Start copy job without waiting for completion"
2528
+ "description": "Interactively add a CORS origin"
2727
2529
  },
2728
2530
  {
2729
- "command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
2730
- "description": "Attach to a running copy job to follow progress"
2531
+ "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
2532
+ "description": "Add a localhost origin without credentials"
2731
2533
  },
2732
2534
  {
2733
- "command": "<%= config.bin %> <%= command.id %> --list",
2734
- "description": "List all dataset copy jobs"
2535
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
2536
+ "description": "Add a production origin with credentials allowed"
2735
2537
  },
2736
2538
  {
2737
- "command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
2738
- "description": "List copy jobs with pagination"
2539
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project abc123",
2540
+ "description": "Add a CORS origin for a specific project"
2739
2541
  }
2740
2542
  ],
2741
2543
  "flags": {
@@ -2745,7 +2547,7 @@
2745
2547
  ],
2746
2548
  "char": "p",
2747
2549
  "deprecateAliases": true,
2748
- "description": "Project ID to copy dataset in (overrides CLI configuration)",
2550
+ "description": "Project ID to add CORS origin to (overrides CLI configuration)",
2749
2551
  "helpGroup": "OVERRIDE",
2750
2552
  "name": "project",
2751
2553
  "hasDynamicHelp": false,
@@ -2753,31 +2555,229 @@
2753
2555
  "multiple": false,
2754
2556
  "type": "option"
2755
2557
  },
2756
- "attach": {
2757
- "description": "Attach to the running copy process to show progress",
2758
- "exclusive": [
2759
- "list",
2760
- "detach",
2761
- "skip-history"
2762
- ],
2763
- "name": "attach",
2558
+ "credentials": {
2559
+ "description": "Allow credentials (token/cookie) to be sent from this origin",
2560
+ "name": "credentials",
2764
2561
  "required": false,
2765
- "hasDynamicHelp": false,
2766
- "multiple": false,
2767
- "type": "option"
2562
+ "allowNo": true,
2563
+ "type": "boolean"
2768
2564
  },
2769
- "detach": {
2770
- "description": "Start the copy without waiting for it to finish",
2771
- "exclusive": [
2772
- "list",
2773
- "attach"
2774
- ],
2775
- "name": "detach",
2776
- "required": false,
2565
+ "yes": {
2566
+ "char": "y",
2567
+ "description": "Confirm risky wildcard origins without prompting",
2568
+ "name": "yes",
2777
2569
  "allowNo": false,
2778
2570
  "type": "boolean"
2779
- },
2780
- "limit": {
2571
+ }
2572
+ },
2573
+ "hasDynamicHelp": false,
2574
+ "hiddenAliases": [],
2575
+ "id": "cors:add",
2576
+ "pluginAlias": "@sanity/cli",
2577
+ "pluginName": "@sanity/cli",
2578
+ "pluginType": "core",
2579
+ "strict": true,
2580
+ "isESM": true,
2581
+ "relativePath": [
2582
+ "dist",
2583
+ "commands",
2584
+ "cors",
2585
+ "add.js"
2586
+ ]
2587
+ },
2588
+ "cors:delete": {
2589
+ "aliases": [],
2590
+ "args": {
2591
+ "origin": {
2592
+ "description": "Origin to delete (will prompt if not provided)",
2593
+ "name": "origin",
2594
+ "required": false
2595
+ }
2596
+ },
2597
+ "description": "Delete a CORS origin from the project",
2598
+ "examples": [
2599
+ {
2600
+ "command": "<%= config.bin %> <%= command.id %>",
2601
+ "description": "Interactively select and delete a CORS origin"
2602
+ },
2603
+ {
2604
+ "command": "<%= config.bin %> <%= command.id %> https://example.com",
2605
+ "description": "Delete a specific CORS origin"
2606
+ },
2607
+ {
2608
+ "command": "<%= config.bin %> <%= command.id %> --project abc123",
2609
+ "description": "Delete a CORS origin from a specific project"
2610
+ }
2611
+ ],
2612
+ "flags": {
2613
+ "project": {
2614
+ "aliases": [
2615
+ "project-id"
2616
+ ],
2617
+ "char": "p",
2618
+ "deprecateAliases": true,
2619
+ "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
2620
+ "helpGroup": "OVERRIDE",
2621
+ "name": "project",
2622
+ "hasDynamicHelp": false,
2623
+ "helpValue": "<id>",
2624
+ "multiple": false,
2625
+ "type": "option"
2626
+ }
2627
+ },
2628
+ "hasDynamicHelp": false,
2629
+ "hiddenAliases": [],
2630
+ "id": "cors:delete",
2631
+ "pluginAlias": "@sanity/cli",
2632
+ "pluginName": "@sanity/cli",
2633
+ "pluginType": "core",
2634
+ "strict": true,
2635
+ "isESM": true,
2636
+ "relativePath": [
2637
+ "dist",
2638
+ "commands",
2639
+ "cors",
2640
+ "delete.js"
2641
+ ]
2642
+ },
2643
+ "cors:list": {
2644
+ "aliases": [],
2645
+ "args": {},
2646
+ "description": "List CORS origins for the project",
2647
+ "examples": [
2648
+ {
2649
+ "command": "<%= config.bin %> <%= command.id %>",
2650
+ "description": "List CORS origins for the project"
2651
+ },
2652
+ {
2653
+ "command": "<%= config.bin %> <%= command.id %> --project abc123",
2654
+ "description": "List CORS origins for a specific project"
2655
+ }
2656
+ ],
2657
+ "flags": {
2658
+ "project": {
2659
+ "aliases": [
2660
+ "project-id"
2661
+ ],
2662
+ "char": "p",
2663
+ "deprecateAliases": true,
2664
+ "description": "Project ID to list CORS origins for (overrides CLI configuration)",
2665
+ "helpGroup": "OVERRIDE",
2666
+ "name": "project",
2667
+ "hasDynamicHelp": false,
2668
+ "helpValue": "<id>",
2669
+ "multiple": false,
2670
+ "type": "option"
2671
+ }
2672
+ },
2673
+ "hasDynamicHelp": false,
2674
+ "hiddenAliases": [],
2675
+ "id": "cors:list",
2676
+ "pluginAlias": "@sanity/cli",
2677
+ "pluginName": "@sanity/cli",
2678
+ "pluginType": "core",
2679
+ "strict": true,
2680
+ "isESM": true,
2681
+ "relativePath": [
2682
+ "dist",
2683
+ "commands",
2684
+ "cors",
2685
+ "list.js"
2686
+ ]
2687
+ },
2688
+ "datasets:copy": {
2689
+ "aliases": [],
2690
+ "args": {
2691
+ "source": {
2692
+ "description": "Name of the dataset to copy from",
2693
+ "name": "source",
2694
+ "required": false
2695
+ },
2696
+ "target": {
2697
+ "description": "Name of the dataset to copy to",
2698
+ "name": "target",
2699
+ "required": false
2700
+ }
2701
+ },
2702
+ "description": "Copy a dataset or manage copy jobs",
2703
+ "examples": [
2704
+ {
2705
+ "command": "<%= config.bin %> <%= command.id %>",
2706
+ "description": "Interactively copy a dataset"
2707
+ },
2708
+ {
2709
+ "command": "<%= config.bin %> <%= command.id %> source-dataset",
2710
+ "description": "Copy from source-dataset (prompts for target)"
2711
+ },
2712
+ {
2713
+ "command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
2714
+ "description": "Copy from source-dataset to target-dataset"
2715
+ },
2716
+ {
2717
+ "command": "<%= config.bin %> <%= command.id %> --skip-history source target",
2718
+ "description": "Copy without preserving document history (faster for large datasets)"
2719
+ },
2720
+ {
2721
+ "command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
2722
+ "description": "Copy without content release documents"
2723
+ },
2724
+ {
2725
+ "command": "<%= config.bin %> <%= command.id %> --detach source target",
2726
+ "description": "Start copy job without waiting for completion"
2727
+ },
2728
+ {
2729
+ "command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
2730
+ "description": "Attach to a running copy job to follow progress"
2731
+ },
2732
+ {
2733
+ "command": "<%= config.bin %> <%= command.id %> --list",
2734
+ "description": "List all dataset copy jobs"
2735
+ },
2736
+ {
2737
+ "command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
2738
+ "description": "List copy jobs with pagination"
2739
+ }
2740
+ ],
2741
+ "flags": {
2742
+ "project": {
2743
+ "aliases": [
2744
+ "project-id"
2745
+ ],
2746
+ "char": "p",
2747
+ "deprecateAliases": true,
2748
+ "description": "Project ID to copy dataset in (overrides CLI configuration)",
2749
+ "helpGroup": "OVERRIDE",
2750
+ "name": "project",
2751
+ "hasDynamicHelp": false,
2752
+ "helpValue": "<id>",
2753
+ "multiple": false,
2754
+ "type": "option"
2755
+ },
2756
+ "attach": {
2757
+ "description": "Attach to the running copy process to show progress",
2758
+ "exclusive": [
2759
+ "list",
2760
+ "detach",
2761
+ "skip-history"
2762
+ ],
2763
+ "name": "attach",
2764
+ "required": false,
2765
+ "hasDynamicHelp": false,
2766
+ "multiple": false,
2767
+ "type": "option"
2768
+ },
2769
+ "detach": {
2770
+ "description": "Start the copy without waiting for it to finish",
2771
+ "exclusive": [
2772
+ "list",
2773
+ "attach"
2774
+ ],
2775
+ "name": "detach",
2776
+ "required": false,
2777
+ "allowNo": false,
2778
+ "type": "boolean"
2779
+ },
2780
+ "limit": {
2781
2781
  "dependsOn": [
2782
2782
  "list"
2783
2783
  ],
@@ -7831,7 +7831,7 @@
7831
7831
  "edit.js"
7832
7832
  ]
7833
7833
  },
7834
- "context:jobs:get": {
7834
+ "context:issues:apply": {
7835
7835
  "aliases": [],
7836
7836
  "args": {
7837
7837
  "knowledgeBaseId": {
@@ -7839,21 +7839,22 @@
7839
7839
  "name": "knowledgeBaseId",
7840
7840
  "required": true
7841
7841
  },
7842
- "jobId": {
7843
- "description": "The job ID returned by the endpoint that started the work.",
7844
- "name": "jobId",
7842
+ "issueIds": {
7843
+ "description": "The IDs of the issues to accept and apply.",
7844
+ "multiple": true,
7845
+ "name": "issueIds",
7845
7846
  "required": true
7846
7847
  }
7847
7848
  },
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.",
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.",
7849
7850
  "examples": [
7850
7851
  {
7851
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId>",
7852
- "description": "Get a job"
7852
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
7853
+ "description": "Accept and apply issues"
7853
7854
  },
7854
7855
  {
7855
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId> --json",
7856
- "description": "Get a job, as JSON"
7856
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
7857
+ "description": "Accept and apply issues, as JSON"
7857
7858
  }
7858
7859
  ],
7859
7860
  "flags": {
@@ -7873,12 +7874,12 @@
7873
7874
  },
7874
7875
  "hasDynamicHelp": false,
7875
7876
  "hiddenAliases": [],
7876
- "id": "context:jobs:get",
7877
+ "id": "context:issues:apply",
7877
7878
  "pluginAlias": "@sanity/cli",
7878
7879
  "pluginName": "@sanity/cli",
7879
7880
  "pluginType": "core",
7880
7881
  "strict": true,
7881
- "summary": "Get a job",
7882
+ "summary": "Accept and apply issues",
7882
7883
  "enableJsonFlag": true,
7883
7884
  "telemetry": {
7884
7885
  "redactedFlags": []
@@ -7888,243 +7889,146 @@
7888
7889
  "dist",
7889
7890
  "commands",
7890
7891
  "context",
7891
- "jobs",
7892
- "get.js"
7892
+ "issues",
7893
+ "apply.js"
7893
7894
  ]
7894
7895
  },
7895
- "context:mcp:create": {
7896
+ "context:issues:dismiss": {
7896
7897
  "aliases": [],
7897
7898
  "args": {
7898
- "name": {
7899
- "description": "Permanent MCP endpoint name used in its URL, made of lowercase letters, digits and hyphens",
7900
- "name": "name",
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",
7901
7907
  "required": true
7902
7908
  }
7903
7909
  },
7904
- "description": "Create a Context MCP endpoint that serves knowledge bases and a dataset to agents",
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`.",
7905
7911
  "examples": [
7906
7912
  {
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"
7913
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId>",
7914
+ "description": "Dismiss an issue"
7909
7915
  },
7910
7916
  {
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"
7917
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId> --json",
7918
+ "description": "Dismiss an issue, as JSON"
7913
7919
  }
7914
7920
  ],
7915
7921
  "flags": {
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,
7922
+ "json": {
7923
+ "description": "Format output as json.",
7924
+ "helpGroup": "GLOBAL",
7925
+ "name": "json",
7926
+ "allowNo": false,
7998
7927
  "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
7928
  }
8017
7929
  },
8018
7930
  "hasDynamicHelp": false,
8019
7931
  "hiddenAliases": [],
8020
- "id": "context:mcp:create",
7932
+ "id": "context:issues:dismiss",
8021
7933
  "pluginAlias": "@sanity/cli",
8022
7934
  "pluginName": "@sanity/cli",
8023
7935
  "pluginType": "core",
8024
7936
  "strict": true,
7937
+ "summary": "Dismiss an issue",
7938
+ "enableJsonFlag": true,
8025
7939
  "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
- ]
7940
+ "redactedFlags": []
8046
7941
  },
8047
7942
  "isESM": true,
8048
7943
  "relativePath": [
8049
7944
  "dist",
8050
7945
  "commands",
8051
7946
  "context",
8052
- "mcp",
8053
- "create.js"
7947
+ "issues",
7948
+ "dismiss.js"
8054
7949
  ]
8055
7950
  },
8056
- "context:mcp:delete": {
7951
+ "context:issues:get": {
8057
7952
  "aliases": [],
8058
7953
  "args": {
8059
- "name": {
8060
- "description": "MCP endpoint name, as in its URL",
8061
- "name": "name",
7954
+ "knowledgeBaseId": {
7955
+ "description": "Knowledge base ID",
7956
+ "name": "knowledgeBaseId",
7957
+ "required": true
7958
+ },
7959
+ "issueId": {
7960
+ "description": "Issue ID",
7961
+ "name": "issueId",
8062
7962
  "required": true
8063
7963
  }
8064
7964
  },
8065
- "description": "Delete a Context MCP endpoint, which disconnects any agents using it",
7965
+ "description": "Get details of an issue",
8066
7966
  "examples": [
8067
7967
  {
8068
- "command": "<%= config.bin %> <%= command.id %> support",
8069
- "description": "Delete an MCP endpoint after confirmation"
7968
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456",
7969
+ "description": "Get details of a specific issue"
8070
7970
  },
8071
7971
  {
8072
- "command": "<%= config.bin %> <%= command.id %> support --yes",
8073
- "description": "Delete an MCP endpoint without confirmation prompt"
7972
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 --json",
7973
+ "description": "Output the issue as JSON"
8074
7974
  }
8075
7975
  ],
8076
7976
  "flags": {
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",
7977
+ "json": {
7978
+ "description": "Format output as json.",
7979
+ "helpGroup": "GLOBAL",
7980
+ "name": "json",
8090
7981
  "allowNo": false,
8091
7982
  "type": "boolean"
8092
7983
  }
8093
7984
  },
8094
7985
  "hasDynamicHelp": false,
8095
7986
  "hiddenAliases": [],
8096
- "id": "context:mcp:delete",
7987
+ "id": "context:issues:get",
8097
7988
  "pluginAlias": "@sanity/cli",
8098
7989
  "pluginName": "@sanity/cli",
8099
7990
  "pluginType": "core",
8100
7991
  "strict": true,
7992
+ "enableJsonFlag": true,
8101
7993
  "isESM": true,
8102
7994
  "relativePath": [
8103
7995
  "dist",
8104
7996
  "commands",
8105
7997
  "context",
8106
- "mcp",
8107
- "delete.js"
7998
+ "issues",
7999
+ "get.js"
8108
8000
  ]
8109
8001
  },
8110
- "context:mcp:get": {
8002
+ "context:issues:list": {
8111
8003
  "aliases": [],
8112
8004
  "args": {
8113
- "name": {
8114
- "description": "MCP endpoint name, as in its URL",
8115
- "name": "name",
8005
+ "knowledgeBaseId": {
8006
+ "description": "Knowledge base ID",
8007
+ "name": "knowledgeBaseId",
8116
8008
  "required": true
8117
8009
  }
8118
8010
  },
8119
- "description": "Get details of a Context MCP endpoint, including its URL",
8011
+ "description": "List issues found by knowledge base builds",
8120
8012
  "examples": [
8121
8013
  {
8122
- "command": "<%= config.bin %> <%= command.id %> support",
8123
- "description": "Get details of the \"support\" MCP endpoint"
8014
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123",
8015
+ "description": "List all issues for a knowledge base"
8124
8016
  },
8125
8017
  {
8126
- "command": "<%= config.bin %> <%= command.id %> support --organization org-abc123 --json",
8127
- "description": "Output an MCP endpoint in a specific organization as JSON"
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/"
8028
+ },
8029
+ {
8030
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
8031
+ "description": "Output issues as JSON"
8128
8032
  }
8129
8033
  ],
8130
8034
  "flags": {
@@ -8135,19 +8039,52 @@
8135
8039
  "allowNo": false,
8136
8040
  "type": "boolean"
8137
8041
  },
8138
- "organization": {
8139
- "description": "Organization the MCP endpoint belongs to (overrides CLI configuration)",
8140
- "helpGroup": "OVERRIDE",
8141
- "name": "organization",
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",
8142
8075
  "hasDynamicHelp": false,
8143
- "helpValue": "<id>",
8144
8076
  "multiple": false,
8077
+ "options": [
8078
+ "open",
8079
+ "accepted",
8080
+ "rejected"
8081
+ ],
8145
8082
  "type": "option"
8146
8083
  }
8147
8084
  },
8148
8085
  "hasDynamicHelp": false,
8149
8086
  "hiddenAliases": [],
8150
- "id": "context:mcp:get",
8087
+ "id": "context:issues:list",
8151
8088
  "pluginAlias": "@sanity/cli",
8152
8089
  "pluginName": "@sanity/cli",
8153
8090
  "pluginType": "core",
@@ -8158,28 +8095,33 @@
8158
8095
  "dist",
8159
8096
  "commands",
8160
8097
  "context",
8161
- "mcp",
8162
- "get.js"
8098
+ "issues",
8099
+ "list.js"
8163
8100
  ]
8164
8101
  },
8165
- "context:mcp:initial-context": {
8102
+ "context:issues:reopen": {
8166
8103
  "aliases": [],
8167
8104
  "args": {
8168
- "mcpEndpoint": {
8169
- "description": "The MCP endpoint's name, set when the endpoint was created.",
8170
- "name": "mcpEndpoint",
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",
8171
8113
  "required": true
8172
8114
  }
8173
8115
  },
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 `##`.",
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`.",
8175
8117
  "examples": [
8176
8118
  {
8177
- "command": "<%= config.bin %> <%= command.id %> <mcpEndpoint>",
8178
- "description": "Get an MCP endpoint's initial context"
8119
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId>",
8120
+ "description": "Reopen an accepted conflict"
8179
8121
  },
8180
8122
  {
8181
- "command": "<%= config.bin %> <%= command.id %> <mcpEndpoint> --json",
8182
- "description": "Get an MCP endpoint's initial context, as JSON"
8123
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId> --json",
8124
+ "description": "Reopen an accepted conflict, as JSON"
8183
8125
  }
8184
8126
  ],
8185
8127
  "flags": {
@@ -8189,77 +8131,52 @@
8189
8131
  "name": "json",
8190
8132
  "allowNo": false,
8191
8133
  "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"
8215
8134
  }
8216
8135
  },
8217
8136
  "hasDynamicHelp": false,
8218
8137
  "hiddenAliases": [],
8219
- "id": "context:mcp:initial-context",
8138
+ "id": "context:issues:reopen",
8220
8139
  "pluginAlias": "@sanity/cli",
8221
8140
  "pluginName": "@sanity/cli",
8222
8141
  "pluginType": "core",
8223
8142
  "strict": true,
8224
- "summary": "Get an MCP endpoint's initial context",
8143
+ "summary": "Reopen an accepted conflict",
8225
8144
  "enableJsonFlag": true,
8226
8145
  "telemetry": {
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
- ]
8146
+ "redactedFlags": []
8241
8147
  },
8242
8148
  "isESM": true,
8243
8149
  "relativePath": [
8244
8150
  "dist",
8245
8151
  "commands",
8246
8152
  "context",
8247
- "mcp",
8248
- "initial-context.js"
8153
+ "issues",
8154
+ "reopen.js"
8249
8155
  ]
8250
8156
  },
8251
- "context:mcp:list": {
8157
+ "context:issues:resolve": {
8252
8158
  "aliases": [],
8253
- "args": {},
8254
- "description": "List Context MCP endpoints in an organization",
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`.",
8255
8172
  "examples": [
8256
8173
  {
8257
- "command": "<%= config.bin %> <%= command.id %>",
8258
- "description": "List MCP endpoints, selecting the organization interactively"
8174
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue-def456",
8175
+ "description": "Choose the correct side interactively"
8259
8176
  },
8260
8177
  {
8261
- "command": "<%= config.bin %> <%= command.id %> --organization org-abc123 --json",
8262
- "description": "Output the MCP endpoints of a specific organization as JSON"
8178
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue-def456 --side 1 --watch",
8179
+ "description": "Choose side 1 and wait for the entry rewrite"
8263
8180
  }
8264
8181
  ],
8265
8182
  "flags": {
@@ -8270,47 +8187,63 @@
8270
8187
  "allowNo": false,
8271
8188
  "type": "boolean"
8272
8189
  },
8273
- "organization": {
8274
- "description": "Organization to list MCP endpoints for (overrides CLI configuration)",
8275
- "helpGroup": "OVERRIDE",
8276
- "name": "organization",
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",
8277
8199
  "hasDynamicHelp": false,
8278
- "helpValue": "<id>",
8279
8200
  "multiple": false,
8280
8201
  "type": "option"
8281
8202
  }
8282
8203
  },
8283
8204
  "hasDynamicHelp": false,
8284
8205
  "hiddenAliases": [],
8285
- "id": "context:mcp:list",
8206
+ "id": "context:issues:resolve",
8286
8207
  "pluginAlias": "@sanity/cli",
8287
8208
  "pluginName": "@sanity/cli",
8288
8209
  "pluginType": "core",
8289
- "strict": true,
8210
+ "summary": "Resolve a conflict issue",
8290
8211
  "enableJsonFlag": true,
8212
+ "telemetry": {
8213
+ "redactedFlags": []
8214
+ },
8291
8215
  "isESM": true,
8292
8216
  "relativePath": [
8293
8217
  "dist",
8294
8218
  "commands",
8295
8219
  "context",
8296
- "mcp",
8297
- "list.js"
8220
+ "issues",
8221
+ "resolve.js"
8298
8222
  ]
8299
8223
  },
8300
- "context:mcp:status": {
8224
+ "context:jobs:get": {
8301
8225
  "aliases": [],
8302
8226
  "args": {
8303
- "name": {
8304
- "description": "MCP endpoint name, as in its URL",
8305
- "name": "name",
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",
8306
8235
  "required": true
8307
8236
  }
8308
8237
  },
8309
- "description": "Check whether an agent connecting with your credentials can use a Context MCP endpoint",
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.",
8310
8239
  "examples": [
8311
8240
  {
8312
- "command": "<%= config.bin %> <%= command.id %> support",
8313
- "description": "Check the \"support\" MCP endpoint"
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"
8314
8247
  }
8315
8248
  ],
8316
8249
  "flags": {
@@ -8321,68 +8254,57 @@
8321
8254
  "allowNo": false,
8322
8255
  "type": "boolean"
8323
8256
  },
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"
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"
8332
8262
  }
8333
8263
  },
8334
8264
  "hasDynamicHelp": false,
8335
8265
  "hiddenAliases": [],
8336
- "id": "context:mcp:status",
8266
+ "id": "context:jobs:get",
8337
8267
  "pluginAlias": "@sanity/cli",
8338
8268
  "pluginName": "@sanity/cli",
8339
8269
  "pluginType": "core",
8340
8270
  "strict": true,
8271
+ "summary": "Get a job",
8341
8272
  "enableJsonFlag": true,
8273
+ "telemetry": {
8274
+ "redactedFlags": []
8275
+ },
8342
8276
  "isESM": true,
8343
8277
  "relativePath": [
8344
8278
  "dist",
8345
8279
  "commands",
8346
8280
  "context",
8347
- "mcp",
8348
- "status.js"
8281
+ "jobs",
8282
+ "get.js"
8349
8283
  ]
8350
8284
  },
8351
- "context:mcp:update": {
8285
+ "context:mcp:create": {
8352
8286
  "aliases": [],
8353
8287
  "args": {
8354
8288
  "name": {
8355
- "description": "MCP endpoint name, as in its URL",
8289
+ "description": "Permanent MCP endpoint name used in its URL, made of lowercase letters, digits and hyphens",
8356
8290
  "name": "name",
8357
8291
  "required": true
8358
8292
  }
8359
8293
  },
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.",
8294
+ "description": "Create a Context MCP endpoint that serves knowledge bases and a dataset to agents",
8361
8295
  "examples": [
8362
8296
  {
8363
- "command": "<%= config.bin %> <%= command.id %> support --title \"Customer support\"",
8364
- "description": "Rename an MCP endpoint"
8365
- },
8366
- {
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"
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"
8377
8299
  },
8378
8300
  {
8379
- "command": "<%= config.bin %> <%= command.id %> support --instructions \"\"",
8380
- "description": "Remove the instructions"
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"
8381
8303
  }
8382
8304
  ],
8383
8305
  "flags": {
8384
8306
  "organization": {
8385
- "description": "Organization the MCP endpoint belongs to (overrides CLI configuration)",
8307
+ "description": "Organization to create the MCP endpoint in (overrides CLI configuration)",
8386
8308
  "helpGroup": "OVERRIDE",
8387
8309
  "name": "organization",
8388
8310
  "hasDynamicHelp": false,
@@ -8390,17 +8312,9 @@
8390
8312
  "multiple": false,
8391
8313
  "type": "option"
8392
8314
  },
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
- },
8401
8315
  "dataset": {
8402
8316
  "char": "d",
8403
- "description": "Dataset the endpoint serves, replacing its current dataset",
8317
+ "description": "Dataset the endpoint serves",
8404
8318
  "name": "dataset",
8405
8319
  "hasDynamicHelp": false,
8406
8320
  "helpValue": "<name>",
@@ -8425,70 +8339,66 @@
8425
8339
  "type": "option"
8426
8340
  },
8427
8341
  "groq-filter": {
8428
- "description": "GROQ filter that limits which dataset documents the endpoint serves (\"\" removes it)",
8342
+ "dependsOn": [
8343
+ "dataset"
8344
+ ],
8345
+ "description": "GROQ filter that limits which dataset documents the endpoint serves",
8429
8346
  "name": "groq-filter",
8430
8347
  "hasDynamicHelp": false,
8431
8348
  "multiple": false,
8432
8349
  "type": "option"
8433
8350
  },
8434
8351
  "instructions": {
8435
- "description": "Instructions the endpoint serves to connecting agents (\"\" removes them)",
8352
+ "description": "Instructions the endpoint serves to connecting agents",
8436
8353
  "name": "instructions",
8437
8354
  "hasDynamicHelp": false,
8438
8355
  "multiple": false,
8439
8356
  "type": "option"
8440
8357
  },
8441
8358
  "knowledge-base": {
8442
- "hidden": true,
8359
+ "description": "Knowledge base the endpoint serves; repeat the flag to serve several",
8443
8360
  "name": "knowledge-base",
8444
8361
  "hasDynamicHelp": false,
8362
+ "helpValue": "<id>",
8445
8363
  "multiple": true,
8446
8364
  "type": "option"
8447
8365
  },
8448
- "no-dataset": {
8449
- "description": "Stop serving the dataset, which also removes the GROQ filter",
8450
- "exclusive": [
8366
+ "perspective": {
8367
+ "dependsOn": [
8451
8368
  "dataset"
8452
8369
  ],
8453
- "name": "no-dataset",
8454
- "allowNo": false,
8455
- "type": "boolean"
8456
- },
8457
- "perspective": {
8458
8370
  "description": "Perspective agents query the dataset with",
8459
8371
  "name": "perspective",
8460
8372
  "hasDynamicHelp": false,
8461
8373
  "multiple": false,
8462
8374
  "options": [
8463
- "published",
8464
- "drafts",
8465
- "raw"
8466
- ],
8467
- "type": "option"
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,
8375
+ "published",
8376
+ "drafts",
8377
+ "raw"
8378
+ ],
8475
8379
  "type": "option"
8476
8380
  },
8477
8381
  "semantic-search": {
8382
+ "dependsOn": [
8383
+ "dataset"
8384
+ ],
8478
8385
  "description": "Let agents use semantic search on the dataset (--no-semantic-search to turn it off)",
8479
8386
  "name": "semantic-search",
8480
8387
  "allowNo": true,
8481
8388
  "type": "boolean"
8482
8389
  },
8483
8390
  "title": {
8484
- "description": "New MCP endpoint title",
8391
+ "description": "MCP endpoint title",
8485
8392
  "name": "title",
8486
8393
  "hasDynamicHelp": false,
8487
8394
  "multiple": false,
8488
8395
  "type": "option"
8489
8396
  },
8490
8397
  "workspace": {
8491
- "description": "Studio workspace whose schema agents use (\"\" goes back to the first workspace)",
8398
+ "dependsOn": [
8399
+ "dataset"
8400
+ ],
8401
+ "description": "Studio workspace whose schema agents use, instead of the first workspace",
8492
8402
  "name": "workspace",
8493
8403
  "hasDynamicHelp": false,
8494
8404
  "multiple": false,
@@ -8497,7 +8407,7 @@
8497
8407
  },
8498
8408
  "hasDynamicHelp": false,
8499
8409
  "hiddenAliases": [],
8500
- "id": "context:mcp:update",
8410
+ "id": "context:mcp:create",
8501
8411
  "pluginAlias": "@sanity/cli",
8502
8412
  "pluginName": "@sanity/cli",
8503
8413
  "pluginType": "core",
@@ -8530,94 +8440,81 @@
8530
8440
  "commands",
8531
8441
  "context",
8532
8442
  "mcp",
8533
- "update.js"
8443
+ "create.js"
8534
8444
  ]
8535
8445
  },
8536
- "context:issues:apply": {
8446
+ "context:mcp:delete": {
8537
8447
  "aliases": [],
8538
8448
  "args": {
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",
8449
+ "name": {
8450
+ "description": "MCP endpoint name, as in its URL",
8451
+ "name": "name",
8548
8452
  "required": true
8549
8453
  }
8550
8454
  },
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.",
8455
+ "description": "Delete a Context MCP endpoint, which disconnects any agents using it",
8552
8456
  "examples": [
8553
8457
  {
8554
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
8555
- "description": "Accept and apply issues"
8458
+ "command": "<%= config.bin %> <%= command.id %> support",
8459
+ "description": "Delete an MCP endpoint after confirmation"
8556
8460
  },
8557
8461
  {
8558
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
8559
- "description": "Accept and apply issues, as JSON"
8462
+ "command": "<%= config.bin %> <%= command.id %> support --yes",
8463
+ "description": "Delete an MCP endpoint without confirmation prompt"
8560
8464
  }
8561
8465
  ],
8562
8466
  "flags": {
8563
- "json": {
8564
- "description": "Format output as json.",
8565
- "helpGroup": "GLOBAL",
8566
- "name": "json",
8567
- "allowNo": false,
8568
- "type": "boolean"
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"
8569
8475
  },
8570
- "watch": {
8571
- "description": "Wait for the job to finish, exiting non-zero if it fails",
8572
- "name": "watch",
8476
+ "yes": {
8477
+ "char": "y",
8478
+ "description": "Skip confirmation prompt (unattended mode)",
8479
+ "name": "yes",
8573
8480
  "allowNo": false,
8574
8481
  "type": "boolean"
8575
8482
  }
8576
8483
  },
8577
8484
  "hasDynamicHelp": false,
8578
8485
  "hiddenAliases": [],
8579
- "id": "context:issues:apply",
8486
+ "id": "context:mcp:delete",
8580
8487
  "pluginAlias": "@sanity/cli",
8581
8488
  "pluginName": "@sanity/cli",
8582
8489
  "pluginType": "core",
8583
8490
  "strict": true,
8584
- "summary": "Accept and apply issues",
8585
- "enableJsonFlag": true,
8586
- "telemetry": {
8587
- "redactedFlags": []
8588
- },
8589
8491
  "isESM": true,
8590
8492
  "relativePath": [
8591
8493
  "dist",
8592
8494
  "commands",
8593
8495
  "context",
8594
- "issues",
8595
- "apply.js"
8496
+ "mcp",
8497
+ "delete.js"
8596
8498
  ]
8597
8499
  },
8598
- "context:issues:dismiss": {
8500
+ "context:mcp:get": {
8599
8501
  "aliases": [],
8600
8502
  "args": {
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",
8503
+ "name": {
8504
+ "description": "MCP endpoint name, as in its URL",
8505
+ "name": "name",
8609
8506
  "required": true
8610
8507
  }
8611
8508
  },
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`.",
8509
+ "description": "Get details of a Context MCP endpoint, including its URL",
8613
8510
  "examples": [
8614
8511
  {
8615
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId>",
8616
- "description": "Dismiss an issue"
8512
+ "command": "<%= config.bin %> <%= command.id %> support",
8513
+ "description": "Get details of the \"support\" MCP endpoint"
8617
8514
  },
8618
8515
  {
8619
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId> --json",
8620
- "description": "Dismiss an issue, as JSON"
8516
+ "command": "<%= config.bin %> <%= command.id %> support --organization org-abc123 --json",
8517
+ "description": "Output an MCP endpoint in a specific organization as JSON"
8621
8518
  }
8622
8519
  ],
8623
8520
  "flags": {
@@ -8627,52 +8524,52 @@
8627
8524
  "name": "json",
8628
8525
  "allowNo": false,
8629
8526
  "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"
8630
8536
  }
8631
8537
  },
8632
8538
  "hasDynamicHelp": false,
8633
8539
  "hiddenAliases": [],
8634
- "id": "context:issues:dismiss",
8540
+ "id": "context:mcp:get",
8635
8541
  "pluginAlias": "@sanity/cli",
8636
8542
  "pluginName": "@sanity/cli",
8637
8543
  "pluginType": "core",
8638
8544
  "strict": true,
8639
- "summary": "Dismiss an issue",
8640
8545
  "enableJsonFlag": true,
8641
- "telemetry": {
8642
- "redactedFlags": []
8643
- },
8644
8546
  "isESM": true,
8645
8547
  "relativePath": [
8646
8548
  "dist",
8647
8549
  "commands",
8648
8550
  "context",
8649
- "issues",
8650
- "dismiss.js"
8551
+ "mcp",
8552
+ "get.js"
8651
8553
  ]
8652
8554
  },
8653
- "context:issues:get": {
8555
+ "context:mcp:initial-context": {
8654
8556
  "aliases": [],
8655
8557
  "args": {
8656
- "knowledgeBaseId": {
8657
- "description": "Knowledge base ID",
8658
- "name": "knowledgeBaseId",
8659
- "required": true
8660
- },
8661
- "issueId": {
8662
- "description": "Issue ID",
8663
- "name": "issueId",
8558
+ "mcpEndpoint": {
8559
+ "description": "The MCP endpoint's name, set when the endpoint was created.",
8560
+ "name": "mcpEndpoint",
8664
8561
  "required": true
8665
8562
  }
8666
8563
  },
8667
- "description": "Get details of an issue",
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 `##`.",
8668
8565
  "examples": [
8669
8566
  {
8670
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456",
8671
- "description": "Get details of a specific issue"
8567
+ "command": "<%= config.bin %> <%= command.id %> <mcpEndpoint>",
8568
+ "description": "Get an MCP endpoint's initial context"
8672
8569
  },
8673
8570
  {
8674
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 --json",
8675
- "description": "Output the issue as JSON"
8571
+ "command": "<%= config.bin %> <%= command.id %> <mcpEndpoint> --json",
8572
+ "description": "Get an MCP endpoint's initial context, as JSON"
8676
8573
  }
8677
8574
  ],
8678
8575
  "flags": {
@@ -8682,111 +8579,100 @@
8682
8579
  "name": "json",
8683
8580
  "allowNo": false,
8684
8581
  "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"
8685
8605
  }
8686
8606
  },
8687
8607
  "hasDynamicHelp": false,
8688
8608
  "hiddenAliases": [],
8689
- "id": "context:issues:get",
8609
+ "id": "context:mcp:initial-context",
8690
8610
  "pluginAlias": "@sanity/cli",
8691
8611
  "pluginName": "@sanity/cli",
8692
8612
  "pluginType": "core",
8693
8613
  "strict": true,
8614
+ "summary": "Get an MCP endpoint's initial context",
8694
8615
  "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
+ },
8695
8632
  "isESM": true,
8696
8633
  "relativePath": [
8697
8634
  "dist",
8698
8635
  "commands",
8699
8636
  "context",
8700
- "issues",
8701
- "get.js"
8637
+ "mcp",
8638
+ "initial-context.js"
8702
8639
  ]
8703
8640
  },
8704
- "context:issues:list": {
8641
+ "context:mcp:list": {
8705
8642
  "aliases": [],
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",
8714
- "examples": [
8715
- {
8716
- "command": "<%= config.bin %> <%= command.id %> kb-abc123",
8717
- "description": "List all issues for a knowledge base"
8718
- },
8719
- {
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"
8734
- }
8735
- ],
8736
- "flags": {
8737
- "json": {
8738
- "description": "Format output as json.",
8739
- "helpGroup": "GLOBAL",
8740
- "name": "json",
8741
- "allowNo": false,
8742
- "type": "boolean"
8743
- },
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"
8643
+ "args": {},
8644
+ "description": "List Context MCP endpoints in an organization",
8645
+ "examples": [
8646
+ {
8647
+ "command": "<%= config.bin %> <%= command.id %>",
8648
+ "description": "List MCP endpoints, selecting the organization interactively"
8773
8649
  },
8774
- "status": {
8775
- "description": "Only list issues with this status (rejected = dismissed, accepted = resolved or applied)",
8776
- "name": "status",
8650
+ {
8651
+ "command": "<%= config.bin %> <%= command.id %> --organization org-abc123 --json",
8652
+ "description": "Output the MCP endpoints of a specific organization as JSON"
8653
+ }
8654
+ ],
8655
+ "flags": {
8656
+ "json": {
8657
+ "description": "Format output as json.",
8658
+ "helpGroup": "GLOBAL",
8659
+ "name": "json",
8660
+ "allowNo": false,
8661
+ "type": "boolean"
8662
+ },
8663
+ "organization": {
8664
+ "description": "Organization to list MCP endpoints for (overrides CLI configuration)",
8665
+ "helpGroup": "OVERRIDE",
8666
+ "name": "organization",
8777
8667
  "hasDynamicHelp": false,
8668
+ "helpValue": "<id>",
8778
8669
  "multiple": false,
8779
- "options": [
8780
- "open",
8781
- "accepted",
8782
- "rejected"
8783
- ],
8784
8670
  "type": "option"
8785
8671
  }
8786
8672
  },
8787
8673
  "hasDynamicHelp": false,
8788
8674
  "hiddenAliases": [],
8789
- "id": "context:issues:list",
8675
+ "id": "context:mcp:list",
8790
8676
  "pluginAlias": "@sanity/cli",
8791
8677
  "pluginName": "@sanity/cli",
8792
8678
  "pluginType": "core",
@@ -8797,33 +8683,24 @@
8797
8683
  "dist",
8798
8684
  "commands",
8799
8685
  "context",
8800
- "issues",
8686
+ "mcp",
8801
8687
  "list.js"
8802
8688
  ]
8803
8689
  },
8804
- "context:issues:reopen": {
8690
+ "context:mcp:status": {
8805
8691
  "aliases": [],
8806
8692
  "args": {
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",
8693
+ "name": {
8694
+ "description": "MCP endpoint name, as in its URL",
8695
+ "name": "name",
8815
8696
  "required": true
8816
8697
  }
8817
8698
  },
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`.",
8699
+ "description": "Check whether an agent connecting with your credentials can use a Context MCP endpoint",
8819
8700
  "examples": [
8820
8701
  {
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"
8702
+ "command": "<%= config.bin %> <%= command.id %> support",
8703
+ "description": "Check the \"support\" MCP endpoint"
8827
8704
  }
8828
8705
  ],
8829
8706
  "flags": {
@@ -8833,71 +8710,176 @@
8833
8710
  "name": "json",
8834
8711
  "allowNo": false,
8835
8712
  "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"
8836
8722
  }
8837
8723
  },
8838
8724
  "hasDynamicHelp": false,
8839
8725
  "hiddenAliases": [],
8840
- "id": "context:issues:reopen",
8726
+ "id": "context:mcp:status",
8841
8727
  "pluginAlias": "@sanity/cli",
8842
8728
  "pluginName": "@sanity/cli",
8843
8729
  "pluginType": "core",
8844
8730
  "strict": true,
8845
- "summary": "Reopen an accepted conflict",
8846
8731
  "enableJsonFlag": true,
8847
- "telemetry": {
8848
- "redactedFlags": []
8849
- },
8850
8732
  "isESM": true,
8851
8733
  "relativePath": [
8852
8734
  "dist",
8853
8735
  "commands",
8854
8736
  "context",
8855
- "issues",
8856
- "reopen.js"
8737
+ "mcp",
8738
+ "status.js"
8857
8739
  ]
8858
8740
  },
8859
- "context:issues:resolve": {
8741
+ "context:mcp:update": {
8860
8742
  "aliases": [],
8861
8743
  "args": {
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",
8744
+ "name": {
8745
+ "description": "MCP endpoint name, as in its URL",
8746
+ "name": "name",
8870
8747
  "required": true
8871
8748
  }
8872
8749
  },
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`.",
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.",
8874
8751
  "examples": [
8875
8752
  {
8876
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue-def456",
8877
- "description": "Choose the correct side interactively"
8753
+ "command": "<%= config.bin %> <%= command.id %> support --title \"Customer support\"",
8754
+ "description": "Rename an MCP endpoint"
8878
8755
  },
8879
8756
  {
8880
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue-def456 --side 1 --watch",
8881
- "description": "Choose side 1 and wait for the entry rewrite"
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"
8767
+ },
8768
+ {
8769
+ "command": "<%= config.bin %> <%= command.id %> support --instructions \"\"",
8770
+ "description": "Remove the instructions"
8882
8771
  }
8883
8772
  ],
8884
8773
  "flags": {
8885
- "json": {
8886
- "description": "Format output as json.",
8887
- "helpGroup": "GLOBAL",
8888
- "name": "json",
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",
8889
8844
  "allowNo": false,
8890
8845
  "type": "boolean"
8891
8846
  },
8892
- "watch": {
8893
- "description": "Wait for the job to finish, exiting non-zero if it fails",
8894
- "name": "watch",
8895
- "allowNo": false,
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,
8896
8871
  "type": "boolean"
8897
8872
  },
8898
- "side": {
8899
- "description": "Index of the correct side, as listed by `sanity context issues get`",
8900
- "name": "side",
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",
8901
8883
  "hasDynamicHelp": false,
8902
8884
  "multiple": false,
8903
8885
  "type": "option"
@@ -8905,22 +8887,40 @@
8905
8887
  },
8906
8888
  "hasDynamicHelp": false,
8907
8889
  "hiddenAliases": [],
8908
- "id": "context:issues:resolve",
8890
+ "id": "context:mcp:update",
8909
8891
  "pluginAlias": "@sanity/cli",
8910
8892
  "pluginName": "@sanity/cli",
8911
8893
  "pluginType": "core",
8912
- "summary": "Resolve a conflict issue",
8913
- "enableJsonFlag": true,
8894
+ "strict": true,
8914
8895
  "telemetry": {
8915
- "redactedFlags": []
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
+ ]
8916
8916
  },
8917
8917
  "isESM": true,
8918
8918
  "relativePath": [
8919
8919
  "dist",
8920
8920
  "commands",
8921
8921
  "context",
8922
- "issues",
8923
- "resolve.js"
8922
+ "mcp",
8923
+ "update.js"
8924
8924
  ]
8925
8925
  },
8926
8926
  "context:sources:create": {
@@ -10462,5 +10462,5 @@
10462
10462
  ]
10463
10463
  }
10464
10464
  },
10465
- "version": "8.38.1"
10465
+ "version": "8.39.0"
10466
10466
  }