Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OpenFGA MCP Servercheck if user:alice has viewer relation for document:1 in prod"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
OpenFGA MCP Server
OpenFGA를 위한 Model Context Protocol (MCP) 서버입니다. Claude Code에서 OpenFGA 권한 관리 작업을 수행할 수 있습니다.
기능
스토어 관리: 스토어 목록 조회
모델 관리: Authorization Model 조회/배포
튜플 관리: 권한 관계(튜플) CRUD
권한 체크: Check, ListObjects, Expand
설치
환경 설정
방법 1: JSON 환경변수 (권장)
방법 2: 개별 환경변수
방법 3: 로컬 전용
Claude Code 설정
프로젝트별 설정 (.claude/settings.json)
글로벌 설정 (~/.claude.json)
사용 가능한 도구
도구 | 설명 |
| 스토어 목록 조회 |
| Authorization Model 조회 |
| Authorization Model 배포 (DSL 파일/문자열) |
| 튜플 조회 (필터 지원) |
| 단일 튜플 생성 |
| 여러 튜플 일괄 생성 |
| 튜플 삭제 |
| 권한 체크 |
| 접근 가능한 오브젝트 목록 |
| 권한 트리 확장 |
openfga_model_write
DSL 파일을 OpenFGA에 배포합니다.
요구사항: fga CLI 설치 필요 (설치 가이드)
사용 예시
자연어로도 요청 가능:
Hooks 연동 (선택)
모델 배포 후 설정 파일 자동 업데이트 등의 프로젝트별 작업이 필요하면 Claude Code Hook을 사용하세요:
Hook 스크립트는 stdin으로 JSON을 받습니다:
개발
라이선스
MIT