GrepBoard/Manuals
47 manuals ·

Automation 8

Connecting AI tools to other tools: MCP servers, hooks and scripted runs.

  1. Block dangerous commands with a Claude Code hook

    Inspect each Bash command Claude Code is about to run with a PreToolUse hook, and block rm -rf or force pushes with exit code 2, via a settings file and script.

    Claude Code 2.1.302 · Ubuntu 24.04 · jq 1.7
  2. Claude Code settings.local.json allow rule not applied

    Claude Code still asks despite a Bash allow rule in settings.local.json. Check loaded files, rule syntax, compound commands and deny precedence via claude -p.

    Claude Code 2.1.302 · Ubuntu 24.04 · run 2026-10-19
  3. Connect an MCP server to Claude Code and diagnose "not connected"

    Add a one-tool stdio MCP server to Claude Code at project scope and read the symptoms of pending approval, a bad command path, broken .mcp.json and stdout logs.

    Claude Code 2.1.302 · Node.js · @modelcontextprotocol/sdk 1.32.1 · Ubuntu 24.04
  4. Fix "user cancelled MCP tool call" in codex exec

    When codex exec cancels MCP tool calls right away, drop the config keys that do nothing, approve per server or tool with approval_mode, and keep the sandbox on.

    Codex CLI 0.163.0 · Ubuntu 24.04 · Node 24 (config checks reproduced; real tool calls per issue #24135)
  5. Fix a .mcp.json server stuck on "Pending approval"

    Approve or reject a .mcp.json server that claude mcp list shows as ⏸ Pending approval, and see where local, project and user scope store servers and which wins.

    Claude Code 2.1.302 · Ubuntu 24.04 · setting keys per Claude Code docs · 2026-10
  6. Fix Claude Code Action 403 permission errors

    When Claude Code Action fails with 403 Resource not accessible by integration, check the token type, permissions block, repo defaults, then fork PRs.

    claude-code-action v1 official docs · actionlint 1.7.12 · 2026-10
  7. Run codex exec non-interactively in CI

    Defaults and flags for codex exec in CI: sandbox and approval, --json, -o, --output-schema, stdin waits, CI auth, and the MCP tool-call cancellation limit.

    Codex CLI 0.163.0 · Ubuntu 24.04 · Node 24 · only the parts that work without login were tested · 2026-10
  8. Tell a stray print() from "MCP error -32000: Connection closed"

    Reproduce three ways a print() in a Python stdio MCP server behaves, see what actually causes MCP error -32000, and move the logging to stderr.

    Claude Code 2.1.302 · Python 3.12.3 · mcp 2.3.0 · @modelcontextprotocol/sdk 1.32.1 · Node.js 24 · Ubuntu 24.04