@naumu/mcp 0.10.0 → 0.11.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.
Files changed (2) hide show
  1. package/dist/index.js +8 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -133,6 +133,9 @@ URL \u2192 tool mapping (the value after /spaces/ is the slug \u2014 resolve it
133
133
 
134
134
  Localhost URLs (http://localhost:3000/spaces/{slug}/...) follow the same shape \u2014 resolve the slug the same way. The MCP backend host is configured separately; the URL the user pastes is just for parsing structure.`;
135
135
 
136
+ // ../mcp-core/src/version.ts
137
+ var NAUMU_MCP_VERSION = "0.11.0";
138
+
136
139
  // ../mcp-core/src/tools/list-graphs.ts
137
140
  import { z } from "zod";
138
141
  function registerListGraphs(server2, client2) {
@@ -1867,16 +1870,17 @@ function registerCreateNote(server2, client2) {
1867
1870
  {
1868
1871
  title: "Create Note",
1869
1872
  annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false },
1870
- description: "Create a new empty note in a graph; use when you need a fresh note to write into. Returns the new note row including its `id` - pass that id to `naumu_note_append` / `naumu_note_replace` to fill in the content. Bots can only create notes in their own graph, and a bot-created note is private (participants only) unless `sharedWithSpace` is set true. Bots cannot file notes into topics \u2014 a bot passing `topicIds` is rejected (bots hold no topic membership); use `sharedWithSpace` instead.",
1873
+ description: "Create a note in a graph, optionally with its full content already in place. Pass `markdown` to create the note and its body in a single call - the preferred path for imports and for any content you already hold. Returns the new note row including its `id`; use `naumu_note_append` / `naumu_note_replace` for LATER edits, not to fill in content you could have passed here. The returned row is the note as it stood BEFORE the body write landed, so its content may read as empty - the write still succeeded, do not retry the call or re-append the body. `attachment://` refs are not accepted in create-time `markdown`: upload the file after the note exists and embed it with a note write tool. Bots can only create notes in their own graph, and a bot-created note is private (participants only) unless `sharedWithSpace` is set true. Bots cannot file notes into topics - a bot passing `topicIds` is rejected (bots hold no topic membership); use `sharedWithSpace` instead.",
1871
1874
  inputSchema: z40.object({
1872
1875
  graphId: z40.string().describe("The graph ID to create the note in"),
1873
1876
  title: z40.string().optional().describe("Optional title for the note"),
1877
+ markdown: z40.string().optional().describe("Full initial note content as markdown. Provide it here to create the note with its content in a single call - preferred for imports; do not restate large content through extra edit calls."),
1874
1878
  sharedWithSpace: z40.boolean().optional().describe("Share the note with everyone in the space. Omit (or false) to keep it private to its participants."),
1875
1879
  topicIds: z40.array(z40.string()).max(8).optional().describe("File the note into these topics (get ids from naumu_list_topics), making it visible to those topics' members. Not available to bots.")
1876
1880
  })
1877
1881
  },
1878
- async ({ graphId, title, sharedWithSpace, topicIds }) => {
1879
- const data = await client2.post("/api/notes", { graphId, title, sharedWithSpace, topicIds });
1882
+ async ({ graphId, title, markdown, sharedWithSpace, topicIds }) => {
1883
+ const data = await client2.post("/api/notes", { graphId, title, markdown, sharedWithSpace, topicIds });
1880
1884
  return {
1881
1885
  content: [{ type: "text", text: JSON.stringify(data, null, 2) }]
1882
1886
  };
@@ -2549,7 +2553,7 @@ var client = new NaumuClient(apiUrl, apiKey);
2549
2553
  var server = new McpServer(
2550
2554
  {
2551
2555
  name: "naumu",
2552
- version: "0.4.0"
2556
+ version: NAUMU_MCP_VERSION
2553
2557
  },
2554
2558
  {
2555
2559
  instructions: NAUMU_INSTRUCTIONS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naumu/mcp",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "MCP server for Naumu – access your knowledge graph from Claude Code, Cursor, and other AI coding agents",
5
5
  "license": "MIT",
6
6
  "author": "Naumu <hello@naumu.ai>",