MCP-코드사반트
CodeSavant는 현재 진행 중인 프로젝트입니다.
CodeSavant는 코드 조작, 실행 및 버전 제어 기능을 제공하는 모델 컨텍스트 프로토콜(MCP) 서버입니다. 이를 통해 AI 비서가 변경 내역을 유지하면서 코드를 읽고, 쓰고, 실행할 수 있습니다.
특징
- 라인별 작업으로 코드 파일을 읽고 씁니다.
- 여러 프로그래밍 언어(Python, Node.js)로 코드 실행
- 제어된 환경에서 셸 명령 실행
- 버전 제어를 통해 코드 변경 사항을 추적하고 관리하세요
- 코드 파일 내에서 검색
- 이전 버전의 코드로 되돌리기
설치
- 저장소를 복제합니다.
지엑스피1
- 필요한 종속성을 설치하세요:
- Claude Desktop config.json에 서버 구성을 추가합니다.
디렉토리 구조
서버는 다음과 같은 디렉토리 구조를 생성하고 관리합니다.
도구 참조
자세한 사용법
1. 코드 파일 읽기
코드 파일의 내용을 읽고, 선택적으로 특정 섹션을 검색합니다.
응답:
2. 코드 파일 쓰기
코드 파일의 특정 줄을 작성하거나 업데이트합니다.
응답:
3. 코드 기록을 가져오세요
코드 파일의 변경 내역을 가져옵니다.
응답:
4. 실행_코드_명령
코드 관련 셸 명령을 실행합니다.
응답:
5. 실행 코드
지정된 언어로 코드를 실행합니다.
응답:
6. 버전으로 되돌리기
코드 파일을 특정 버전으로 되돌립니다.
응답:
7. 코드 파일 줄 읽기
코드 파일에서 특정 줄을 읽습니다.
응답:
오류 처리
서버는 다음 형식으로 자세한 오류 응답을 제공합니다.
오류 유형은 다음과 같습니다.
CodeFileError
: 파일 작업 오류CodeValidationError
: 코드 검증 오류CodeExecutionError
: 코드 실행 오류
언어 지원
현재 코드 실행에 지원되는 언어:
- Python(시스템 Python 인터프리터 사용)
- Node.js(node 명령 사용)
각 언어를 실행하면 작업 공간 디렉토리에 임시 파일이 생성되고 적절한 인터프리터로 실행됩니다.
기여하다
- 저장소를 포크하세요
- 기능 브랜치를 생성하세요
- 변경 사항을 커밋하세요
- 지점으로 밀어 넣기
- 새로운 풀 리퀘스트 만들기
특허
이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여되었습니다. 자세한 내용은 라이선스 파일을 참조하세요.
작가
토드 울븐 - ( https://github.com/tolven )
감사의 말
- Anthropic의 MCP(Model Context Protocol)로 구축됨
- Anthropic의 Claude와 함께 사용하도록 개발됨
Related MCP Servers
- AsecurityAlicenseAqualityAllows AI assistants to list tables, read data, and execute SQL queries through a controlled interface, making database exploration and analysis safer and more structured.Last updated -1580PythonMIT License
- -securityAlicense-qualityServes as a guardian of development knowledge, providing AI assistants with curated access to latest documentation and best practices.Last updated -48752TypeScriptMIT License
- -securityFlicense-qualityEnables AI assistants to interact with Metabase databases and dashboards, allowing users to list and execute queries, access data visualizations, and interact with database resources through natural language.Last updated -25JavaScript
- AsecurityAlicenseAqualityProvides tools for interacting with Targetprocess, a project management and agile planning platform, enabling AI assistants to search, create, and update project entities with proper validation.Last updated -54TypeScriptMIT License