MCP does not work with remote-ssh and extension installed in host side

Aperta
#319 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
postgresql, typescript, vscode

Direzione di ricerca

The problem sits where VS Code's remote.extensionKind setting decides which side runs the extension, and where the extension exposes its MCP tools to Copilot. Start from the extension's activation and MCP registration code, then reproduce with the extension forced to ui in a remote-ssh session. Done when the MCP tool appears in the available tools list while the extension runs on the host.

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

Descrizione

Failing to use MCP tool

I have installed the extension in both my host machine and in the remote-ssh VM I am using it, but because of glibc version incompatibility I added to my User Settings the following:

  "remote.extensionKind": {
    "ms-ossdata.vscode-pgsql": [
      "ui"
    ]
  },

That made the trick and I can use the extension in remote-ssh side, though when trying invoking the MCP tool
it doesn't seem available with the latest copilot harness, at a previous version of copilot after switching to local mode I could invoke it successfully.

This is what I see in the available tools:

Image

To Reproduce

Steps to reproduce the behavior:

  1. Install the extension
  2. Configure it to work in vs-code host side
  3. Try using MCP tool

Expected behavior

MCP tool should be available even when extension is running on host

VS Code version

Version: 1.144.1 (system setup)
Commit: 261c84cb1eddf11235f9e2c921425e9663fbe556
Date: 2026-11-01T07:37:53-08:00
Electron: 43.8.3
ElectronBuildId: 15784459
Chromium: 150.0.7871.250
Node.js: 24.22.1
V8: 15.0.245.31-electron.0
@github/copilot: 1.0.103.r40031404408.gba6c003
@github/copilot-sdk: 1.0.27.40031404408.gba6c003
OS: Windows_NT x64 10.0.26200

** PostgreSQL Version **
v1.32.1

Lingua principale
Nessun dato sulla lingua
Stelle
406
Fork
35
Merge medio
2h 47m
PR unite (30g)
5

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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/vscode-pgsql

Tutte le issue di microsoft/vscode-pgsql

Issue simili

Altre issue su DevTools

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.