postmd-mcp-server 2.6.0 → 2.6.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 CHANGED
@@ -71,6 +71,14 @@ The format is at <https://postmd.turink.com/docs/graph>. Working out what the no
71
71
  they connect requires reading the document, which is the calling agent's part; PostMD only draws
72
72
  what it finds.
73
73
 
74
+ ### Keeping the code in the file
75
+
76
+ A Markdown file can carry the code of the document it was published as, in an HTML comment at its
77
+ top marked `postmd:document`. A later session that opens the file can then tell which document to
78
+ update without being given the address. The format is at <https://postmd.turink.com/docs/api>,
79
+ "Keeping the code in the file". No tool here writes the comment; the calling agent edits its own
80
+ file.
81
+
74
82
  ### Replacing content on a document that has notes
75
83
 
76
84
  Notes are located by the text they quote, not by a stored position. Replacing a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postmd-mcp-server",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "MCP server for PostMD — publish Markdown as a shareable web page, with document graphs",
5
5
  "mcpName": "io.github.reinlainer/postmd-mcp-server",
6
6
  "type": "module",
package/server.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
3
  "name": "io.github.reinlainer/postmd-mcp-server",
4
4
  "description": "Publish Markdown as a shareable web page, with document graphs",
5
- "version": "2.6.0",
5
+ "version": "2.6.1",
6
6
  "repository": {
7
7
  "url": "https://github.com/reinlainer/postmd-mcp-server",
8
8
  "source": "github"
@@ -11,7 +11,7 @@
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "postmd-mcp-server",
14
- "version": "2.6.0",
14
+ "version": "2.6.1",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },
package/src/server.js CHANGED
@@ -314,7 +314,9 @@ const TOOL_DEFS = [
314
314
  "30-day retention period (data.retainedUntil) that extends on each read. Documents " +
315
315
  "without a password can be updated or deleted by anyone; password-protected documents " +
316
316
  "require the password or the owner's API key. With an API key the document belongs to " +
317
- "that member; groupId files it into that group (key with documents:write).",
317
+ "that member; groupId files it into that group (key with documents:write). The returned " +
318
+ "docCode can be kept at the top of the source file in a `postmd:document` comment " +
319
+ "(format at /docs/api) so a later session finds the document.",
318
320
  annotations: { title: "Publish document", destructiveHint: false },
319
321
  inputSchema: {
320
322
  type: "object",