@cachly-dev/mcp-server 0.9.10 → 0.9.11

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
@@ -2447,11 +2447,15 @@ const TOOLS = [
2447
2447
  {
2448
2448
  name: 'cache_set',
2449
2449
  description: 'Set a key-value pair in a running cache instance. ' +
2450
- 'Value can be a string or a JSON-serialized object. Optionally set a TTL in seconds.',
2450
+ 'Overwrites any existing value at the key — not idempotent for new data. ' +
2451
+ 'Returns "OK" on success; returns an error if the instance_id is invalid or the instance is paused. ' +
2452
+ 'Value can be a string or a JSON-serialized object. Optionally set a TTL in seconds (omit for no expiry). ' +
2453
+ 'Use cache_mset instead for setting multiple keys in a single pipeline round-trip. ' +
2454
+ 'Use cache_stream_set instead for caching LLM token streams (ordered string chunks).',
2451
2455
  inputSchema: {
2452
2456
  type: 'object',
2453
2457
  properties: {
2454
- instance_id: { type: 'string' },
2458
+ instance_id: { type: 'string', description: 'UUID of the cache instance (from list_instances)' },
2455
2459
  key: { type: 'string', description: 'Cache key' },
2456
2460
  value: { type: 'string', description: 'Value to store (string or JSON)' },
2457
2461
  ttl: { type: 'number', description: 'Time-to-live in seconds (optional, omit for no expiry)' },
@@ -2542,13 +2546,17 @@ const TOOLS = [
2542
2546
  {
2543
2547
  name: 'semantic_search',
2544
2548
  description: 'Find cached entries that are semantically similar to a natural-language query. ' +
2545
- 'Powered by pgvector HNSW index on cachly infrastructure — embeddings never leave Germany. ' +
2546
- 'Requires OPENAI_API_KEY (or compatible) and the Speed/Business tier with CACHLY_VECTOR_URL. ' +
2547
- 'Example: "find all cached responses about password reset" or "what did we answer about pricing?"',
2549
+ 'Read-only — no side effects. ' +
2550
+ 'Returns an array of objects, each with: key, value, similarity_score (0–1), and namespace. ' +
2551
+ 'Returns an empty array if no entries meet the similarity threshold. ' +
2552
+ 'Requires OPENAI_API_KEY (or compatible provider) and the Speed/Business tier with CACHLY_VECTOR_URL. ' +
2553
+ 'Embeddings are computed server-side and never leave Germany (pgvector HNSW index). ' +
2554
+ 'Example: "find all cached responses about password reset" or "what did we answer about pricing?". ' +
2555
+ 'Use cache_get for exact key lookup; use smart_recall for brain lessons.',
2548
2556
  inputSchema: {
2549
2557
  type: 'object',
2550
2558
  properties: {
2551
- instance_id: { type: 'string' },
2559
+ instance_id: { type: 'string', description: 'UUID of the cache instance (from list_instances)' },
2552
2560
  query: { type: 'string', description: 'Natural-language query to find similar cached content' },
2553
2561
  threshold: {
2554
2562
  type: 'number',
@@ -3300,9 +3308,12 @@ const TOOLS = [
3300
3308
  {
3301
3309
  name: 'global_learn',
3302
3310
  description: 'Store a lesson that applies across ALL your projects (cross-project knowledge). ' +
3311
+ 'Idempotent: if a lesson with the same topic already exists, it is updated in place — no duplicates are created. ' +
3312
+ 'Returns a confirmation with the stored lesson key. No rate limits. ' +
3303
3313
  'Global lessons are stored with the prefix cachly:global:lesson: and recalled from any instance via global_recall. ' +
3304
3314
  'Use for tool preferences, personal workflows, platform quirks, and universal gotchas. ' +
3305
- 'Example: global_learn(topic="bash:macos-arrays", lesson="Arrays work differently on macOS bash 3.2")',
3315
+ 'Example: global_learn(topic="bash:macos-arrays", lesson="Arrays work differently on macOS bash 3.2"). ' +
3316
+ 'Use learn_from_attempts for project-specific session lessons; use team_learn to share lessons with your team.',
3306
3317
  inputSchema: {
3307
3318
  type: 'object',
3308
3319
  properties: {