@tpsdev-ai/flair-mcp 0.4.0 → 0.4.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -40,7 +40,7 @@ const server = new McpServer({
40
40
  // ─── Tools ───────────────────────────────────────────────────────────────────
41
41
  server.tool("memory_search", "Search memories by meaning. Understands temporal queries like 'what happened today'.", {
42
42
  query: z.string().describe("Search query — natural language, semantic matching"),
43
- limit: z.number().optional().default(5).describe("Max results (default 5)"),
43
+ limit: z.coerce.number().optional().default(5).describe("Max results (default 5)"),
44
44
  }, async ({ query, limit }) => {
45
45
  const results = await flair.memory.search(query, { limit });
46
46
  if (results.length === 0) {
@@ -71,7 +71,7 @@ server.tool("memory_store", "Save information to persistent memory. Use for less
71
71
  durability: durability,
72
72
  tags,
73
73
  dedup: true,
74
- dedupThreshold: 0.7,
74
+ dedupThreshold: 0.95,
75
75
  });
76
76
  // Check if dedup returned an existing memory (different ID than what we generated)
77
77
  const generatedPrefix = `${agentId}-`;
@@ -96,7 +96,7 @@ server.tool("memory_delete", "Delete a memory by ID.", {
96
96
  return { content: [{ type: "text", text: `Memory ${id} deleted.` }] };
97
97
  });
98
98
  server.tool("bootstrap", "Get cold-start context: soul + recent memories. Run this at the start of every session.", {
99
- maxTokens: z.number().optional().default(4000).describe("Max tokens in output"),
99
+ maxTokens: z.coerce.number().optional().default(4000).describe("Max tokens in output"),
100
100
  }, async ({ maxTokens }) => {
101
101
  const result = await flair.bootstrap({ maxTokens });
102
102
  if (!result.context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tpsdev-ai/flair-mcp",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "MCP server for Flair — persistent memory for Claude Code, Cursor, and any MCP client.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -23,9 +23,9 @@
23
23
  "node": ">=18"
24
24
  },
25
25
  "dependencies": {
26
- "@modelcontextprotocol/sdk": "^1.12.1",
27
- "@tpsdev-ai/flair-client": "^0.2.0",
28
- "zod": "^4.3.6"
26
+ "@modelcontextprotocol/sdk": "1.27.1",
27
+ "@tpsdev-ai/flair-client": "0.2.1",
28
+ "zod": "4.3.6"
29
29
  },
30
30
  "license": "Apache-2.0",
31
31
  "repository": {
@@ -45,6 +45,6 @@
45
45
  "agent"
46
46
  ],
47
47
  "devDependencies": {
48
- "@types/node": "^24.11.0"
48
+ "@types/node": "24.11.0"
49
49
  }
50
50
  }