Repository navigation
studio: canoP studio and Claude Code with VS Code Remote-SSH - #13
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_studioof the MCPbridge answered with a code-server address or an
ssh -Ltunnel.Changes
docs/user-guide/studio.mdandtools/trame/README.md: a section In VS Code with Remote-SSH:a fixed login node,
canop-studio --setupand--install-vscodefrom 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_studiopoints to the canoP icon or the Portspanel instead of an ssh tunnel; the server instructions and the description of
open_studiosaywhich address fits which setup.
Tests
arguments of an ancestor; true under a program of
~/.vscode-server/, also two levels below it.main: the studio opens through the port forwarding of VS Code Remote-SSH (localport 62863). Not tested yet: the new message of the bridge in a real Remote-SSH window, and Claude
Code on Adastra.
check_i18n.py.The bridge is restarted by Claude Code (
/mcp): the studio itself needs no restart.🤖 Generated with Claude Code