Skip to content

Commit 1fe16bd

Browse files
committed
Rename extension from vsc-et to calva-mcp-server
1 parent 92565fb commit 1fe16bd

18 files changed

Lines changed: 57 additions & 128 deletions

File tree

.vscode/launch.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"args": [
1414
"--extensionDevelopmentPath=${workspaceRoot}",
1515
"--enable-proposed-api",
16-
"betterthantomorrow.vsc-et",
16+
"betterthantomorrow.calva-mcp-server",
1717
],
1818
"sourceMaps": true,
1919
"outFiles": [
@@ -28,7 +28,7 @@
2828
"args": [
2929
"--extensionDevelopmentPath=${workspaceRoot}",
3030
"--enable-proposed-api",
31-
"betterthantomorrow.vsc-et",
31+
"betterthantomorrow.calva-mcp-server",
3232
"${workspaceFolder}/e2e-test-ws/",
3333
],
3434
"sourceMaps": true,
@@ -45,7 +45,7 @@
4545
"--extensionDevelopmentPath=${workspaceRoot}",
4646
"--folder-uri=null",
4747
"--enable-proposed-api",
48-
"betterthantomorrow.vsc-et",
48+
"betterthantomorrow.calva-mcp-server",
4949
],
5050
"sourceMaps": true,
5151
"outFiles": [
@@ -61,7 +61,7 @@
6161
"--extensionDevelopmentPath=${workspaceRoot}",
6262
"--disable-extensions",
6363
"--enable-proposed-api",
64-
"betterthantomorrow.vsc-et",
64+
"betterthantomorrow.calva-mcp-server",
6565
],
6666
"sourceMaps": true,
6767
"env": {},

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Change Log
22

3-
Changes to Extension Template
3+
Changes to Calva MCP Server
44

55
## [Unreleased]
66

77
- Initial Release
8-
- [Some cool thing that was lacking on the marketplace](https://github.com/PEZ/vsc-et/issues/1)
8+
- [Some cool thing that was lacking on the marketplace](https://github.com/BetterThanTomorrow/calva-mcp-server/issues/1)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# VSC-ET
1+
# Calva MCP Server
22

3-
A VS Code Extension Template. Or an automated [VS Code](https://code.visualstudio.com) **extension development** workflow, with support for [coding](#coding), [building](#building), [testing](#testing), [end-to-end testing](#end-to-end-testing), and [publishing the extension](#publishing-the-extension) to the [VS Code Marketplace](https://marketplace.visualstudio.com/vscode) and the [Open VSX Registry](https://open-vsx.org/).
3+
A Model Context Protocol server extension for Calva, the Clojure/ClojureScript extension for VS Code. Built on the VS Code Extension Template with support for [coding](#coding), [building](#building), [testing](#testing), [end-to-end testing](#end-to-end-testing), and [publishing the extension](#publishing-the-extension) to the [VS Code Marketplace](https://marketplace.visualstudio.com/vscode) and the [Open VSX Registry](https://open-vsx.org/).
44

55
![alt text](assets/vsc-et-published.png)
66
The workflow is powered by [Interactive Programming](https://en.wikipedia.org/wiki/Interactive_programming). You can use the extension while you are hacking on it, without reloading the extension host. The feedback is instantaneous. As it should be to keep coding productive and maximum fun.
@@ -56,7 +56,7 @@ The paved path is:
5656
* Hint: _The ClojureScript app is your extension_.
5757
1. <kbd>F5</kbd>. This starts the VS Code _Development Extension Host_ (because configured to do so in [.vscode/launch.json](.vscode/launch.json))
5858
* The development extension host is a VS Code window where your extension under development is installed. You now need to activate it to actually start the ClojureScript app.
59-
1. In the extension development host <kbd>cmd/ctrl+shift+p</kbd>, find and run the command **Extension template: Say hello!**
59+
1. In the extension development host <kbd>cmd/ctrl+shift+p</kbd>, find and run the command **Calva MCP Server: Say hello!**
6060
![VS Code Command Palette, ET hHello command](assets/usage/say-hello.png)
6161
* This activates your extension and starts the ClojureScript app and its REPL
6262
1. Back in the development project you will see the progress dialog go away. Because now the development project window is connected to the Development Extension Host window's REPL.

e2e-test-ws/.joyride/src/tests/hello_doc_test.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
(deftest-async new-hello-doc
88
(testing "Context of the test assertions"
99
(p/let [hello-text "Multiverse"
10-
editor (vscode/commands.executeCommand "vsc-et.newHelloDocument" hello-text)
10+
editor (vscode/commands.executeCommand "calva-mcp-server.newHelloDocument" hello-text)
1111
doc (.-document editor)
1212
doc-text (.getText doc)
1313
_ (vscode/commands.executeCommand "workbench.action.revertAndCloseActiveEditor" false)]

e2e-test-ws/.joyride/src/tests/smoke_test.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111

1212
(deftest-async extension-activation
1313
(testing "The extension activates (which is an async operation)"
14-
(p/let [extension (vscode/extensions.getExtension "betterthantomorrow.vsc-et")
14+
(p/let [extension (vscode/extensions.getExtension "betterthantomorrow.calva-mcp-server")
1515
api (.activate extension)]
1616
(is (not= nil (.-v1 api))))))

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.

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "vsc-et",
3-
"displayName": "Extension Template",
4-
"description": "Helping users who want to get Y done, by provding X.",
2+
"name": "calva-mcp-server",
3+
"displayName": "Calva MCP Server",
4+
"description": "Model Context Protocol server extension for Calva",
55
"version": "0.0.1",
66
"publisher": "betterthantomorrow",
77
"author": {
@@ -11,7 +11,7 @@
1111
"icon": "assets/extension-icon-128x128.png",
1212
"repository": {
1313
"type": "git",
14-
"url": "https://github.com/PEZ/vsc-et.git"
14+
"url": "https://github.com/BetterThanTomorrow/calva-mcp-server.git"
1515
},
1616
"engines": {
1717
"vscode": ">=1.75.0",
@@ -20,32 +20,32 @@
2020
"enabledApiProposals": [
2121
"extensionRuntime"
2222
],
23-
"categories": [],
24-
"keywords": [],
23+
"categories": ["Programming Languages", "Formatters", "Linters", "Other"],
24+
"keywords": ["clojure", "clojurescript", "mcp", "model-context-protocol", "ai"],
2525
"activationEvents": [],
2626
"main": "out/extension.js",
2727
"contributes": {
2828
"commands": [
2929
{
30-
"command": "vsc-et.hello",
31-
"category": "Extension Template",
30+
"command": "calva-mcp-server.hello",
31+
"category": "Calva MCP Server",
3232
"title": "Say Hello!"
3333
},
3434
{
35-
"command": "vsc-et.newHelloDocument",
36-
"category": "Extension Template",
37-
"enablement": ":vsc-et/active?",
35+
"command": "calva-mcp-server.newHelloDocument",
36+
"category": "Calva MCP Server",
37+
"enablement": ":calva-mcp-server/active?",
3838
"title": "Open a new Hello document"
3939
}
4040
],
4141
"keybindings": [
4242
{
43-
"command": "vsc-et.hello",
43+
"command": "calva-mcp-server.hello",
4444
"key": "ctrl+alt+h h"
4545
},
4646
{
47-
"command": "vsc-et.newHelloDocument",
48-
"when": ":vsc-et/active?",
47+
"command": "calva-mcp-server.newHelloDocument",
48+
"when": ":calva-mcp-server/active?",
4949
"key": "ctrl+alt+h d"
5050
}
5151
]

scripts/publish.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
(tag version dry-run?)
5858
(push dry-run?)
5959
(println "Open to follow the progress of the release:")
60-
(println " https://github.com/PEZ/vsc-et/actions"))
60+
(println " https://github.com/BetterThanTomorrow/calva-mcp-server/actions"))
6161

6262
(defn publish! [dry-run?]
6363
(let [unreleased-changelog-text (get-changelog-text-for-version "Unreleased")

shadow-cljs.edn

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
:compiler-options {:infer-externs :auto}
88
:output-dir "out/js"
99
:output-to "out/extension.js"
10-
:exports {:activate vsc-et.extension/activate
11-
:deactivate vsc-et.extension/deactivate}
12-
:devtools {:build-notify vsc-et.extension/build-notify!}}
10+
:exports {:activate calva-mcp-server.extension/activate
11+
:deactivate calva-mcp-server.extension/deactivate}
12+
:devtools {:build-notify calva-mcp-server.extension/build-notify!}}
1313
:test-watch
1414
{:target :node-test
1515
:output-to "out/extension-tests.js"
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
(ns vsc-et.extension
2-
(:require [vsc-et.hellos :as hellos]
3-
[vsc-et.extension.db :as db]
4-
[vsc-et.extension.life-cycle-helpers :as lc-helpers]
5-
[vsc-et.extension.when-contexts :as when-contexts]))
1+
(ns calva-mcp-server.extension
2+
(:require [calva-mcp-server.hellos :as hellos]
3+
[calva-mcp-server.extension.db :as db]
4+
[calva-mcp-server.extension.life-cycle-helpers :as lc-helpers]
5+
[calva-mcp-server.extension.when-contexts :as when-contexts]))
66

77
;;;;; Extension activation entry point
88

99
(defn ^:export activate [context]
1010
(js/console.time "activation")
11-
(js/console.timeLog "activation" "Extension Template activate START")
11+
(js/console.timeLog "activation" "Calva MCP Server activate START")
1212

1313
(when context
1414
(swap! db/!app-db assoc :extension/context context))
15-
(lc-helpers/register-command! db/!app-db "vsc-et.hello" #'hellos/hello-command!+)
16-
(lc-helpers/register-command! db/!app-db "vsc-et.newHelloDocument" #'hellos/new-hello-doc-command!+)
17-
(when-contexts/set-context!+ db/!app-db :vsc-et/active? true)
15+
(lc-helpers/register-command! db/!app-db "calva-mcp-server.hello" #'hellos/hello-command!+)
16+
(lc-helpers/register-command! db/!app-db "calva-mcp-server.newHelloDocument" #'hellos/new-hello-doc-command!+)
17+
(when-contexts/set-context!+ db/!app-db :calva-mcp-server/active? true)
1818

19-
(js/console.timeLog "activation" "Extension Template activate END")
19+
(js/console.timeLog "activation" "Calva MCP Server activate END")
2020
(js/console.timeEnd "activation")
2121
#js {:v1 {}})
2222

@@ -42,4 +42,4 @@
4242

4343
#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
4444
(defn ^{:dev/after-load true} after-load []
45-
(println "shadow-cljs reload complete"))
45+
(println "shadow-cljs reload complete"))

0 commit comments

Comments
 (0)