@tacitai/mcp-server 0.6.46 → 0.6.47

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 (2) hide show
  1. package/dist/cli.js +32 -10
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -8,7 +8,7 @@ import { deviceAuthFlow, loginFlow, deriveAppUrl, workspaceNameToProfile } from
8
8
  const PROFILES_DIR = path.join(os.homedir(), '.tacit', 'profiles');
9
9
  const DEFAULT_FILE = path.join(os.homedir(), '.tacit', 'default');
10
10
  const PROFILE_REGEX = /^[a-z0-9][a-z0-9-]{0,63}$/;
11
- const RESERVED_NAMES = new Set(['login', 'ls', 'use', 'rm', 'status', 'install', 'help', 'setup', 'version']);
11
+ const RESERVED_NAMES = new Set(['login', 'ls', 'use', 'rm', 'status', 'install', 'help', 'setup', 'version', 'launch']);
12
12
  const DEFAULT_API_URL = 'https://api-beta.tacitai.app';
13
13
  function listV2Profiles() {
14
14
  if (!fs.existsSync(PROFILES_DIR))
@@ -128,7 +128,21 @@ async function cmdLaunch(name, extraArgs) {
128
128
  process.stderr.write(`[TACIT] Token expires in ${daysLeft} day${daysLeft === 1 ? '' : 's'}.\n`);
129
129
  }
130
130
  }
131
- const child = spawn('claude', extraArgs, {
131
+ // Parse --model from extraArgs; pass remaining args to claude
132
+ let model = null;
133
+ const claudeArgs = [];
134
+ for (let i = 0; i < extraArgs.length; i++) {
135
+ if ((extraArgs[i] === '--model' || extraArgs[i] === '-m') && extraArgs[i + 1]) {
136
+ model = extraArgs[++i];
137
+ }
138
+ else {
139
+ claudeArgs.push(extraArgs[i]);
140
+ }
141
+ }
142
+ if (model) {
143
+ claudeArgs.push('--model', model);
144
+ }
145
+ const child = spawn('claude', claudeArgs, {
132
146
  stdio: 'inherit',
133
147
  env: { ...process.env, TACIT_PROFILE: name },
134
148
  });
@@ -420,6 +434,9 @@ async function main() {
420
434
  const args = process.argv.slice(2);
421
435
  const cmd = args[0] ?? '';
422
436
  switch (cmd) {
437
+ case 'launch':
438
+ await cmdLaunch(args[1], args.slice(2));
439
+ break;
423
440
  case 'login':
424
441
  await cmdLogin(args.slice(1));
425
442
  break;
@@ -445,14 +462,19 @@ async function main() {
445
462
  'tacit — workspace launcher for Claude Code + TACIT',
446
463
  '',
447
464
  'Commands:',
448
- ' tacit Interactive workspace picker',
449
- ' tacit <name> Launch Claude Code connected to <name>',
450
- ' tacit login Authenticate and create a profile',
451
- ' tacit ls List workspace profiles',
452
- ' tacit use <name> Set the default profile',
453
- ' tacit rm <name> Remove a profile',
454
- ' tacit status Show connection info',
455
- ' tacit install Add generic entry to .mcp.json',
465
+ ' tacit Interactive workspace picker',
466
+ ' tacit <name> Launch Claude Code connected to <name>',
467
+ ' tacit <name> --model opus Launch with a specific model',
468
+ ' tacit launch <name> Same as tacit <name>',
469
+ ' tacit login Authenticate and create a profile',
470
+ ' tacit ls List workspace profiles',
471
+ ' tacit use <name> Set the default profile',
472
+ ' tacit rm <name> Remove a profile',
473
+ ' tacit status Show connection info',
474
+ ' tacit install Add generic entry to .mcp.json',
475
+ '',
476
+ 'Options:',
477
+ ' --model, -m <model> Claude model (opus, sonnet, haiku, etc.)',
456
478
  '',
457
479
  ].join('\n'));
458
480
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tacitai/mcp-server",
3
- "version": "0.6.46",
3
+ "version": "0.6.47",
4
4
  "description": "stdio MCP server wrapping Tacit /api/v1 REST/SSE API",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {