Skip to content

Commit 37c24e3

Browse files
committed
feat(vscode): improve launcher clarity, range-aware source reveal, and marketplace readiness
- make unsupported CodeClone runtime errors explain which launcher the extension resolved and whether it came from the workspace, explicit settings, PATH, or repo-local uv fallback - document that auto launcher resolution prefers the current workspace virtualenv before falling back to PATH - fix source reveal for clone review by hydrating canonical finding detail when summary locations are range-truncated, so block and segment findings reveal the full span instead of only the first line - bump the preview VS Code extension to 0.2.1, refresh packaged metadata, and add the live Marketplace listing across the repo and extension docs
1 parent 14c8cd3 commit 37c24e3

File tree

15 files changed

+241
-42
lines changed

15 files changed

+241
-42
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Optional read-only MCP server for AI agents and IDE clients.
164164
21 tools + 10 resources — never mutates source, baselines, or repo state.
165165
166166
```bash
167-
uv tool install "codeclone[mcp]" # or: uv pip install "codeclone[mcp]"
167+
uv tool install --pre "codeclone[mcp]" # or: uv pip install --pre "codeclone[mcp]"
168168

169169
codeclone-mcp --transport stdio # local (Claude Code, Codex, Copilot, Gemini CLI)
170170
codeclone-mcp --transport streamable-http # remote / HTTP-only clients
@@ -179,7 +179,7 @@ Docs:
179179

180180
| Surface | Location | Purpose |
181181
|---------------------------|------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------|
182-
| **VS Code extension** | [`extensions/vscode-codeclone/`](https://github.com/orenlab/codeclone/tree/main/extensions/vscode-codeclone) | Triage-first structural review in the editor |
182+
| **VS Code extension** | [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=orenlab.codeclone) | Triage-first structural review in the editor |
183183
| **Claude Desktop bundle** | [`extensions/claude-desktop-codeclone/`](https://github.com/orenlab/codeclone/tree/main/extensions/claude-desktop-codeclone) | Local `.mcpb` install with pre-loaded instructions |
184184
| **Codex plugin** | [`plugins/codeclone/`](https://github.com/orenlab/codeclone/tree/main/plugins/codeclone) | Native discovery, two skills, and MCP definition |
185185

docs/book/21-vscode-extension.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Document the current contract and behavior of the VS Code extension shipped in
88
This chapter describes the extension as an interface layer over existing
99
CodeClone contracts. It does not define a second analysis truth model.
1010

11+
Marketplace: [orenlab.codeclone](https://marketplace.visualstudio.com/items?itemName=orenlab.codeclone)
12+
1113
## Position in the platform
1214

1315
The VS Code extension is:
@@ -120,6 +122,9 @@ The extension runs as a workspace extension and requires:
120122
- a local `codeclone-mcp` launcher, or an explicitly configured launcher
121123
- CodeClone `2.0.0b4` or newer
122124

125+
In `auto` mode, launcher resolution prefers the current workspace virtualenv
126+
before `PATH`.
127+
123128
For this reason:
124129

125130
- Restricted Mode support is `limited`

docs/claude-desktop-bundle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ production-first structural review.
1111
## Install
1212

1313
```bash
14-
uv tool install "codeclone[mcp]" # or: uv pip install "codeclone[mcp]"
14+
uv tool install --pre "codeclone[mcp]" # or: uv pip install --pre "codeclone[mcp]"
1515
codeclone-mcp --help # verify
1616
```
1717

docs/codex-plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Repo-local discovery via `.agents/plugins/marketplace.json`.
1616
## Install
1717

1818
```bash
19-
uv tool install "codeclone[mcp]" # or: uv pip install "codeclone[mcp]"
19+
uv tool install --pre "codeclone[mcp]" # or: uv pip install --pre "codeclone[mcp]"
2020
codeclone-mcp --help # verify
2121
```
2222

docs/mcp.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Works with any MCP-capable client regardless of backend model.
1010
## Install
1111

1212
```bash
13-
uv tool install "codeclone[mcp]" # install as a standalone tool
13+
uv tool install --pre "codeclone[mcp]" # install as a standalone tool
1414
# or, inside an existing environment
15-
uv pip install "codeclone[mcp]" # add the MCP extra to that environment
15+
uv pip install --pre "codeclone[mcp]" # add the MCP extra to that environment
1616
```
1717

1818
## Quick client setup
@@ -246,7 +246,10 @@ All clients use the same server — only the registration format differs.
246246
"mcpServers": {
247247
"codeclone": {
248248
"command": "codeclone-mcp",
249-
"args": ["--transport", "stdio"]
249+
"args": [
250+
"--transport",
251+
"stdio"
252+
]
250253
}
251254
}
252255
}
@@ -274,13 +277,13 @@ If `codeclone-mcp` is not on `PATH`, use an absolute path to the launcher.
274277

275278
## Troubleshooting
276279

277-
| Problem | Fix |
278-
|-----------------------------------------------------------|--------------------------------------------------------------------------------|
279-
| `CodeClone MCP support requires the optional 'mcp' extra` | `uv tool install "codeclone[mcp]"` or `uv pip install "codeclone[mcp]"` |
280-
| Client cannot find `codeclone-mcp` | `uv tool install "codeclone[mcp]"` or use an absolute launcher path |
281-
| Client only accepts remote MCP | Use `streamable-http` transport |
282-
| Agent reads stale results | Call `analyze_repository` again; `latest` always points to the most recent run |
283-
| `changed_paths` rejected | Pass a `list[str]` of repo-relative paths, not a comma-separated string |
280+
| Problem | Fix |
281+
|-----------------------------------------------------------|-------------------------------------------------------------------------------------|
282+
| `CodeClone MCP support requires the optional 'mcp' extra` | `uv tool install --pre "codeclone[mcp]"` or `uv pip install --pre "codeclone[mcp]"` |
283+
| Client cannot find `codeclone-mcp` | `uv tool install --pre "codeclone[mcp]"` or use an absolute launcher path |
284+
| Client only accepts remote MCP | Use `streamable-http` transport |
285+
| Agent reads stale results | Call `analyze_repository` again; `latest` always points to the most recent run |
286+
| `changed_paths` rejected | Pass a `list[str]` of repo-relative paths, not a comma-separated string |
284287

285288
## See also
286289

docs/vscode-extension.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ CodeClone ships a preview VS Code extension in
66
It is a native IDE surface over `codeclone-mcp` and is designed for
77
baseline-aware, triage-first structural review inside the editor.
88

9+
Marketplace: [CodeClone for VS Code](https://marketplace.visualstudio.com/items?itemName=orenlab.codeclone)
10+
911
## What it is for
1012

1113
The extension helps you:
@@ -27,16 +29,19 @@ The extension needs a local `codeclone-mcp` launcher.
2729

2830
Minimum supported CodeClone version: `2.0.0b4`.
2931

32+
In `auto` mode, it checks the current workspace virtualenv before falling back
33+
to `PATH`.
34+
3035
Recommended install for the preview extension:
3136

3237
```bash
33-
uv tool install "codeclone[mcp]>=2.0.0b4"
38+
uv tool install --pre "codeclone[mcp]"
3439
```
3540

3641
If you want the launcher inside the current environment instead:
3742

3843
```bash
39-
uv pip install "codeclone[mcp]>=2.0.0b4"
44+
uv pip install --pre "codeclone[mcp]"
4045
```
4146

4247
Verify the launcher:

extensions/claude-desktop-codeclone/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ Read-only, baseline-aware, local stdio only.
99
## Install
1010

1111
```bash
12-
uv tool install "codeclone[mcp]"
13-
codeclone-mcp --help # verify launcher
12+
uv tool install --pre "codeclone[mcp]"
13+
codeclone-mcp --help # verify launcher
1414
```
1515

1616
If you want to keep the launcher inside an existing environment instead, use:
1717

1818
```bash
19-
uv pip install "codeclone[mcp]"
19+
uv pip install --pre "codeclone[mcp]"
2020
```
2121

2222
Build and install the bundle:

extensions/vscode-codeclone/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 0.2.1
4+
5+
- refresh packaged extension metadata for prerelease validation
6+
37
## 0.2.0
48

59
- add a native preview VS Code extension for `codeclone-mcp`

extensions/vscode-codeclone/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
CodeClone for VS Code is a native IDE surface for `codeclone-mcp`.
44

5+
Marketplace: [CodeClone for VS Code](https://marketplace.visualstudio.com/items?itemName=orenlab.codeclone)
6+
57
It brings CodeClone's baseline-aware structural analysis into the editor without
68
creating a second truth model. The extension stays read-only with respect to
79
repository state and uses the same canonical report semantics as the CLI, HTML
@@ -42,16 +44,19 @@ CodeClone for VS Code needs a local `codeclone-mcp` launcher.
4244

4345
Minimum supported CodeClone version: `2.0.0b4`.
4446

47+
In `auto` mode, the extension checks the current workspace virtualenv before
48+
falling back to `PATH`.
49+
4550
Recommended install for the preview extension:
4651

4752
```bash
48-
uv tool install "codeclone[mcp]>=2.0.0b4"
53+
uv tool install --pre "codeclone[mcp]"
4954
```
5055

5156
If you want the launcher inside the current environment instead:
5257

5358
```bash
54-
uv pip install "codeclone[mcp]>=2.0.0b4"
59+
uv pip install --pre "codeclone[mcp]"
5560
```
5661

5762
Verify the launcher:

extensions/vscode-codeclone/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)