Repository navigation
feat: 코딩 에이전트용 MCP·직접 도구 CLI 연결부 추가 - #259
Open
seyoung4503 wants to merge 2 commits into
Open
seyoung4503 wants to merge 2 commits into
seyoung4503 wants to merge 2 commits into
Conversation
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.
#️⃣ Issue Number
📝 요약(Summary)
lang2sql-mcp)와 직접 도구 CLI(lang2sql-tools)를 추가합니다. 코딩 에이전트가 대화를 담당하며 내부agent_loop나 LLM provider는 실행하지 않습니다.ToolSpec,ToolRegistry,ToolResult, SQL safety/DB explorer, federation, memory service를 재사용합니다. 기존 CLI/Discord·core ports·도구 구현은 변경하지 않습니다.run_sql,explore_schema,term_custom,remember,recall_memory를 제공하며 설치·클라이언트 등록·제한 사항은docs/mcp.md와docs/tool_cli.md에 설명했습니다.💬 To Reviewers
HarnessContext를 그대로 조립합니다. session은 비어 있고 내부 LLM은 호출 시 오류를 내므로 하네스 구조를 재설계하지 않습니다. 기억 조회만 기존 서비스 위의 작은 도구로 추가했습니다. MCP와 CLI가tenancy/tool_runtime.py를 공유합니다.서버 한 개당 운영자가 정한 DB/사용자/조직/팀을 사용합니다. 모델 인자로 identity/admin을 바꿀 수 없습니다. 메타데이터 쓰기는 기존 권한을 유지합니다.
자동 system-prompt 주입은 실행되지 않으므로 클라이언트에
term_custom(list=true)/recall_memory사용을 안내합니다. 내부 LLM·문서 확인 흐름에 의존하는 도구는 노출하지 않습니다.SQL 결과는 기존 텍스트 형식이며 50행까지 표시합니다. 기억은 프로세스 메모리라 재시작하면 사라지고, 업무 정의/감사 로그만
--store로 지속됩니다. 실험용 그래프/별칭 검사 코드는 포함하지 않았습니다.stdio 실제 연결 테스트는 Python MCP client로 수행했습니다. Codex/Claude 등록 명령 형식은 각 로컬 CLI help로 확인했으며 실제 사용자 클라이언트 설정은 변경하지 않았습니다.
새 테스트 workflow는 Python 3.10/3.13에서 MCP extra를 설치해 전체 테스트를 실행합니다. 로컬 검증은 Python 3.13입니다.
직접 CLI는
list,call,batch, JSON 인자 파일/stdin, JSON 출력 및 종료 코드(0/1/2)를 지원합니다. batch는 전체 입력 검증 후 순차 실행하고 첫 도구 오류에서 중단합니다. 앞선 메타데이터 쓰기는 롤백하지 않습니다.toolsextra만 설치한 격리 환경에서 CLI 진입점을 확인했습니다. CLI subprocess SQL·실패 코드·기억 batch·실행 전 검증 테스트를 포함합니다.Oracle 지원 PR #257은 아직 승인 대기 중입니다. 이 PR은 Oracle 수정 코드를 중복 구현하지 않습니다.
Validation
git diff --check통과.bench/ecommerce_demo.pyexit 0. 이 데모는 기존 canned DB/FakeLLM을 사용하며 MCP 정확도 평가가 아닙니다.구현 원칙 검증
PR Checklist