@iworkforces/tracelattice 2.0.3 → 2.0.6
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 +6 -12
- package/dist/cli.js +221 -2213
- package/dist/cli.js.map +1 -1
- package/dist/config/ConfigLoader.d.ts +3 -0
- package/dist/config/ConfigLoader.d.ts.map +1 -1
- package/dist/config/ConfigLoader.js +6 -0
- package/dist/config/ConfigLoader.js.map +1 -1
- package/dist/contracts/transport.d.ts +2 -2
- package/dist/contracts/transport.d.ts.map +1 -1
- package/dist/core/ThoughtProcessor.d.ts +1 -1
- package/dist/core/ThoughtProcessor.d.ts.map +1 -1
- package/dist/core/ThoughtProcessor.js +3 -6
- package/dist/core/ThoughtProcessor.js.map +1 -1
- package/dist/lib.d.ts +0 -10
- package/dist/lib.d.ts.map +1 -1
- package/dist/lib.js.map +1 -1
- package/dist/metrics/metrics.impl.d.ts +2 -7
- package/dist/metrics/metrics.impl.d.ts.map +1 -1
- package/dist/metrics/metrics.impl.js +32 -34
- package/dist/metrics/metrics.impl.js.map +1 -1
- package/dist/persistence/FileSnapshotV2.d.ts +2 -2
- package/dist/pool/ConnectionPool.d.ts +7 -3
- package/dist/pool/ConnectionPool.d.ts.map +1 -1
- package/dist/pool/ConnectionPool.js +65 -40
- package/dist/pool/ConnectionPool.js.map +1 -1
- package/dist/schema.d.ts +1 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +4 -2
- package/dist/schema.js.map +1 -1
- package/dist/transport/HttpHelpers.d.ts +1 -1
- package/dist/transport/HttpHelpers.js.map +1 -1
- package/package.json +3 -3
- package/dist/transport/SseTransport.d.ts +0 -149
- package/dist/transport/SseTransport.d.ts.map +0 -1
- package/dist/transport/SseTransport.js +0 -470
- package/dist/transport/SseTransport.js.map +0 -1
package/README.md
CHANGED
|
@@ -15,8 +15,8 @@ An MCP server that gives AI agents structured sequential thinking with tool and
|
|
|
15
15
|
- Outcome recording for tool_call/tool_observation results with metadata
|
|
16
16
|
- Tool and skill recommendations with confidence scores, rationales, and automatic discovery
|
|
17
17
|
- Per-session isolation with TTL eviction and LRU caching
|
|
18
|
-
- CLI transports: stdio (default)
|
|
19
|
-
- Strict TypeScript, Valibot validation,
|
|
18
|
+
- CLI transports: stdio (default) and Streamable HTTP (production). A stateless HTTP JSON-RPC transport is also available as a library transport
|
|
19
|
+
- Strict TypeScript, Valibot validation, and an 18-service DI container
|
|
20
20
|
|
|
21
21
|
## Install
|
|
22
22
|
|
|
@@ -177,15 +177,10 @@ All feature flags default to enabled in `ServerConfig`. Set a boolean flag to `f
|
|
|
177
177
|
|
|
178
178
|
| Variable | Default | Description |
|
|
179
179
|
|----------|---------|-------------|
|
|
180
|
-
| `TRANSPORT_TYPE` | `stdio` | Transport: `stdio
|
|
181
|
-
| `STREAMABLE_HTTP_PORT` | `
|
|
180
|
+
| `TRANSPORT_TYPE` | `stdio` | Transport: `stdio` or `streamable-http` |
|
|
181
|
+
| `STREAMABLE_HTTP_PORT` | `9007` | Port for Streamable HTTP server |
|
|
182
182
|
| `STREAMABLE_HTTP_HOST` | `localhost` | Host for Streamable HTTP server |
|
|
183
183
|
| `STREAMABLE_HTTP_STATEFUL` | `true` | Enable stateful session tracking |
|
|
184
|
-
| `SSE_PORT` | `3000` | Port for SSE server |
|
|
185
|
-
| `SSE_HOST` | `localhost` | Host for SSE server |
|
|
186
|
-
| `SSE_ENABLE_POOL` | `true` | Enable connection pool for session isolation |
|
|
187
|
-
| `SSE_MAX_SESSIONS` | `100` | Maximum concurrent SSE sessions |
|
|
188
|
-
| `SSE_SESSION_TIMEOUT` | `300000` | SSE session timeout (ms) |
|
|
189
184
|
| `CORS_ORIGIN` | `*` | CORS origin |
|
|
190
185
|
| `ENABLE_CORS` | `true` | Enable CORS preflight |
|
|
191
186
|
| `ALLOWED_HOSTS` | derived from bound host | Comma-separated allowed `Host` header values |
|
|
@@ -205,10 +200,9 @@ Set `TRANSPORT_TYPE` to pick one:
|
|
|
205
200
|
| Transport | When to use | Command |
|
|
206
201
|
|-----------|-------------|---------|
|
|
207
202
|
| `stdio` (default) | Local MCP clients | `tracelattice` |
|
|
208
|
-
| `sse` (legacy) | Multi-user setups, backwards compatibility | `TRANSPORT_TYPE=sse tracelattice` |
|
|
209
203
|
| `streamable-http` | Production deployments | `TRANSPORT_TYPE=streamable-http tracelattice` |
|
|
210
204
|
|
|
211
|
-
The Streamable HTTP endpoint defaults to `POST /mcp` for JSON-RPC requests and supports stateful sessions via the `Mcp-Session-Id` header.
|
|
205
|
+
The Streamable HTTP endpoint defaults to `POST /mcp` for JSON-RPC requests and supports stateful sessions via the `Mcp-Session-Id` header. In stateful mode, `GET /mcp` may expose `text/event-stream` notifications for that session. The library also exposes `HttpTransport` for stateless JSON-RPC over HTTP, but the CLI does not select it with `TRANSPORT_TYPE`.
|
|
212
206
|
|
|
213
207
|
## Development
|
|
214
208
|
|
|
@@ -241,7 +235,7 @@ src/
|
|
|
241
235
|
│ └── tools/ # InMemorySuspensionStore (suspend/resume)
|
|
242
236
|
├── contracts/ # Shared interfaces and branded ID types (cross-module coupling point)
|
|
243
237
|
├── persistence/ # File, SQLite, Memory backends (with saveEdges/loadEdges)
|
|
244
|
-
├── transport/ #
|
|
238
|
+
├── transport/ # Streamable HTTP, HTTP JSON-RPC
|
|
245
239
|
├── di/ # IoC container (18 services) + ServiceRegistry
|
|
246
240
|
├── registry/ # Tool/Skill discovery with frontmatter parsing and LRU cache
|
|
247
241
|
├── config/ # YAML + env var loading
|