suture-mcp 0.1.0 → 0.1.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 +13 -0
- package/dist/cli.cjs +924 -133
- package/dist/cli.js +920 -129
- package/dist/index.cjs +507 -196
- package/dist/index.d.cts +14 -3
- package/dist/index.d.ts +14 -3
- package/dist/index.js +501 -190
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -86,6 +86,7 @@ Suture is in **local-first beta**. It is designed with a defense-in-depth securi
|
|
|
86
86
|
- **RIR Curation:** Automatic memory tiering (Core, Recall, Archive) based on Recency, Importance, and Relevance.
|
|
87
87
|
- **Value Metrics:** Local-only estimates for cached substrate tokens, avoided rereads, indexed/skipped files, code symbols, substrate search hits, duplicate recall skips, and configurable token cost savings.
|
|
88
88
|
- **CLI Hooks:** Integration points for agent `session-start` and `pre-compact` workflows.
|
|
89
|
+
- **Local Visualization:** Token-protected localhost dashboard for core memory, episodes, search, and graph review.
|
|
89
90
|
- **Terminal UI:** Boxed ASCII setup, keyboard-selectable finding curation, index previews, progress/result panels, and a stats dashboard designed for `npx suture-mcp@beta setup`.
|
|
90
91
|
|
|
91
92
|
## Install
|
|
@@ -130,6 +131,7 @@ Example MCP client configuration (Note: Use absolute paths; many clients do not
|
|
|
130
131
|
suture-mcp setup [--project <path>] [--dir <state>] [--yes] [--json]
|
|
131
132
|
suture-mcp init [--dir <path>]
|
|
132
133
|
suture-mcp serve [--dir <path>]
|
|
134
|
+
suture-mcp viz [--dir <state>] [--port <port>]
|
|
133
135
|
suture-mcp doctor [--dir <state>] [--json]
|
|
134
136
|
suture-mcp index <project> [--dir <state>] [--apply-safe] [--json]
|
|
135
137
|
suture-mcp hook session-start --project <path> --session <id> [--client <name>] [--format text|json|claude-json]
|
|
@@ -146,6 +148,16 @@ suture-mcp recall [--dir <state>]
|
|
|
146
148
|
|
|
147
149
|
Beta indexing is deliberately conservative: manifest/config/script/test/code-symbol indexing is enabled, raw markdown memory generation is disabled, and secrets, `.env`, dependencies, build output, generated files, and local tool state directories are ignored.
|
|
148
150
|
|
|
151
|
+
### Local Visualization
|
|
152
|
+
|
|
153
|
+
Run the local dashboard against a Suture state directory:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
suture-mcp viz --dir /path/to/suture-data
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
The viz server binds only to `127.0.0.1`. It prints a one-time local URL containing a random token, and all `/api/*` routes require that token. The dashboard uses local assets only, so it does not load graph code from a CDN.
|
|
160
|
+
|
|
149
161
|
## Multi-Agent Sharing
|
|
150
162
|
|
|
151
163
|
Suture memory is shared by state directory, not by model provider. Configure every agent that should share memory with the same `--dir` value:
|
|
@@ -191,6 +203,7 @@ Current boundaries:
|
|
|
191
203
|
- Obvious API keys, private keys, and environment secrets are blocked and redacted.
|
|
192
204
|
- Exports are limited to the Suture state directory or `/tmp`.
|
|
193
205
|
- Discovery ignores common dependency/build/cache directories.
|
|
206
|
+
- Local visualization binds to `127.0.0.1` and requires a random per-process token for API routes.
|
|
194
207
|
- The `import` MCP tool is intentionally disabled until migration-safe restore validation is implemented.
|
|
195
208
|
|
|
196
209
|
These protections are defense-in-depth, not a replacement for a dedicated secret scanner. Treat team sync and remote storage as product features that require explicit review before enabling.
|