Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug] MCP registration extensions not loaded on Linux

Aperta
#369 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
java

Direzione di ricerca

Inizia con McpExtensionPointManager e CopilotLanguageClient.onDidChangePolicy(DidChangePolicyParams), quindi riproduci il problema su Ubuntu ed esamina l’Eclipse Error Log alla ricerca dell’avviso del policy watcher. Confronta il comportamento su Linux con Windows o macOS e determina se il callback della policy mancante si trova nel plugin Eclipse o in Copilot Language Server. Il lavoro è completato quando il server MCP contribuito si registra su Linux oppure il problema viene chiaramente inoltrato al progetto upstream appropriato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Environment

  • OS: Ubuntu 24.04.4 LTS
  • Eclipse Version: 2026-03 (4.39)
  • Plugin Version: 0.20.0

Describe the bug
Create an Eclipse plugin with an extension registered for the "com.microsoft.copilot.eclipse.ui.mcpRegistration" extension point. The registered IMcpRegistrationProvider class is loaded and invoked as expected on both Windows and macOS but not on Linux. I've tested in several different environments with Ubuntu and have not been successful.

To Reproduce
Steps to reproduce the behavior:

  1. Start an Eclipse instance with a plugin registering an IMcpRegistrationProvider.
  2. Open the Copilot preferences to confirm no MCP server from the plugin was registered, requesting approval.
  3. Note the following warning in the Eclipse Error Log which looks related (I'll explain more below):
!ENTRY org.eclipse.lsp4e 2 0 2026-07-23 09:49:49.451
!MESSAGE [LS:GitHub Copilot Language Server][Warning]	[default] Policy watcher not available - continuing without policy watching: Unsupported platform

Expected behavior
The MCP server contributed by the plugin should be registered as it is on Windows and macOS.

Additional context

I spent some time investigating this. The class McpExtensionPointManager checks the boolean mcpContributionPointEnabled which defaults to false. The only place where I see it possibly being set to true is from CopilotLanguageClient.onDidChangePolicy(DidChangePolicyParams) which I confirmed is never getting called. This "policy/didChange" call back from the Copilot Language Server is never happening on Linux. I suspect this may be related to the "Policy watcher not available - continuing without policy watching: Unsupported platform" in the Eclipse Error Log since they both sound policy-related.

If this is really a problem with the Copilot Language Server and not the Eclipse plugin then I'd be happy to file this bug report in the appropriate place for that.

I would also appreciate any workaround anyone could share if possible to make this work on Linux, like if I'm just missing some extra system package that's preventing this from working (or something like that).

Lingua principale
Java
Stelle
125
Fork
63
Merge medio
1g 3h
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/copilot-for-eclipse

Tutte le issue di microsoft/copilot-for-eclipse

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.