@zhihand/mcp 0.17.0 → 0.17.1

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.
@@ -387,8 +387,9 @@ function dispatchGemini(prompt, startTime, log, model) {
387
387
  }
388
388
  // ── Codex Dispatch ─────────────────────────────────────────
389
389
  function dispatchCodex(prompt, startTime, model) {
390
- // codex exec --full-auto --skip-git-repo-check --json [-m model] <prompt>
391
- const args = ["exec", "--full-auto", "--skip-git-repo-check", "--json"];
390
+ // --dangerously-bypass-approvals-and-sandbox is required so MCP tool calls
391
+ // are not auto-cancelled in non-interactive mode (--full-auto cancels them)
392
+ const args = ["exec", "--dangerously-bypass-approvals-and-sandbox", "--skip-git-repo-check", "--json"];
392
393
  const codexModel = model ?? process.env.CLAUDE_CODEX_MODEL;
393
394
  if (codexModel) {
394
395
  args.push("-m", codexModel);
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { controlSchema, screenshotSchema, pairSchema } from "./tools/schemas.js"
5
5
  import { executeControl } from "./tools/control.js";
6
6
  import { handleScreenshot } from "./tools/screenshot.js";
7
7
  import { handlePair } from "./tools/pair.js";
8
- const PACKAGE_VERSION = "0.17.0";
8
+ const PACKAGE_VERSION = "0.17.1";
9
9
  export function createServer(deviceName) {
10
10
  const server = new McpServer({
11
11
  name: "zhihand",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhihand/mcp",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "ZhiHand MCP Server — phone control tools for Claude Code, Codex, Gemini CLI, and OpenClaw",