mcpServerRequestHandler.ts ×12

Frontier kind: Code frontier

unlabeled · c_17ad968f6795

3 tests · 33530 LOC · 160 files · introduces 0 tests · 15 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
12 ranges15 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
3501 ranges33530 lines · 160 files · Browse complete extent
All tests (intent)
3 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 15 introduced LOC across 12 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/workbench/contrib/mcp/common/mcpServerRequestHandler.ts 15 introduced LOC · 12 ranges

Open complete file

356 */
357 private handleServerNotification(request: MCP.JSONRPCNotification & MCP.ServerNotification): void {
359 > switch (request.method) {
360 > case 'notifications/message':
361 return this.handleLoggingNotification(request);
362 > case 'notifications/cancelled': mcpServerRequestHandler.ts
363 this._onDidReceiveCancelledNotification.fire(request);
364 return this.handleCancelledNotification(request);
365 > case 'notifications/progress': mcpServerRequestHandler.ts
366 this._onDidReceiveProgressNotification.fire(request);
367 return;
368 > case 'notifications/resources/list_changed': mcpServerRequestHandler.ts
369 this._onDidChangeResourceList.fire();
370 return;
371 > case 'notifications/resources/updated': mcpServerRequestHandler.ts
372 this._onDidUpdateResource.fire(request);
373 return;
374 > case 'notifications/tools/list_changed': mcpServerRequestHandler.ts
375 this._onDidChangeToolList.fire();
376 return;
377 > case 'notifications/prompts/list_changed': mcpServerRequestHandler.ts
378 this._onDidChangePromptList.fire();
379 return;
380 > case 'notifications/elicitation/complete': mcpServerRequestHandler.ts
381 this._onDidReceiveElicitationCompleteNotification.fire(request);
382 return;
383 > case 'notifications/tasks/status': mcpServerRequestHandler.ts
384 this._taskManager.getClientTask(request.params.taskId)?.onDidUpdateState(request.params);
385 return;
387 softAssertNever(request);
389 > } catch (error) {
390 this.logger.error(`Error handling notification ${request.method}:`, error);
391 }
393
394 private handleCancelledNotification(request: MCP.CancelledNotification): void {