@contextual-io/cli 0.8.2 → 0.8.3

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 CHANGED
@@ -20,7 +20,7 @@ $ npm install -g @contextual-io/cli
20
20
  $ ctxl COMMAND
21
21
  running command...
22
22
  $ ctxl (--version)
23
- @contextual-io/cli/0.8.2 linux-x64 node-v25.9.0
23
+ @contextual-io/cli/0.8.3 linux-x64 node-v25.9.0
24
24
  $ ctxl --help [COMMAND]
25
25
  USAGE
26
26
  $ ctxl COMMAND
@@ -55,6 +55,9 @@ export default class McpServe extends BaseCommand {
55
55
  const toolPrefix = this.flags["tool-prefix"] ? defaultToolPrefix : "";
56
56
  const interfaceType = this.args.interface;
57
57
  const config = await this.currentConfig();
58
+ if (!config.bearerToken || !config.expiresAt || config.expiresAt <= new Date().toISOString()) {
59
+ throw new Error("Config is expired or not logged in. Run 'ctxl config login' to login.");
60
+ }
58
61
  const server = await startCtxlMcpHttpServer({
59
62
  createBridgeManager: () => createBridgeManager({
60
63
  config,
@@ -1367,5 +1367,5 @@
1367
1367
  ]
1368
1368
  }
1369
1369
  },
1370
- "version": "0.8.2"
1370
+ "version": "0.8.3"
1371
1371
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contextual-io/cli",
3
3
  "description": "Contextual CLI",
4
- "version": "0.8.2",
4
+ "version": "0.8.3",
5
5
  "author": "Nasser Oloumi",
6
6
  "bin": {
7
7
  "ctxl": "./bin/run.js"