@wyattjoh/op-remote 0.3.1 → 0.4.1
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 +24 -11
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -20,6 +20,19 @@ runtime without exposing them in plaintext config files or conversation context.
|
|
|
20
20
|
|
|
21
21
|
## Install
|
|
22
22
|
|
|
23
|
+
### Claude Code Plugin (Recommended)
|
|
24
|
+
|
|
25
|
+
Install via the plugin marketplace:
|
|
26
|
+
|
|
27
|
+
```shell
|
|
28
|
+
/plugin marketplace add wyattjoh/claude-code-marketplace
|
|
29
|
+
/plugin install op-remote@wyattjoh-marketplace
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Then configure the required environment variables in your MCP server settings.
|
|
33
|
+
|
|
34
|
+
### npm (global)
|
|
35
|
+
|
|
23
36
|
```bash
|
|
24
37
|
npm install -g @wyattjoh/op-remote
|
|
25
38
|
```
|
|
@@ -34,12 +47,12 @@ bun install -g @wyattjoh/op-remote
|
|
|
34
47
|
|
|
35
48
|
### Environment variables
|
|
36
49
|
|
|
37
|
-
| Variable
|
|
38
|
-
|
|
|
39
|
-
| `REMOTE_OP_TELEGRAM_BOT_TOKEN`
|
|
40
|
-
| `REMOTE_OP_TELEGRAM_CHAT_ID`
|
|
41
|
-
| `REMOTE_OP_TELEGRAM_APPROVER_IDS` | No
|
|
42
|
-
| `REMOTE_OP_TIMEOUT`
|
|
50
|
+
| Variable | Required | Description |
|
|
51
|
+
| --------------------------------- | -------- | -------------------------------------------------------------------------------- |
|
|
52
|
+
| `REMOTE_OP_TELEGRAM_BOT_TOKEN` | Yes | Telegram bot token for sending approval requests |
|
|
53
|
+
| `REMOTE_OP_TELEGRAM_CHAT_ID` | Yes | Telegram chat ID to send approval messages to |
|
|
54
|
+
| `REMOTE_OP_TELEGRAM_APPROVER_IDS` | No | Comma-separated Telegram user IDs allowed to approve/reject (all users if unset) |
|
|
55
|
+
| `REMOTE_OP_TIMEOUT` | No | Approval timeout in seconds (default: `120`) |
|
|
43
56
|
|
|
44
57
|
The MCP server also needs the actual secrets loaded into its environment (the
|
|
45
58
|
ones referenced by `op://` URIs in your `.env.tpl` files). Use `op run` to
|
|
@@ -136,11 +149,11 @@ op-remote run \
|
|
|
136
149
|
|
|
137
150
|
### MCP tools
|
|
138
151
|
|
|
139
|
-
| Tool
|
|
140
|
-
|
|
|
141
|
-
| `request_token`
|
|
142
|
-
| `resume`
|
|
143
|
-
| `disable_auto_approve` | Turn off auto-approval, requiring Telegram approval for future requests
|
|
152
|
+
| Tool | Description |
|
|
153
|
+
| ---------------------- | ----------------------------------------------------------------------------- |
|
|
154
|
+
| `request_token` | Returns a one-time token and Unix socket path for authenticating with the CLI |
|
|
155
|
+
| `resume` | Request to resume a stopped session (requires Telegram approval) |
|
|
156
|
+
| `disable_auto_approve` | Turn off auto-approval, requiring Telegram approval for future requests |
|
|
144
157
|
|
|
145
158
|
### Telegram approval buttons
|
|
146
159
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wyattjoh/op-remote",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/wyattjoh/op-remote.git"
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"type": "module",
|
|
15
15
|
"scripts": {
|
|
16
16
|
"build": "bun build src/cli.ts --target=node --outdir=dist --format=esm",
|
|
17
|
+
"check": "bun run lint && bun run fmt:check && bun run typecheck && bun run build && bun test",
|
|
17
18
|
"test": "bun test",
|
|
18
19
|
"lint": "oxlint",
|
|
19
20
|
"lint:fix": "oxlint --fix",
|