temba-mcp 0.3.2 → 0.3.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "temba-mcp",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "MCP for Temba documentation",
5
5
  "author": "Bouwe (https://bouwe.io)",
6
6
  "scripts": {
package/src/log.js CHANGED
@@ -1,3 +1,6 @@
1
+ import fs from 'fs'
2
+ import path from 'path'
3
+
1
4
  const LOG_FILE = path.join(process.cwd(), 'temba-mcp.log')
2
5
 
3
6
  export const createLogger = (debug = false) => {
package/src/mcp.js CHANGED
@@ -8,7 +8,7 @@ import { version } from './version.js'
8
8
  let index = []
9
9
  let lastFetched = 0
10
10
  const CACHE_TTL = 3600000 // 1 hour in milliseconds
11
- const searchIndexUrl = 'https://docs.temba.io/search-index.json'
11
+ const searchIndexUrl = 'https://temba.bouwe.io/search_index.json'
12
12
 
13
13
  async function ensureFreshIndex(log) {
14
14
  if (Date.now() - lastFetched < CACHE_TTL && index.length > 0) return