Repository navigation
FEAT: 내장 에이전트가 외부 MCP 서버를 도구로 쓰기 - #80
Merged
Merged
Conversation
config.toml의 [mcp.<이름>] stdio 서버를 처음 쓸 때 띄워 두고, 도구를 mcp__<서버>__<도구>로 '코드 작성' 에이전트에 보임. 부를 때마다 승인 카드를 거치고 auto_approve에 있는 도구만 바로 실행함. 신뢰한 폴더에서만 쓰고, 띄우지 못한 서버는 대화에 알리고 계속함. 설정이 바뀌면 다시 띄우고 프로젝트를 바꾸면 닫음. 외부 에이전트에도 같은 서버를 넘김. 설정 스냅숏에서 서버 환경변수 값은 뺌.
설정에 MCP 서버 항목을 넣음. 서버마다 연결 상태와 도구 목록을 보이고, 도구를 눌러 승인 없이 실행할지 정하며, 켜기·끄기·삭제·추가를 할 수 있음. 채팅의 도구·승인 카드는 MCP 도구를 '서버 · 도구'로 보이고, 실행한 승인 카드는 '적용됨' 대신 '실행함'으로 표시함. Closes #76
가짜 MCP 서버(티켓 조회)로 도구가 모델에 보이는지, 승인 전에는 실행되지 않고 승인하면 결과로 답하는지, 설정 화면의 상태와 '승인 없이' 저장을 확인함.
README에 MCP 서버를 넣는 법과 설정 예를 적음.
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.
무엇
지금까지 Lantern은 MCP 서버 역할만 했음. 이제 내장 '코드 작성' 에이전트가 사용자의 MCP 서버(이슈 트래커, DB, 브라우저 등) 도구를 씀.
config.toml의[mcp.<이름>] command/args/env/auto_approve/enabled(stdio). 설정 화면에서도 추가·삭제·켜기·끄기mcp__<서버>__<도구>로 모델에 보임 (공급자 이름 규칙 64자에 맞춤).tools/list페이지·list_changed처리, 서버의roots/list에는 프로젝트 폴더로 답함auto_approve)tools에mcp가 있어야 함 (내장 '코드 작성'에는 있음, '질문'에는 없음)mcpServers로 넘김확인
Closes #76