Repository navigation
feat: MCP 쓰기 권한 옵션·용어 없는 조회·컬럼 설명 저장 (#296 데모) - #364
Merged
seyoung4503 merged 1 commit intoNov 27, 2026
Merged
seyoung4503 merged 1 commit into
seyoung4503 merged 1 commit into
Conversation
…d column notes for MCP - --allow-write: run_sql passes one INSERT/UPDATE/DELETE/MERGE/DDL statement; GRANT and multi-statement stay blocked, DB grants still decide. Writes commit and report rows_affected; row limit applies only to reads. - resolve_business_terms accepts an empty list for requests with no business term (row counts, table listing, spelled-out table changes); missing terms still return DEFINITION_REQUIRED. - save_column_notes (admin): stores user-confirmed column descriptions under the existing enriched_desc keys that explore_schema overlays, without an internal LLM. - Oracle: map ORA-41900 to the access error, and look up unquoted lowercase table names case-insensitively in describe_table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#319 위에 올리는 데모용 기능입니다. 발표 데모(Codex + Lang2SQL MCP + Oracle)에서 권한별 CRUD, 쉬운 조회,
/init셋업을 보여주기 위해 필요합니다.변경
--allow-write(MCP 등록 옵션): 켠 연결만run_sql이 INSERT/UPDATE/DELETE/MERGE/CREATE/DROP/ALTER/TRUNCATE 한 문장을 실행합니다. GRANT와 여러 문장은 계속 차단합니다. 실제 허용 범위는 DB 계정 권한이 정합니다. 쓰기는 커밋하고rows_affected를 돌려주며, 행 제한(FETCH/LIMIT)은 조회에만 붙습니다.resolve_business_terms가 빈 목록을 받습니다(건수 세기, 테이블 목록, 사용자가 직접 적은 테이블 변경). 정의 없는 용어가 있으면 기존처럼DEFINITION_REQUIRED로 멈춥니다. 영수증은 여전히 1회용입니다.save_column_notes(admin 전용): 사용자가 확인한 컬럼 설명을 기존enriched_desc:<table>:<column>키에 저장합니다.explore_schema가 이미 읽는 키이고, 내부 LLM은 쓰지 않습니다. DB COMMENT가 있으면 COMMENT가 우선합니다.describe_table에 소문자 테이블 이름을 넘기면 못 찾던 문제(대소문자 구분 이름으로 해석됨)를 고쳤습니다.검증
pytest227 passed, 1 skipped (Oracle 메타데이터 URL 미설정)L2S_CO_SALES): SELECT 1950건, CREATE·DELETE는BLOCKED by whitelistL2S_SANDBOX, 자기 스키마 쓰기 + CO SELECT): CREATE→INSERT→UPDATE→SELECT→DELETE→DROP 성공,CO.ORDERSDELETE는 Oracle 권한 오류, GRANT는 차단save_column_notes저장 후 새 세션의explore_schema에 설명 표시🤖 Generated with Claude Code