@indianaprado/claude-code-companion 0.1.2 → 0.1.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
@@ -122,6 +122,31 @@ Use `mcpConfig` to give Claude access to local MCP servers for web/search, DBs,
122
122
  other local integrations. Avoid recursively giving Claude this `claude-code-companion` MCP unless you
123
123
  explicitly want nested Claude calls.
124
124
 
125
+ Examples:
126
+
127
+ ```bash
128
+ # Allow web search/fetch in no-write mode.
129
+ node scripts/claude-companion.mjs rescue --mode no_write \
130
+ --allowed-tools WebSearch,WebFetch \
131
+ "Use web search to summarize today's NBA Finals news."
132
+
133
+ # Allow local shell programs in no-write mode.
134
+ node scripts/claude-companion.mjs rescue --mode no_write \
135
+ --allowed-tools Bash \
136
+ "Run redis-cli PING and report the output."
137
+
138
+ # Give Claude local MCP servers.
139
+ node scripts/claude-companion.mjs rescue --mode no_write \
140
+ --mcp-config /path/to/claude-mcp-config.json \
141
+ --allowed-tools mcp__server_name__tool_name \
142
+ "Use the MCP tool and summarize the result."
143
+ ```
144
+
145
+ Important: `no_write` blocks Claude's built-in `Edit` and `Write` tools and tells Claude not to edit.
146
+ If you also grant unrestricted `Bash`, a shell command can still mutate files or external systems.
147
+ For hard no-write isolation with Bash/DB tools, run Claude against read-only credentials or an external
148
+ sandbox.
149
+
125
150
  `maxBudgetUsd` is optional. Omit it for no cap. Very small caps are rejected by default because
126
151
  Claude Code can spend more than that loading context before producing a useful reply.
127
152
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indianaprado/claude-code-companion",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
5
  "description": "Claude Code Companion MCP server for Codex.",
6
6
  "type": "module",
@@ -257,7 +257,7 @@ async function handle(message) {
257
257
  result: {
258
258
  protocolVersion: PROTOCOL_VERSION,
259
259
  capabilities: { tools: {} },
260
- serverInfo: { name: "claude-code-companion", version: "0.1.2" }
260
+ serverInfo: { name: "claude-code-companion", version: "0.1.3" }
261
261
  }
262
262
  });
263
263
  return;
@@ -1,7 +1,7 @@
1
1
  import { binaryStatus, spawnCapture } from "./process.mjs";
2
2
 
3
3
  const MIN_BUDGET_USD = 0.25;
4
- const NO_WRITE_DISALLOWED_TOOLS = "Edit,MultiEdit,Write,NotebookEdit";
4
+ const NO_WRITE_DISALLOWED_TOOLS = "Edit,Write";
5
5
  const VALID_MODES = new Set(["normal", "no_write", "plan", "auto_accept"]);
6
6
 
7
7
  export function getClaudeVersion(cwd) {