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

Aberta
#319 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
25/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
postgresql, typescript, vscode

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Sem dados de linguagem
Estrelas
406
Forks
35
Merge médio
2h 47min
PRs com merge (30d)
5

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de microsoft/vscode-pgsql

Todas as issues de microsoft/vscode-pgsql

Issues semelhantes

Mais issues de DevTools

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.