consult-mcp 1.2.1 → 1.2.2

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.
@@ -2,7 +2,10 @@ import { randomUUID } from "node:crypto";
2
2
  import { AdvisorError } from "../types.js";
3
3
  // --restricted drops every tool that runs commands or code and confines file tools to the cwd;
4
4
  // --strict-mcp-config with no --mcp-config loads no MCP servers, so the advisor cannot call consult back.
5
- const CONTAINMENT = ["--restricted", "--tools", "Read,Grep,Glob", "--strict-mcp-config"];
5
+ // --permission-mode default: a resumed or forked session otherwise comes back in the mode it was saved
6
+ // in, and Claude Code refuses --restricted in bypassPermissions (a session started with
7
+ // --dangerously-skip-permissions).
8
+ const CONTAINMENT = ["--restricted", "--tools", "Read,Grep,Glob", "--strict-mcp-config", "--permission-mode", "default"];
6
9
  function invocation(request, prompt, session) {
7
10
  return {
8
11
  command: "claude",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "consult-mcp",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "mcpName": "io.github.neelsatyavolu/consult",
5
5
  "description": "Get a second opinion on your code from every coding agent you have. Claude Code, Codex and Grok review each other's diffs and answer each other's questions, even inside a session that's already running. Uses the CLIs you're signed in to, no API keys.",
6
6
  "keywords": [