slima-mcp 0.2.0 → 0.3.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 +50 -8
- package/dist/index.js +1102 -257
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -137,19 +137,41 @@ Get your token from [Slima Settings](https://app.slima.ai/settings/api-tokens) o
|
|
|
137
137
|
gemini mcp add slima --command "npx -y slima-mcp@0"
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
-
> **Why `slima-mcp@0` instead of `slima-mcp` / `slima-mcp@latest`?** Using `@0` pins to the current major version — npx
|
|
140
|
+
> **Why `slima-mcp@0` instead of `slima-mcp` / `slima-mcp@latest`?** Using `@0` pins to the current major version — npx fetches new `0.x.y` releases automatically (so you get features + bug fixes), but when we ship `1.0.0` with breaking changes you won't silently pick it up without updating your config. We'll announce the `@1` switch in the release notes.
|
|
141
|
+
>
|
|
142
|
+
> ⚠️ **This only holds if you do not also have a global `slima-mcp` install.** `npx pkg@<range>`
|
|
143
|
+
> will happily satisfy the range from a package already on your `PATH` and never contact the
|
|
144
|
+
> registry at all. Measured on 2026-09-09 with a global `0.2.0` present and `0.3.0` on npm:
|
|
145
|
+
>
|
|
146
|
+
> | command | resolved |
|
|
147
|
+
> |---|---|
|
|
148
|
+
> | `npx -y slima-mcp@0` | **0.2.0** — used the global install |
|
|
149
|
+
> | `npx -y slima-mcp` | **0.2.0** — same |
|
|
150
|
+
> | `npx -y slima-mcp@latest` | 0.3.0 — a dist-tag forces a registry lookup |
|
|
151
|
+
> | `npx -y slima-mcp@0.3.0` | 0.3.0 — the global can't satisfy an exact newer version |
|
|
152
|
+
>
|
|
153
|
+
> So a stale global install makes the npx form silently stop upgrading, while the server keeps
|
|
154
|
+
> telling you to upgrade. Remove it — see below.
|
|
141
155
|
|
|
142
156
|
#### Migrating from a global install
|
|
143
157
|
|
|
144
158
|
If you already installed globally with `npm install -g slima-mcp`:
|
|
145
159
|
|
|
146
160
|
```bash
|
|
147
|
-
# Remove the old global install
|
|
161
|
+
# Remove the old global install — REQUIRED, not just tidiness.
|
|
162
|
+
# Leaving it in place makes `npx -y slima-mcp@0` resolve to the old global copy
|
|
163
|
+
# forever (see the warning above), so you'd stay outdated while being told to upgrade.
|
|
148
164
|
npm uninstall -g slima-mcp
|
|
149
165
|
|
|
150
|
-
#
|
|
166
|
+
# Then change your config `command` from "slima-mcp" to the npx form above, and restart the client.
|
|
167
|
+
# Verify: `npx -y slima-mcp@0 --version` must print the version shown by `npm view slima-mcp version`.
|
|
151
168
|
```
|
|
152
169
|
|
|
170
|
+
⚠️ Check **every** place you may have installed it. A global install can exist per Node version
|
|
171
|
+
manager environment and per OS — on WSL setups it is common to have one under `nvm` *and* one
|
|
172
|
+
under Windows' `AppData/Roaming/npm`, at two different versions, with only one of them on the
|
|
173
|
+
`PATH` your MCP client actually uses.
|
|
174
|
+
|
|
153
175
|
Or, if you want to stay on a global install, remember to periodically run:
|
|
154
176
|
|
|
155
177
|
```bash
|
|
@@ -303,8 +325,8 @@ npm run dev:worker
|
|
|
303
325
|
# Deploy to Cloudflare
|
|
304
326
|
npm run deploy:worker
|
|
305
327
|
|
|
306
|
-
# Deploy to
|
|
307
|
-
npm run deploy:worker:
|
|
328
|
+
# Deploy to the test environment (test-mcp.slima.ai)
|
|
329
|
+
npm run deploy:worker:test
|
|
308
330
|
```
|
|
309
331
|
|
|
310
332
|
### Project Structure
|
|
@@ -352,13 +374,33 @@ git checkout main && git merge dev && git push
|
|
|
352
374
|
|
|
353
375
|
### Cloudflare Worker (Manual)
|
|
354
376
|
|
|
355
|
-
Worker deployment is separate from npm
|
|
377
|
+
**Worker deployment is separate from npm, and nothing triggers it automatically.**
|
|
378
|
+
Publishing to npm does NOT update `mcp.slima.ai`. Remote clients (claude.ai /
|
|
379
|
+
ChatGPT connectors) talk to the Worker, so they keep running the old tool set
|
|
380
|
+
until someone runs this by hand:
|
|
356
381
|
|
|
357
382
|
```bash
|
|
358
|
-
npm run deploy:worker
|
|
359
|
-
npm run deploy:worker
|
|
383
|
+
npm run deploy:worker:test # Test (test-mcp.slima.ai -> test-api.slima.ai)
|
|
384
|
+
npm run deploy:worker # Prod (mcp.slima.ai -> api.slima.ai)
|
|
360
385
|
```
|
|
361
386
|
|
|
387
|
+
Deploy test first and check `curl https://test-mcp.slima.ai/ | jq .version`
|
|
388
|
+
before doing prod; the same one-liner against `mcp.slima.ai` is how you tell
|
|
389
|
+
whether the Worker is behind npm at all.
|
|
390
|
+
|
|
391
|
+
> 2026-09-09: the Worker sat on 0.2.0 for four and a half months — it was last
|
|
392
|
+
> deployed the same day npm 0.2.0 shipped, so every change after that reached
|
|
393
|
+
> npm users and no connector users. There is no alarm for this; the version
|
|
394
|
+
> endpoint is the only signal.
|
|
395
|
+
|
|
396
|
+
> There used to be a `deploy:worker:preview` script pointing at an `[env.preview]`
|
|
397
|
+
> block. It was removed on 2026-09-09: its KV id was the literal placeholder
|
|
398
|
+
> string, `staging-api.slima.ai` does not resolve, and — worst — it defined no
|
|
399
|
+
> `routes`. `routes` is an *inheritable* key in wrangler, so that command would
|
|
400
|
+
> have inherited the top-level `mcp.slima.ai` custom domain and pointed
|
|
401
|
+
> **production's hostname** at the preview Worker. The real staging environment
|
|
402
|
+
> is `[env.test]`.
|
|
403
|
+
|
|
362
404
|
### MCP Registry (Manual)
|
|
363
405
|
|
|
364
406
|
To publish/update the server listing on the [MCP Registry](https://registry.modelcontextprotocol.io/):
|