context-vault 2.4.0 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,36 +0,0 @@
1
- -- Context MCP UI Launcher
2
- -- Starts the server if not running, then opens the dashboard
3
-
4
- on run
5
- -- Dynamic node path
6
- set nodePath to do shell script "which node"
7
-
8
- -- Dynamic serve.js path (relative to this script's bundle)
9
- set scriptDir to do shell script "dirname " & quoted form of (POSIX path of (path to me))
10
- set serverScript to scriptDir & "/serve.js"
11
- set serverPort to "3141"
12
- set serverURL to "http://localhost:" & serverPort
13
-
14
- -- Check if server is already running on port
15
- set isRunning to false
16
- try
17
- do shell script "lsof -ti:" & serverPort
18
- set isRunning to true
19
- end try
20
-
21
- -- Start server via nohup so it survives after this app exits
22
- if not isRunning then
23
- do shell script "nohup " & quoted form of nodePath & " " & quoted form of serverScript & " > /tmp/context-mcp.log 2>&1 &"
24
- -- Wait for server to be ready
25
- repeat 10 times
26
- delay 0.5
27
- try
28
- do shell script "curl -s -o /dev/null -w '%{http_code}' " & serverURL & "/api/discover"
29
- exit repeat
30
- end try
31
- end repeat
32
- end if
33
-
34
- -- Open in default browser
35
- open location serverURL
36
- end run