taskwindow 0.1.2 → 0.1.3
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 +17 -1
- package/package.json +1 -1
- package/src/agents.js +4 -2
package/README.md
CHANGED
|
@@ -58,10 +58,26 @@ Or just keep `npx taskwindow` running in a terminal — both work.
|
|
|
58
58
|
### 4. Connect your coding agent (one agent at a time, only when you ask)
|
|
59
59
|
|
|
60
60
|
```bash
|
|
61
|
-
taskwindow install --claude # Claude Code
|
|
61
|
+
taskwindow install --claude # Claude Code (user scope: every repo)
|
|
62
62
|
taskwindow install --cursor # Cursor
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
+
**OpenCode** — add to `opencode.json`:
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
{
|
|
69
|
+
"$schema": "https://opencode.ai/config.json",
|
|
70
|
+
"mcp": {
|
|
71
|
+
"taskwindow": {
|
|
72
|
+
"type": "remote",
|
|
73
|
+
"url": "http://127.0.0.1:9377/mcp",
|
|
74
|
+
"enabled": true,
|
|
75
|
+
"headers": { "Authorization": "Bearer <token from ~/.taskwindow/token>" }
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
65
81
|
Nothing is registered for agents you don't name. For anything else, the
|
|
66
82
|
config is an HTTP MCP server at `http://127.0.0.1:9377/mcp` with header
|
|
67
83
|
`Authorization: Bearer <token>` (the token is in `~/.taskwindow/token`).
|
package/package.json
CHANGED
package/src/agents.js
CHANGED
|
@@ -17,14 +17,16 @@ export function registerClaude({ port, token }) {
|
|
|
17
17
|
execFileSync(
|
|
18
18
|
"claude",
|
|
19
19
|
[
|
|
20
|
-
"mcp", "add",
|
|
20
|
+
"mcp", "add",
|
|
21
21
|
"--transport", "http",
|
|
22
|
+
"--scope", "user",
|
|
23
|
+
"taskwindow",
|
|
22
24
|
`http://127.0.0.1:${port}/mcp`,
|
|
23
25
|
"--header", `Authorization: Bearer ${token}`,
|
|
24
26
|
],
|
|
25
27
|
{ stdio: "inherit" }
|
|
26
28
|
);
|
|
27
|
-
console.log("[taskwindow] registered in Claude Code
|
|
29
|
+
console.log("[taskwindow] registered in Claude Code (user scope: available in every repo)");
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
export function registerCursor({ port, token }) {
|