@totemsdk/mcp-server 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 +9 -2
- package/data/sdk-index.json +1 -0
- package/dist/index-store.d.ts +18 -0
- package/dist/index-store.js +38 -0
- package/dist/index.d.ts +7 -4
- package/dist/index.js +99 -114
- package/dist/indexer.d.ts +27 -1
- package/dist/indexer.js +330 -120
- package/dist/resources.d.ts +4 -0
- package/dist/resources.js +152 -17
- package/dist/tools.d.ts +7 -1
- package/dist/tools.js +166 -24
- package/dist/types.d.ts +24 -1
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @totemsdk/mcp-server
|
|
2
2
|
|
|
3
|
-
Model Context Protocol server exposing the full Totem SDK package set —
|
|
3
|
+
Model Context Protocol server exposing the full Totem SDK package set — packages, exports, cross-package dependency graphs, and scaffolding tools.
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
@@ -52,6 +52,11 @@ The server runs on stdio and communicates via JSON-RPC.
|
|
|
52
52
|
| `scaffold-package` | Generate new package boilerplate |
|
|
53
53
|
| `package-stats` | Export counts, Rust/Go, tests, deps |
|
|
54
54
|
| `list-exports` | List exports filtered by kind and name |
|
|
55
|
+
| `suggest-template` | Suggest KISSVM templates matching a use case |
|
|
56
|
+
| `read-source` | Read a source file from a package's `src/` |
|
|
57
|
+
| `list-packages` | List packages filtered by domain or name |
|
|
58
|
+
| `search-packages` | Free-text package search |
|
|
59
|
+
| `refresh-index` | Rebuild the SDK index (development only) |
|
|
55
60
|
|
|
56
61
|
## Prompts
|
|
57
62
|
|
|
@@ -62,7 +67,9 @@ The server runs on stdio and communicates via JSON-RPC.
|
|
|
62
67
|
|
|
63
68
|
## How it works
|
|
64
69
|
|
|
65
|
-
At startup, the server
|
|
70
|
+
At startup, the server builds an in-memory index of every `@totemsdk/*` package and its exports. When run inside the SDK monorepo it scans `packages/*` live; when installed from npm (e.g. via `npx`) it loads the prebuilt index shipped in `data/sdk-index.json`. No runtime dependency on any `@totemsdk/*` package.
|
|
71
|
+
|
|
72
|
+
If neither is available the server stays running but index-backed tools return an explicit **"SDK index unavailable"** error — never an empty result that looks like a real answer.
|
|
66
73
|
|
|
67
74
|
## License
|
|
68
75
|
|