Skip to content

Could not use Proposed API mcpServerDefinitions in extension #298643

@Alive-Fish

Description

@Alive-Fish

Does this issue occur when all extensions are disabled?: Yes/No

Type: Bug

  • Use vsce package to pack a VSIX which uses vscode.lm.startMcpGateway.
  • Install the above VSIX under a machine and start with code-insiders . --enable-proposed-api=TeamsDevApp.ms-teams-vscode-extension. Followed instructions.
  • When use the command which calls vscode.lm.startMcpGateway, it will show the error as below.

Error starting MCP Gateway: Error: Extension 'TeamsDevApp.ms-teams-vscode-extension' CANNOT use API proposal: mcpServerDefinitions. Its package.json#enabledApiProposals-property declares: chatParticipantAdditions, languageModelSystem but NOT mcpServerDefinitions. The missing proposal MUST be added and you must start in extension development mode or use the following command line switch: --enable-proposed-api TeamsDevApp.ms-teams-vscode-extension

Some details:

  • Extension has added mcpServerDefinitions under package.json
  • Extension change code is here
  • Local debugging the extension can normally use vscode.lm.startMcpGateway.

Extension version: 6.4.3
VS Code version: Code - Insiders 1.110.0-insider (f5927e7, 2026-02-28T04:37:38.428Z)
OS version: Windows_NT x64 10.0.26100
Modes:

System Info
Item Value
CPUs Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz (16 x 2793)
GPU Status 2d_canvas: unavailable_software
GPU0: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VENDOR=Google, DRIVER_VERSION=10.0.26100.7309
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.7309
GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.7309
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: disabled_software
video_encode: disabled_software
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software
webnn: unavailable_software
Load (avg) undefined
Memory (System) 63.95GB (48.44GB free)
Process Argv . --enable-proposed-api TeamsDevApp.ms-teams-vscode-extension --crash-reporter-id 78b6575b-2b6e-4744-b445-ae8f018a8fb4
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
pythonvspyt551:31249597
nativeloc1:31118317
dwcopilot:31158714
dwoutputs:31242946
copilot_t_ci:31333650
g012b348:31231168
pythonrdcb7:31268811
pythonpcpt1:31399616
6518g693:31302842
6abeh943:31336334
envsactivate1:31349248
editstats-enabled:31346256
cloudbuttont:31366566
3efgi100_wstrepl:31403338
use-responses-api:31390341
je187915:31401257
metis_rerank_treatment1:31411021
cp_cls_c_966_ss:31454199
chatvisible:31417128
inlinechat_v2_hd992725:31445440
4je02754:31455664
ge8j1254_inline_auto_hint_haiku:31426887
a5gib710:31434435
8g5ec713_opus_4_6:31464538
7ig2g208:31429686
cp_cls_c_1081:31454833
copilot-nes-oct-trt:31432609
ia-use-proxy-models-svc:31446143
a43f0574:31442823
e9c30283:31453065
g_63ac8346:31457746
9c05b404_max_request_50:31468594
idci7584:31454084
edit_mode_hidden:31453871
nes-ftch-new:31458522
nes_chat_context_disabled:31451402
showstats:31452402
e3e4d672:31454087
864ei723_large_tool_results_to_disk:31455802
showingstats:31457201
ei9d7968:31462942
55364912:31455227
hg17d649:31455236
nes-extended-on:31455475
agentwelcome:31461166
nes-sp-on:31468470
jc933416:31462667
2ab5e849:31461281
67jbj424:31464192
hhf17803:31462392
nes-rcnt-prop:31468467
bg_compact_t:31466296
t-some:31466503
i2gc6536:31469069

Metadata

Metadata

Assignees

Labels

unreleasedPatch has not yet been released in VS Code Insiders

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions