@naumu/mcp 0.14.2 → 0.15.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.
package/dist/index.js CHANGED
@@ -41,7 +41,7 @@ function parseRetryAfterSeconds(retryAfter) {
41
41
  }
42
42
 
43
43
  // ../mcp-core/src/version.ts
44
- var NAUMU_MCP_VERSION = "0.14.2";
44
+ var NAUMU_MCP_VERSION = "0.15.0";
45
45
 
46
46
  // ../mcp-core/src/client.ts
47
47
  var HEADER_VALUE_MAX_LENGTH = 100;
@@ -416,7 +416,7 @@ var NodeTypeSchema = z5.object({
416
416
  description: z5.string().optional().describe('Short one-sentence description of what this type represents AND how it differs from semantically similar types (e.g. "Type A - distinct from Type B, which is broader"). Strongly encouraged on every type. Future agents rely on this when classifying a new node into one of several similar-sounding types.')
417
417
  });
418
418
  var SchemaDefinitionSchema = z5.object({
419
- description: z5.string().optional().describe("Schema-level description / domain summary."),
419
+ description: z5.string().optional().describe("Schema-level description / domain summary. Omit to keep the current space-wide description; send an empty string to clear it. Max 4,000 chars."),
420
420
  nodes: z5.array(NodeTypeSchema).describe("All node types in the schema.")
421
421
  });
422
422
  function registerUpdateSchema(server2, client2) {
@@ -631,6 +631,8 @@ function registerAddAttribute(server2, client2) {
631
631
 
632
632
  // ../mcp-core/src/tools/update-schema-description.ts
633
633
  import { z as z9 } from "zod";
634
+ var SCHEMA_DESCRIPTION_MAX_LENGTH = 4e3;
635
+ var TARGET_DESCRIPTION_MAX_LENGTH = 300;
634
636
  function errorResult(error) {
635
637
  return {
636
638
  content: [{ type: "text", text: JSON.stringify({ error }, null, 2) }]
@@ -648,7 +650,10 @@ function registerUpdateSchemaDescription(server2, client2) {
648
650
  nodeType: z9.string().optional().describe("Existing node type whose description (or whose attribute/value description) is being rewritten. Omit to rewrite the space-wide schema description instead."),
649
651
  attribute: z9.string().optional().describe("Attribute name on that type. Omit to target the node type itself. Required when `value` is set."),
650
652
  value: z9.string().optional().describe("Label of one value of `attribute`. When set, the description is written on that value instead of the attribute."),
651
- description: z9.string().trim().min(1).max(300).describe("The new description (1-300 chars). One or two sentences, contrastive against sibling types/attributes/values so an agent can decide between them.")
653
+ description: z9.string().trim().min(1).max(SCHEMA_DESCRIPTION_MAX_LENGTH).describe("The new description. For a type, attribute, or value: 1-300 chars, one or two sentences, contrastive against sibling types/attributes/values so an agent can decide between them. For the space-wide schema description (nodeType omitted): up to 4,000 chars of guidance that holds across every type.")
654
+ }).refine((data) => data.nodeType === void 0 || data.description.length <= TARGET_DESCRIPTION_MAX_LENGTH, {
655
+ path: ["description"],
656
+ message: "per-type, attribute and value descriptions are limited to 300 characters; the space-wide description to 4,000"
652
657
  })
653
658
  },
654
659
  async ({ graphId, nodeType, attribute, value, description }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naumu/mcp",
3
- "version": "0.14.2",
3
+ "version": "0.15.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>",
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "ai.naumu/mcp",
4
4
  "title": "Naumu",
5
5
  "description": "Search, extend, and act on your team's Naumu knowledge graph: notes, threads, and nodes.",
6
- "version": "0.14.2",
6
+ "version": "0.15.0",
7
7
  "websiteUrl": "https://naumu.ai",
8
8
  "repository": {
9
9
  "url": "https://github.com/naumu-ai/mcp",
@@ -27,7 +27,7 @@
27
27
  "registryType": "npm",
28
28
  "registryBaseUrl": "https://registry.npmjs.org",
29
29
  "identifier": "@naumu/mcp",
30
- "version": "0.14.2",
30
+ "version": "0.15.0",
31
31
  "runtimeHint": "npx",
32
32
  "transport": { "type": "stdio" },
33
33
  "environmentVariables": [