Skip to content

studio: canoP studio and Claude Code with VS Code Remote-SSH - #13

Merged
ptrembli merged 1 commit into
mainfrom
feature/studio-remote-ssh
Dec 1, 2026
Merged

ptrembli merged 1 commit into
mainfrom
feature/studio-remote-ssh

Conversation

@ptrembli

@ptrembli ptrembli commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Why

Some computing centres (Adastra at CINES) allow VS Code Remote-SSH but not code-server. canoP studio
already worked there through the canoP icon: without code-server, the VS Code extension asks VS Code
to forward the port of the studio. But nothing documented this setup, and open_studio of the MCP
bridge answered with a code-server address or an ssh -L tunnel.

Changes

  • docs/user-guide/studio.md and tools/trame/README.md: a section In VS Code with Remote-SSH:
    a fixed login node, canop-studio --setup and --install-vscode from a terminal of the window,
    the canoP icon and the Ports panel (the local port may differ from the port of the node: keep the
    path and the key of the address), Claude Code in the window (it runs on the node and finds the
    studio through .mcp.json), and the web proxy of the Claude API.
  • canop_launch.vscode_remote(): true when the program of an ancestor of the process is in
    ~/.vscode-server/ (or that of a fork of VS Code); the arguments are not read.
  • canop_mcp_bridge.py: in a Remote-SSH window, open_studio points to the canoP icon or the Ports
    panel instead of an ssh tunnel; the server instructions and the description of open_studio say
    which address fits which setup.
  • CHANGELOG.

Tests

  • Detection, with a simulated server: false under code-server and when the path is only in the
    arguments of an ancestor; true under a program of ~/.vscode-server/, also two levels below it.
  • On Adastra, with main: the studio opens through the port forwarding of VS Code Remote-SSH (local
    port 62863). Not tested yet: the new message of the bridge in a real Remote-SSH window, and Claude
    Code on Adastra.
  • pylint, typos, check_i18n.py.

The bridge is restarted by Claude Code (/mcp): the studio itself needs no restart.

🤖 Generated with Claude Code

Where code-server is not allowed but VS Code Remote-SSH is (Adastra at
CINES, for example), the studio works through the canoP icon: without
code-server the VS Code extension asks VS Code to forward the port of the
studio (asExternalUri). What was missing:

- the user guide (and tools/trame/README.md) describes this setup: a fixed
  login node, canop-studio --setup and --install-vscode from a terminal of
  the window, the canoP icon and the Ports panel, Claude Code in the window
  (it runs on the node and finds the studio through .mcp.json), and the web
  proxy of the Claude API (HTTPS_PROXY in ~/.claude/settings.json);
- open_studio of the MCP bridge gave the code-server address or an ssh -L
  tunnel. canop_launch.vscode_remote() recognises a Remote-SSH window: the
  program of an ancestor of the process is in ~/.vscode-server/ (or that of
  a fork of VS Code; the arguments are not read). The bridge then gives the
  canoP icon or the Ports panel of VS Code, which forwards the port of the
  studio to a local port that may differ (62863 in a test on Adastra); the server
  instructions and the description of open_studio say which address fits
  which setup.

Tested: the detection is false under code-server and when the path is only
in the arguments of an ancestor, true under a program of ~/.vscode-server/
and two levels below it. The bridge is restarted by Claude Code (/mcp): the
studio itself does not need a restart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ptrembli
ptrembli merged commit 4fe5db9 into main Dec 1, 2026
2 checks passed
@ptrembli
ptrembli deleted the feature/studio-remote-ssh branch December 1, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant