@iwo-szapar/data-mcp 0.3.2 → 0.3.3

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/server.js CHANGED
@@ -30,7 +30,7 @@ const SERVER_INSTRUCTIONS = `You are the user's AI Second Brain data layer. This
30
30
  export function createServer(adapter) {
31
31
  const server = new McpServer({
32
32
  name: '@iwo-szapar/data-mcp',
33
- version: '0.3.2',
33
+ version: '0.3.3',
34
34
  }, {
35
35
  instructions: SERVER_INSTRUCTIONS,
36
36
  });
@@ -12,9 +12,9 @@ export function registerLinkCreate(server, adapter) {
12
12
  'Links express how knowledge items relate: supports, contradicts, derived_from, etc. ' +
13
13
  'Deduplicates by (source, target, relation_type).', {
14
14
  source_type: z.enum(ENTITY_TYPES).describe('Type of the source entity'),
15
- source_id: z.string().uuid().describe('UUID of the source entity'),
15
+ source_id: z.string().min(1).max(50).describe('ID of the source entity (UUID on Supabase, 15-char native ID on PocketBase)'),
16
16
  target_type: z.enum(ENTITY_TYPES).describe('Type of the target entity'),
17
- target_id: z.string().uuid().describe('UUID of the target entity'),
17
+ target_id: z.string().min(1).max(50).describe('ID of the target entity (UUID on Supabase, 15-char native ID on PocketBase)'),
18
18
  relation_type: z.enum(RELATION_TYPES).describe('Type of relationship'),
19
19
  confidence: z.number().min(0).max(1).optional().default(0.8).describe('Confidence in this relationship (0-1)'),
20
20
  notes: z.string().max(500).optional().describe('Optional context for why this link exists'),
@@ -7,7 +7,7 @@ import { z } from 'zod';
7
7
  import { makeToolResponse, handleAdapterError, withGracefulDegradation } from '../shared.js';
8
8
  export function registerLinkDelete(server, adapter) {
9
9
  server.tool('link_delete', 'Delete a knowledge link by its ID.', {
10
- link_id: z.string().uuid().describe('UUID of the link to delete'),
10
+ link_id: z.string().min(1).max(50).describe('ID of the link to delete'),
11
11
  }, withGracefulDegradation('knowledge_links', adapter, async (params) => {
12
12
  try {
13
13
  try {
@@ -9,7 +9,7 @@ const ENTITY_TYPES = ['knowledge', 'decision', 'session', 'blog_post', 'prospect
9
9
  export function registerLinkRelated(server, adapter) {
10
10
  server.tool('link_related', 'Get all links for an entity. Shows outgoing and incoming relationships with resolved titles.', {
11
11
  entity_type: z.enum(ENTITY_TYPES).describe('Type of the entity'),
12
- entity_id: z.string().uuid().describe('UUID of the entity'),
12
+ entity_id: z.string().min(1).max(50).describe('ID of the entity (UUID on Supabase, 15-char native ID on PocketBase)'),
13
13
  direction: z.enum(['both', 'outgoing', 'incoming']).optional().default('both').describe('Filter direction'),
14
14
  relation_type: z.enum(['supports', 'contradicts', 'derived_from', 'example_of', 'supersedes', 'part_of', 'prerequisite'])
15
15
  .optional().describe('Filter by relation type'),
@@ -8,7 +8,7 @@ import { makeToolResponse, handleAdapterError, withGracefulDegradation } from '.
8
8
  export function registerLinkSuggest(server, adapter) {
9
9
  server.tool('link_suggest', 'Find knowledge items similar to a given item and suggest links. ' +
10
10
  'Uses text search to find related items. Returns matches with suggested relation types.', {
11
- item_id: z.string().uuid().describe('UUID of the knowledge item to find suggestions for'),
11
+ item_id: z.string().min(1).max(50).describe('ID of the knowledge item to find suggestions for'),
12
12
  limit: z.number().min(1).max(20).optional().default(5).describe('Max suggestions'),
13
13
  }, withGracefulDegradation('knowledge', adapter, async (params) => {
14
14
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iwo-szapar/data-mcp",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Unified data MCP server for Second Brain — PocketBase and Supabase adapters. 40 tools: knowledge, sessions, goals, tasks, contacts, CRM, blog, email, content calendar.",
5
5
  "author": "Iwo Szapar <iwo.szapar@gmail.com> (https://iwoszapar.com)",
6
6
  "homepage": "https://iwoszapar.com/second-brain-ai",