Claude Code 便利集

● claude -r の代わりに ccr コマンドでClaude Code のセッションを再開する

npm install -g @sasazame/ccresume

.bash_profile

alias ccr='ccresume'

ccrコマンドで起動できるようになります。

ccr

● ccv コマンドでClaude Code の昔のセッションを再開する

.bash_profile

alias ccv='PORT=3400 npx @kimuson/claude-code-viewer@latest; open http://localhost:3400'

ccvコマンドで起動できるようになります。

ccv

● Claude Codeの何かのタスク実行後に音で通知する

~/.config/claude-code/config.json

  "hooks": {
    "Stop": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "afplay /System/Library/Sounds/Submarine.aiff"
          }
        ]
      }
    ]
  }

参考: https://tonkotsuboy.github.io/20250731-forkwell-claude-code/

● MCPサーバーを入れる

serena , sequential-thinking , deepwiki , context7

のMCPサーバーを入れます

.mcp.json

{
  "mcpServers": {
    "serena": {
      "command": "/PATH/TO/YOUR/uvx",
      "args": [
        "--from",
        "git+https://github.com/oraios/serena",
        "serena",
        "start-mcp-server",
        "--context",
        "ide-assistant",
        "--project",
        "."
      ],
      "cwd": "."
    },
    "sequential-thinking": {
      "command": "/PATH/TO/YOUR/npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sequential-thinking"
      ]
    },
    "deepwiki": {
      "type": "http",
      "url": "https://mcp.deepwiki.com/mcp"
    }
    ,
    "context7": {
      "command": "/PATH/TO/YOUR/npx",
      "args": [
        "-y",
        "@upstash/context7-mcp@latest"
      ]
    }
  }
}
No.2681
11/05 13:41

edit