@cachly-dev/mcp-server 0.10.115 → 0.10.117
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/README.md +12 -2
- package/dist/src/handlers/brain.js +22 -10
- package/dist/src/handlers/brain.js.map +1 -1
- package/dist/src/index.js +2 -19
- package/dist/src/index.js.map +1 -1
- package/dist/src/tools.d.ts +0 -196
- package/dist/src/tools.js +0 -178
- package/dist/src/tools.js.map +1 -1
- package/dist/src/toolspecs.d.ts +1 -1
- package/dist/src/toolspecs.js +1 -1
- package/glama.json +3 -1
- package/package.json +16 -4
- package/server.json +3 -3
- package/dist/src/handlers/tco.d.ts +0 -16
- package/dist/src/handlers/tco.js +0 -304
- package/dist/src/handlers/tco.js.map +0 -1
package/dist/src/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { jwtExpiryMs, checkJwt, handleApiError, diagnoseAuth, planAuthHeal, readClientCredentialsFromEnv, buildClientCredentialsBody, clientCredentialsTokenUrl } from './auth.js';
|
|
3
|
-
import { handleTcoTool } from './handlers/tco.js';
|
|
4
3
|
import { notify } from './notifier.js';
|
|
5
4
|
import { fileURLToPath } from 'node:url';
|
|
6
5
|
import { createRequire } from 'node:module';
|
|
@@ -37,24 +36,12 @@ const _isMain = process.argv[1] != null &&
|
|
|
37
36
|
* ── Auth & Status ────────────────────────────────────────────────────────────
|
|
38
37
|
* • get_api_status – check API health + JWT auth info (Keycloak)
|
|
39
38
|
*
|
|
40
|
-
* ── Travel Chaos Organizer (TCO) ────────────────────────────────────────────
|
|
41
|
-
* • tco_list_trips – list all trips
|
|
42
|
-
* • tco_create_trip – create a new trip
|
|
43
|
-
* • tco_get_timeline – get timeline items for a trip
|
|
44
|
-
* • tco_delete_trip – delete a trip
|
|
45
|
-
* • tco_inbox_list – list Chaos Inbox items
|
|
46
|
-
* • tco_inbox_assign – assign inbox item to a trip
|
|
47
|
-
* • tco_inbox_reject – reject/discard an inbox item
|
|
48
|
-
* • tco_parse_url – fetch a URL and parse with Ollama
|
|
49
|
-
* • tco_import_email – import raw email text
|
|
50
|
-
* (Requires TCO_API_URL env var; auth forwarded from CACHLY_JWT — same Keycloak realm)
|
|
51
39
|
*
|
|
52
40
|
* Configuration (env vars):
|
|
53
41
|
* CACHLY_API_URL – default https://api.cachly.dev
|
|
54
42
|
* CACHLY_JWT – your JWT (Keycloak access token)
|
|
55
43
|
* CACHLY_EMBED_PROVIDER – embedding backend: openai (default), gemini, mistral, cohere, ollama, cachly (server fallback)
|
|
56
44
|
* CACHLY_EMBED_MODEL – override embedding model (optional)
|
|
57
|
-
* TCO_API_URL – Travel Chaos Organizer backend URL (optional, enables tco_* tools)
|
|
58
45
|
*/
|
|
59
46
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
60
47
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
@@ -882,7 +869,7 @@ async function handleTool(name, args) {
|
|
|
882
869
|
'',
|
|
883
870
|
'After sign-in: call **any tool again** — your Brain activates instantly.',
|
|
884
871
|
'',
|
|
885
|
-
'✨ Free forever · No credit card ·
|
|
872
|
+
'✨ Free forever · No credit card · 126 MCP tools · GDPR · EU servers',
|
|
886
873
|
].join('\n');
|
|
887
874
|
}
|
|
888
875
|
// Device flow unavailable (network issue) — fall back to manual setup
|
|
@@ -1071,10 +1058,6 @@ async function handleTool(name, args) {
|
|
|
1071
1058
|
}
|
|
1072
1059
|
return fedbrainResult;
|
|
1073
1060
|
}
|
|
1074
|
-
// Delegate Travel Chaos Organizer tools (requires TCO_API_URL env var)
|
|
1075
|
-
const tcoResult = await handleTcoTool(name, args, JWT ?? '');
|
|
1076
|
-
if (tcoResult !== null)
|
|
1077
|
-
return tcoResult;
|
|
1078
1061
|
switch (name) {
|
|
1079
1062
|
// ── Instance management ──────────────────────────────────────────────
|
|
1080
1063
|
case 'get_api_status': {
|
|
@@ -2341,7 +2324,7 @@ if (!process.argv[2] && process.stdout.isTTY) {
|
|
|
2341
2324
|
console.log(' \x1b[36m npx @cachly-dev/mcp-server@latest upgrade\x1b[0m ← Check for updates');
|
|
2342
2325
|
console.log('');
|
|
2343
2326
|
console.log(' \x1b[90mWorks with: Claude Code · Cursor · Windsurf · GitHub Copilot · Cline · Zed\x1b[0m');
|
|
2344
|
-
console.log(' \x1b[90mFree forever · GDPR · German servers ·
|
|
2327
|
+
console.log(' \x1b[90mFree forever · GDPR · German servers · 126 MCP tools\x1b[0m');
|
|
2345
2328
|
console.log('');
|
|
2346
2329
|
process.exit(0);
|
|
2347
2330
|
}
|