승인 설정

settings.json을 편집하여 Bob Shell의 도구 자동 승인을 구성하세요.

~/.bob/settings/settings.jsonapproval 키는 자동으로 승인되는 도구 그룹 및 개별 도구를 제어합니다. 이 파일은 IDE와 공유되며, IDE 설정 UI를 통해 변경된 내용도 동일한 파일에 기록됩니다.

참고:

이 파일에 대한 변경 사항은 다음에 Bob Shell 세션을 시작할 때 적용됩니다.

스키마

"approval": {
  "allowed_permissions": [
    "mcp",
    "mode",
    "subtask",
    "subagent",
    "skill",
    "todo",
    "read",
    "execute"
  ],
  "permissionOptions": [
    {
      "groupId": "read",
      "enableOutsideWorkspace": true
    }
  ],
  "allowedExecutors": [
    {
      "toolId": "execute_command",
      "approvedCommands": [
        "cat",
        "git diff",
        "git log",
        "git rev-parse",
        "git show",
        "git status",
        "grep",
        "head",
        "tail",
        "ls",
        "sort",
        "wc",
        "which",
        "du",
        "df"
      ],
      "deniedCommands": [
        "rm"
      ]
    }
  ]
}

최상위 키

유형설명
allowed_permissions문자열 배열자동으로 승인되는 도구 권한 그룹. 아래 권한 그룹 ID를 참조하세요.
permissionOptions객체 배열그룹별 옵션. 현재 read 그룹의 enableOutsideWorkspace를 지원합니다.
allowedExecutors객체 배열도구별 명령 허용 목록 및 거부 목록. 현재 execute_command에 적용됩니다.

권한 그룹 ID

그룹 ID포함된 도구
read파일 읽기, 디렉터리 목록, 검색
edit파일 쓰기, 생성, 삭제
execute터미널 및 셸 명령 실행
mcp모든 MCP 서버 도구 호출
skill스킬 활성화
todo할 일 목록 업데이트
subtask서브태스크 생성
subagent서브에이전트 생성
mode모드 전환

allowedExecutors 스키마

필드유형설명
toolIdstring구성할 도구. 현재 execute_command만 지원됩니다.
approvedCommands문자열 배열전체 명령 문자열의 접두사로 매칭될 때 자동으로 승인되는 명령.
deniedCommands문자열 배열자동 승인이 활성화된 경우에도 항상 거부되는 명령. approvedCommands보다 우선합니다.
이 주제는 어떤가요?