Enables ChatGPT Apps to connect to a corporate file management system, allowing AI agents to access file metadata and listings securely through OAuth 2.1 and a built-in approval workflow.
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., "@SDisk MCP File ManagerShow me a list of my files that are currently active."
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.
SDisk MCP File Manager (Monorepo)
기업 사용자별 파일을 업로드하고 결재를 통해 활성화한 뒤, MCP 서버로 ChatGPT Apps에 연결되는 구조입니다.
구성
apps/account-server(NestJS): SSO(SAML/OIDC) + OAuth 2.1 Authorization Serverapps/management-server(NestJS): 파일 업로드/조회, 결재 연동, 환경설정, Role 관리apps/mcp-server(Node): MCP 서버(파일 목록/메타데이터 제공)apps/web(Next.js): 파일 목록/업로드 UIpackages/shared: 공통 타입
파일 상태
PENDING: 결재중REJECTED: 반려ACTIVE: 결재완료(사용 가능)EXPIRED: 만료(재결재 필요)
OAuth 2.1 (ChatGPT Apps 연동 핵심)
ChatGPT Apps SDK의 OAuth 2.1 요구사항을 만족해야 합니다. 주요 포인트:
MCP 서버에
/.well-known/oauth-protected-resource제공Authorization Server에서 OAuth 메타데이터 제공(JWKS, PKCE
S256포함)resource파라미터를 Authorization/Token 요청에 유지ChatGPT 리다이렉트 URI 허용
허용해야 하는 리다이렉트 URI 예시:
https://chatgpt.com/connector_platform_oauth_redirecthttps://platform.openai.com/apps-manage/oauth
공식 가이드는 https://developers.openai.com/apps-sdk/build/auth를 참고하세요.
실행
Postgres 실행
환경변수 복사
의존성 설치
개발 서버 실행
Notes
SSO 연동은 고객사 IdP 정보에 따라
apps/account-server의 환경변수(SAML/OIDC)를 채워야 합니다.결재 API는
APPROVAL_API_BASE로 연동하며, 콜백은POST /files/approvals/callback입니다.만료일 계산은
ENV테이블의FILE_EXPIRY_DAYS값(기본 30일)로 계산됩니다.MCP 서버는 Streamable HTTP(
/mcp)로 구성되어 있습니다. ChatGPT Apps 등록 시https://<domain>/mcp형태로 등록하세요.