opencode-studio-server 1.0.1 → 1.0.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.
- package/README.md +38 -0
- package/package.json +1 -1
- package/register-protocol.js +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# OpenCode Studio Server
|
|
2
|
+
|
|
3
|
+
Backend server for [OpenCode Studio](https://github.com/Microck/opencode-studio).
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g opencode-studio-server
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Setup
|
|
12
|
+
|
|
13
|
+
After installing, register the protocol handler to allow the web UI to launch the backend:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
opencode-studio-server --register
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
Start the server manually:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
opencode-studio-server
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The server runs on port **3001** and provides an API for managing your local OpenCode configuration.
|
|
28
|
+
|
|
29
|
+
## Features
|
|
30
|
+
|
|
31
|
+
- **Protocol Handler**: `opencodestudio://` support for one-click actions
|
|
32
|
+
- **Config Management**: Reads/writes `~/.config/opencode/opencode.json`
|
|
33
|
+
- **MCP Management**: Add/remove/toggle MCP servers
|
|
34
|
+
- **Auth**: Manage authentication profiles
|
|
35
|
+
|
|
36
|
+
## License
|
|
37
|
+
|
|
38
|
+
MIT
|
package/package.json
CHANGED
package/register-protocol.js
CHANGED
|
@@ -16,7 +16,7 @@ args = ""
|
|
|
16
16
|
If WScript.Arguments.Count > 0 Then
|
|
17
17
|
args = " """ & WScript.Arguments(0) & """"
|
|
18
18
|
End If
|
|
19
|
-
WshShell.Run """${nodePath
|
|
19
|
+
WshShell.Run """${nodePath}""" & " ""${scriptPath}"" " & args, 0, False
|
|
20
20
|
`;
|
|
21
21
|
|
|
22
22
|
try {
|