twitterapi-io-mcp 1.0.12 → 1.0.14

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 (3) hide show
  1. package/README.md +1 -1
  2. package/index.js +7 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -95,7 +95,7 @@ Troubleshooting:
95
95
 
96
96
  ## Optional Configuration
97
97
 
98
- - `TWITTERAPI_MCP_DISK_CACHE=1` enables disk cache across sessions (default: off to reduce disk I/O).
98
+ - `TWITTERAPI_MCP_DISK_CACHE=0` disables disk cache across sessions (default: on). TTL cleanup runs hourly.
99
99
 
100
100
  ## Available Tools
101
101
 
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * TwitterAPI.io Documentation MCP Server v1.0.10
3
+ * TwitterAPI.io Documentation MCP Server v1.0.14
4
4
  *
5
5
  * Production-ready MCP server with:
6
6
  * - Comprehensive error handling with ErrorType classification
@@ -465,7 +465,12 @@ class HybridCache {
465
465
  // Initialize caches
466
466
  // Note: For stdio MCP servers (spawned per-call), use higher disk probability
467
467
  // Memory cache is within-session, disk cache persists across sessions
468
- const DISK_CACHE_ENABLED = process.env.TWITTERAPI_MCP_DISK_CACHE === '1';
468
+ const DISK_CACHE_ENABLED = (() => {
469
+ const raw = process.env.TWITTERAPI_MCP_DISK_CACHE;
470
+ if (!raw) return true;
471
+ const normalized = raw.trim().toLowerCase();
472
+ return !['0', 'false', 'off', 'no'].includes(normalized);
473
+ })();
469
474
  const searchCache = new HybridCache('search', {
470
475
  maxEntries: 200,
471
476
  ttl: 6 * 60 * 60 * 1000, // 6 hours for search
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twitterapi-io-mcp",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "mcpName": "io.github.dorukardahan/twitterapi-io-mcp",
5
5
  "description": "TwitterAPI.io MCP server providing offline access to docs (endpoints, pages, blogs) for Claude and other AI assistants",
6
6
  "main": "index.js",