@subseam/mcp 0.4.11 → 0.4.12
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 +4 -3
- package/dist/main.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,12 +36,13 @@ S='<the cookie value>'; C=$(openssl rand -hex 16)
|
|
|
36
36
|
mkdir -p ~/.subseam && curl -s -X POST https://subseam.theconstructory.com/tokens \
|
|
37
37
|
-H "cookie: __Host-subseam_session=$S; subseam_csrf=$C" -H "x-csrf-token: $C" \
|
|
38
38
|
-H 'content-type: application/json' -d '{"label":"my-machine"}' \
|
|
39
|
-
| node -e 'process.stdin.on("data",d=>process.stdout.write(
|
|
39
|
+
| node -e 'let b="";process.stdin.on("data",d=>b+=d).on("end",()=>{let t;try{t=JSON.parse(b).token}catch{}if(typeof t==="string")process.stdout.write(t);else{console.error("subseam refused the token request: "+b);process.exit(1)}})' > ~/.subseam/token
|
|
40
40
|
chmod 600 ~/.subseam/token
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
`~/.subseam/token` now holds one line starting `cpt_`. If
|
|
44
|
-
|
|
43
|
+
`~/.subseam/token` now holds one line starting `cpt_`. If the command prints "subseam refused the
|
|
44
|
+
token request" with the server's answer, the session cookie was wrong or expired: sign in again and
|
|
45
|
+
repeat. The server also accepts the token in the
|
|
45
46
|
`SUBSEAM_TOKEN` environment variable instead of the file.
|
|
46
47
|
|
|
47
48
|
## 3. Install
|
package/dist/main.js
CHANGED
|
@@ -48336,7 +48336,7 @@ var workReadTools = createWorkReadToolProviders({ capability: "work" });
|
|
|
48336
48336
|
var bundledProviders = [src_default2, src_default, tension_default, ...defineTools, ...decisionTools, ...captureTools, ...buildTools, secureTool, ...workTools, ...workReadTools];
|
|
48337
48337
|
|
|
48338
48338
|
// package.json
|
|
48339
|
-
var version2 = "0.4.
|
|
48339
|
+
var version2 = "0.4.12";
|
|
48340
48340
|
|
|
48341
48341
|
// src/server.ts
|
|
48342
48342
|
var SERVER_VERSION = version2;
|