@geohar/pi-svg-mcp 0.10.5 → 0.10.7

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/CHANGELOG.md ADDED
@@ -0,0 +1,132 @@
1
+ # Changelog
2
+
3
+ All notable changes to svg-mcp and its plugins (Claude Code, OpenCode, Pi), which are
4
+ released together under one version. The format follows
5
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow
6
+ [Semantic Versioning](https://semver.org/).
7
+
8
+ ## [0.10.7] - 2026-11-09
9
+
10
+ ### Added
11
+ - `CHANGELOG.md`, shipped in the Pi package so Pi lists what changed after an update.
12
+
13
+ ### Changed
14
+ - The README's configuration example keeps settings for one server (`transport`, `port`,
15
+ `[web_auth]`) out of the shared `~/.config/svg-mcp/config.toml`, in a separate file that
16
+ server's launch selects with `$SVG_MCP_CONFIG`. Every launch reads the shared file,
17
+ including the stdio servers MCP clients start themselves.
18
+ - When the config file turns the web login on and no password is set, the startup error
19
+ names the file and explains why other launches fail.
20
+
21
+ ## [0.10.6] - 2026-11-08
22
+
23
+ ### Security
24
+ - A request counts as "this machine" (and skips the preview login) only when its `Host`
25
+ header also names this machine: `localhost`, one of its addresses, its tailnet name, or
26
+ the preview's bind host. A DNS-rebinding page that points its own domain at `127.0.0.1`
27
+ now gets the login.
28
+
29
+ ### Fixed
30
+ - The refresh of this machine's addresses never started, so only loopback counted as
31
+ local and LAN or tailnet browsers were asked to log in even with `exempt_local` on.
32
+
33
+ ## [0.10.5] - 2026-11-08
34
+
35
+ ### Added
36
+ - A TOML config file: `~/.config/svg-mcp/config.toml` (or `$SVG_MCP_CONFIG`). Every
37
+ setting can go there; `web_auth` is a `[web_auth]` table. CLI flags and env vars still
38
+ override it. Unknown keys stop startup instead of being ignored.
39
+ - Transport, host, port, shutdown grace and the preview's settings are now ordinary
40
+ settings, so the config file can set them.
41
+
42
+ ### Fixed
43
+ - A raw `password` inside the `web_auth` block was never hashed, so password mode failed
44
+ to start with it.
45
+ - The 0.10.4 package included a stray editor backup of `webauth.py`.
46
+
47
+ ### Changed
48
+ - The README documents env vars as `SVG_MCP_` plus the setting name, with JSON for
49
+ `web_auth`; the double-underscore form still works but is no longer documented.
50
+ - Documented the tunnel caveat: an `ssh -L` or `socat` tunnel, `tailscale serve --tcp`, or
51
+ any forwarder that drops `X-Forwarded-For` makes every browser look local. Set
52
+ `exempt_local: false` behind one.
53
+
54
+ ## [0.10.4] - 2026-11-08
55
+
56
+ ### Changed
57
+ - The web login code now mirrors mcp-combiner's, so a fix in one can be copied to the
58
+ other. Login rate limiting counts per address and overall, and an expired ticket never
59
+ signs a browser in.
60
+ - New `web_auth.ticket_uses` setting (default 1).
61
+
62
+ ## [0.10.3] - 2026-11-08
63
+
64
+ ### Changed
65
+ - This machine's addresses (interfaces and tailnet) are looked up again every minute, so
66
+ a roaming laptop stays recognised. Until the first lookup, only loopback counts.
67
+ - A browser connecting from loopback counts as this machine again, matching mcp-combiner.
68
+
69
+ ## [0.10.2] - 2026-11-08
70
+
71
+ ### Security
72
+ - Login hardening: a cap on logins in flight per address and overall, at most two
73
+ password checks at once, one-time tickets, logout by POST only, and stricter checks on
74
+ the signing-key file.
75
+
76
+ ## [0.10.1] - 2026-11-08
77
+
78
+ ### Added
79
+ - Optional browser login for the live preview (`web_auth`), compatible with toucan and
80
+ mcp-combiner: one password, session cookies, and sign-in tickets on the URLs
81
+ `start_preview` hands out.
82
+ - `SVG_MCP_WEB_PASSWORD`: give the password raw and svg-mcp hashes it at startup.
83
+ - `svg-mcp hash-password` prints a hash for `web_auth.password_hash`.
84
+
85
+ ## [0.10.0] - 2026-11-03
86
+
87
+ ### Added
88
+ - Support for 2026-era stateless MCP sessions: `create_session` and `end_session`, with
89
+ the session owned by the connection that created it.
90
+ - `subscriptions/listen`, so document changes reach clients between tool calls.
91
+
92
+ ### Changed
93
+ - Idle HTTP sessions now expire after 24 hours instead of never.
94
+
95
+ ## [0.10.0-dev.2] - 2026-11-03
96
+
97
+ ### Changed
98
+ - Session guidance in the server instructions for chats behind mcp-combiner.
99
+
100
+ ## [0.10.0-dev.1] - 2026-11-02
101
+
102
+ ### Added
103
+ - `subscriptions/listen` (2026 era).
104
+
105
+ ## [0.10.0-dev.0] - 2026-11-02
106
+
107
+ ### Added
108
+ - Minted session ids for 2026-era stateless clients.
109
+
110
+ ### Changed
111
+ - Idle HTTP sessions expire after 24 hours.
112
+
113
+ ## [0.9.0] - 2026-11-01
114
+
115
+ ### Changed
116
+ - **Breaking:** requires fastmcp 4 and mcp 2 (`fastmcp>=4.1.5,<5`).
117
+
118
+ ### Fixed
119
+ - Exports no longer try to fsync a directory on Windows.
120
+
121
+ [0.10.7]: https://github.com/georgeharker/svg-mcp/compare/v0.10.6...v0.10.7
122
+ [0.10.6]: https://github.com/georgeharker/svg-mcp/compare/v0.10.5...v0.10.6
123
+ [0.10.5]: https://github.com/georgeharker/svg-mcp/compare/v0.10.4...v0.10.5
124
+ [0.10.4]: https://github.com/georgeharker/svg-mcp/compare/v0.10.3...v0.10.4
125
+ [0.10.3]: https://github.com/georgeharker/svg-mcp/compare/v0.10.2...v0.10.3
126
+ [0.10.2]: https://github.com/georgeharker/svg-mcp/compare/v0.10.1...v0.10.2
127
+ [0.10.1]: https://github.com/georgeharker/svg-mcp/compare/v0.10.0...v0.10.1
128
+ [0.10.0]: https://github.com/georgeharker/svg-mcp/compare/v0.9.0...v0.10.0
129
+ [0.10.0-dev.2]: https://github.com/georgeharker/svg-mcp/compare/v0.10.0-dev.1...v0.10.0-dev.2
130
+ [0.10.0-dev.1]: https://github.com/georgeharker/svg-mcp/compare/v0.10.0-dev.0...v0.10.0-dev.1
131
+ [0.10.0-dev.0]: https://github.com/georgeharker/svg-mcp/compare/v0.9.0...v0.10.0-dev.0
132
+ [0.9.0]: https://github.com/georgeharker/svg-mcp/compare/v0.8.2...v0.9.0
package/README.md CHANGED
@@ -58,7 +58,7 @@ so they apply across every client. Pi-extension toggles use `PI_SVG_MCP_*`.
58
58
  | Variable | Default | Effect |
59
59
  |----------|---------|--------|
60
60
  | `SVG_MCP_PORT` | `7731` | HTTP port svg-mcp serves on. |
61
- | `SVG_MCP_VERSION` | `0.10.5` | Pin the PyPI release (`uvx svg-mcp@<v>`). Kept in lockstep with this package's release by `scripts/bump-version.sh`. |
61
+ | `SVG_MCP_VERSION` | `0.10.7` | Pin the PyPI release (`uvx svg-mcp@<v>`). Kept in lockstep with this package's release by `scripts/bump-version.sh`. |
62
62
  | `SVG_MCP_DEV` | — | Dev checkout for `uv run --project <dir>` (a path, or `1` for in-repo source). |
63
63
  | `PI_SVG_MCP_NAME` | `svg-mcp` | `sharedserver` instance name. |
64
64
  | `PI_SVG_MCP_GRACE` | `1h` | `sharedserver` grace period. |
package/dist/index.js CHANGED
@@ -42,7 +42,7 @@ const SHAREDSERVER_MIN_VERSION = "0.6.7";
42
42
  // scripts/bump-version.sh — a plugin shipped un-updated here served svg-mcp@0.2.6 for
43
43
  // several releases. (Track the release this tag publishes; `latest` is not published
44
44
  // to the pi extension store, so users on `@latest` can still miss releases.)
45
- const SVG_MCP_TOOL_VERSION = "0.10.5";
45
+ const SVG_MCP_TOOL_VERSION = "0.10.7";
46
46
  // ── the diagram-authoring directive ────────────────────────────────
47
47
  // Appended to the system prompt so the agent reaches for svg-mcp's tools instead of
48
48
  // hand-writing SVG XML. Canonical source: CLAUDE.md.example at the repo root; a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geohar/pi-svg-mcp",
3
- "version": "0.10.5",
3
+ "version": "0.10.7",
4
4
  "description": "Pi extension: run the svg-mcp MCP server via sharedserver and inject the diagram-authoring directive. Pairs with pi-mcp-adapter, which makes svg-mcp's tools reachable from Pi.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -9,12 +9,14 @@
9
9
  "extensions": [
10
10
  "./src/index.ts"
11
11
  ],
12
- "image": "https://cdn.jsdelivr.net/npm/@geohar/pi-svg-mcp/assets/preview.png"
12
+ "image": "https://cdn.jsdelivr.net/npm/@geohar/pi-svg-mcp/assets/preview.png",
13
+ "changelogPath": "./CHANGELOG.md"
13
14
  },
14
15
  "files": [
15
16
  "src",
16
17
  "dist",
17
18
  "instructions.txt",
19
+ "CHANGELOG.md",
18
20
  "mcp.json.example",
19
21
  "README.md",
20
22
  "LICENSE",
@@ -24,7 +26,7 @@
24
26
  "build": "tsc",
25
27
  "clean": "rm -rf dist",
26
28
  "typecheck": "tsc --noEmit",
27
- "prepack": "node -e \"require('fs').copyFileSync('../../CLAUDE.md.example', './instructions.txt')\"",
29
+ "prepack": "node -e \"const fs = require('fs'); fs.copyFileSync('../../CLAUDE.md.example', './instructions.txt'); fs.copyFileSync('../../CHANGELOG.md', './CHANGELOG.md')\"",
28
30
  "prepublishOnly": "npm run clean && npm run build"
29
31
  },
30
32
  "keywords": [
package/src/index.ts CHANGED
@@ -51,7 +51,7 @@ const SHAREDSERVER_MIN_VERSION = "0.6.7"
51
51
  // scripts/bump-version.sh — a plugin shipped un-updated here served svg-mcp@0.2.6 for
52
52
  // several releases. (Track the release this tag publishes; `latest` is not published
53
53
  // to the pi extension store, so users on `@latest` can still miss releases.)
54
- const SVG_MCP_TOOL_VERSION = "0.10.5"
54
+ const SVG_MCP_TOOL_VERSION = "0.10.7"
55
55
 
56
56
  type LogFn = (level: "info" | "warn" | "error", message: string) => void
57
57