@chatpanel/bridge 0.10.7 → 0.10.8

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": "@chatpanel/bridge",
3
- "version": "0.10.7",
3
+ "version": "0.10.8",
4
4
  "type": "module",
5
5
  "description": "Local bridge that exposes the AI coding agents installed on your machine — Claude Code (CLI), Codex (CLI), and Gemini CLI — to the ChatPanel Chrome extension over a localhost SSE endpoint. Bring your own agent.",
6
6
  "keywords": [
@@ -82,7 +82,10 @@ export const kiro = makeCliAgent(
82
82
  args: 'chat --no-interactive --require-mcp-startup',
83
83
  promptVia: 'arg',
84
84
  modelArg: '--model {model}',
85
- trustToolsArg: '--trust-tools={tools}',
85
+ // Kiro can see MCP tools with --trust-tools, but in --no-interactive mode it
86
+ // only executes MCP calls when this broader trust flag is present.
87
+ trustAllToolsForMcp: true,
88
+ trustAllToolsArg: '--trust-all-tools',
86
89
  requiresStableMcp: true,
87
90
  autoSetupStableMcp: true,
88
91
  stableMcpConfigCheck: 'kiro',
@@ -150,6 +150,11 @@ export function trustToolArgs(template, mcp) {
150
150
  : [...tmpl.split(/\s+/).filter(Boolean), value];
151
151
  }
152
152
 
153
+ export function mcpTrustArgs(spec = {}, mcp) {
154
+ if (spec.trustAllToolsForMcp) return [spec.trustAllToolsArg || '--trust-all-tools'];
155
+ return spec.trustToolsArg ? trustToolArgs(spec.trustToolsArg, mcp) : [];
156
+ }
157
+
153
158
  export function stableMcpSetupCommand(spec = {}) {
154
159
  if (spec.stableMcpSetupCommand) return spec.stableMcpSetupCommand;
155
160
  return `opencode mcp add chatpanel --url ${CHATPANEL_STABLE_MCP_URL}`;
@@ -434,9 +439,7 @@ export async function runSpec(spec, { messages, system, options = {}, images },
434
439
  : [...tmpl.split(/\s+/).filter(Boolean), cfgFile];
435
440
  args = [...tokens, ...args];
436
441
  }
437
- if (options.mcp?.url && spec.trustToolsArg) {
438
- args.push(...trustToolArgs(spec.trustToolsArg, options.mcp));
439
- }
442
+ if (options.mcp?.url) args.push(...mcpTrustArgs(spec, options.mcp));
440
443
  // Some CLIs only load MCP from their persistent config, so ensure that stable
441
444
  // /mcp endpoint is present before letting the agent answer with no tools.
442
445
  if (options.mcp?.url) await ensureStableMcpConfig(spec, cwd, label, emit);
package/src/server.js CHANGED
@@ -30,7 +30,7 @@ import { callLocalMcp } from './mcp-local.js';
30
30
  // Hardcoded (not read from package.json) so it survives Bun's single-file
31
31
  // --compile, where package.json isn't on a readable FS. CI fails the publish if
32
32
  // this drifts from package.json, so the two can't silently diverge.
33
- const VERSION = '0.10.7';
33
+ const VERSION = '0.10.8';
34
34
  const HOST = process.env.CHATPANEL_BRIDGE_HOST || '127.0.0.1';
35
35
  const PORT = Number(process.env.CHATPANEL_BRIDGE_PORT) || 4319;
36
36