@geohar/opencode-svg-mcp 0.10.0-dev.1 → 0.10.0-dev.2

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/dist/index.js CHANGED
@@ -35,7 +35,7 @@ const DEFAULT_GRACE = "1h";
35
35
  * shipped stale at 0.2.6 for several releases, so fresh installs pinned to a
36
36
  * years-old server. Override per-launch with the `version` option or
37
37
  * `$SVG_MCP_VERSION`. */
38
- const SVG_MCP_TOOL_VERSION = "0.10.0-dev.1";
38
+ const SVG_MCP_TOOL_VERSION = "0.10.0-dev.2";
39
39
  // ── the diagram-authoring directive ────────────────────────────────
40
40
  // Appended to the system prompt so the agent reaches for svg-mcp's tools instead of
41
41
  // hand-writing SVG XML (the analogue of the Claude Code plugin's SessionStart
package/instructions.txt CHANGED
@@ -2,13 +2,21 @@
2
2
 
3
3
  <!-- Canonical reach-for-svg-mcp directive. Copy into your global
4
4
  $CLAUDE_CONFIG_DIR/CLAUDE.md, or let an svg-mcp plugin inject it each session
5
- (the plugins symlink this file). It directs *approach*; the MCP tool
5
+ (injected as a regular-file copy). It directs *approach*; the MCP tool
6
6
  descriptions carry the mechanics. -->
7
7
 
8
- Three rules. Each fires on a **cue you can catch yourself in the middle of**, not on a
8
+ Four rules. Each fires on a **cue you can catch yourself in the middle of**, not on a
9
9
  topic you have to remember to think about. That's deliberate: you will not remember to
10
10
  "use the tools" — but you can notice yourself about to type a `<` .
11
11
 
12
+ ### 0. Opening svg-mcp for a drawing task? Mint a session first.
13
+
14
+ `create_session` is on the tools: call it ONCE per drawing task, then pass its
15
+ `session_id` on EVERY svg-mcp call that follows (each tool's schema marks the argument).
16
+ Keep the id in the conversation — drawings persist under it, and another chat can pick the
17
+ drawing up with it. A session_id-less call fails with this same guidance: that's the cue
18
+ you skipped the mint, not a bug to route around — run create_session, retry with the id.
19
+
12
20
  ### 1. About to write `<svg`, or hand-edit XML inside one? That's the cue.
13
21
 
14
22
  Writing markup by hand is the wrong move **even when the shape looks trivial** — that's
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geohar/opencode-svg-mcp",
3
- "version": "0.10.0-dev.1",
3
+ "version": "0.10.0-dev.2",
4
4
  "description": "OpenCode plugin: run the svg-mcp MCP server via sharedserver and register its endpoint with OpenCode. Stands down when a combiner already serves svg-mcp.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",