@seekrit/mcp 0.2.0 → 0.3.0
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 +28 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -43,6 +43,34 @@ Or drop a `.mcp.json` in your project — the whole setup is this snippet:
|
|
|
43
43
|
|
|
44
44
|
Requires Node ≥ 20. Set `SEEKRIT_API_URL` too if you're not on the hosted API.
|
|
45
45
|
|
|
46
|
+
## As a container
|
|
47
|
+
|
|
48
|
+
For a sandbox with no Node toolchain, the same server ships as a multi-arch
|
|
49
|
+
Docker image, [`seekritdev/mcp`](https://hub.docker.com/r/seekritdev/mcp).
|
|
50
|
+
Register a stdio server that runs `docker run -i` — the `-i` is required, since
|
|
51
|
+
stdin is the MCP transport:
|
|
52
|
+
|
|
53
|
+
```json
|
|
54
|
+
{
|
|
55
|
+
"mcpServers": {
|
|
56
|
+
"seekrit": {
|
|
57
|
+
"command": "docker",
|
|
58
|
+
"args": [
|
|
59
|
+
"run", "-i", "--rm",
|
|
60
|
+
"-e", "SEEKRIT_TOKEN",
|
|
61
|
+
"-v", "${PWD}:/work",
|
|
62
|
+
"seekritdev/mcp"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
The bare `-e SEEKRIT_TOKEN` forwards the token from the client's environment.
|
|
70
|
+
Mount a workdir at `/work` for the `run_command` tool to operate on (it runs
|
|
71
|
+
*inside* the container). Pin a release (`seekritdev/mcp:0.2.0`) or track `:edge`.
|
|
72
|
+
The container still decrypts locally — nothing plaintext leaves it.
|
|
73
|
+
|
|
46
74
|
## Choosing the credential
|
|
47
75
|
|
|
48
76
|
The server authenticates exactly like the CLI — `SEEKRIT_TOKEN`, or saved
|
package/dist/index.js
CHANGED
|
@@ -2221,7 +2221,7 @@ async function runMcpServer(options = {}) {
|
|
|
2221
2221
|
* `seekrit mcp`. tsdown bundles the shared server source in at build time, so the
|
|
2222
2222
|
* published package is self-contained and needs no `@seekrit/cli` install.
|
|
2223
2223
|
*/
|
|
2224
|
-
runMcpServer({ version: "0.
|
|
2224
|
+
runMcpServer({ version: "0.3.0" }).catch((err) => {
|
|
2225
2225
|
const message = err instanceof Error ? err.message : String(err);
|
|
2226
2226
|
process.stderr.write(`seekrit-mcp: fatal: ${message}\n`);
|
|
2227
2227
|
process.exit(1);
|
package/package.json
CHANGED