MCP 시간 서버
개요
MCP 시간 서버는 다양한 시간대에 걸쳐 고급 시간 관련 유틸리티를 제공하도록 설계된 정교한 Python 기반 마이크로서비스입니다. 현재 시간을 검색하고 다양한 글로벌 시간대 간의 시간을 변환하는 강력한 기능을 제공합니다.
프로젝트 세부 정보
버전 : 0.1.1
Python 호환성 : Python 3.11+
특징
현재 시간 검색 : 모든 IANA 시간대의 현재 시간을 가져옵니다.
시간대 변환 : 서로 다른 시간대 간의 시간 변환
종합적 검증 : Pydantic 모델을 사용한 강력한 입력 검증
비동기 서버 아키텍처 : 효율적인 성능을 위해 asyncio로 구축됨
유연한 구성 : 환경 변수 및 구성 파일을 통해 구성 가능
종속성
핵심 종속성:
mcp (>=1.6.0)
피단틱 (>=2.11.2)
PyYAML (>=6.0.2)
파이즈 (>=0.4.3)
개발 종속성:
파이테스트(>=8.3.5)
설치
필수 조건
Python 3.11 이상
씨
(선택사항) 가상 환경 권장
PyPI에서 설치
지엑스피1
소스에서 설치
저장소를 복제합니다.
가상 환경 만들기:
패키지를 설치하세요:
개발 설치
개발을 설정하려면:
서버 실행
명령줄 인터페이스
프로그래밍 방식 사용
환경 변수
NO_BOOTSTRAP
: 구성 요소 부트스트래핑을 비활성화하도록 설정합니다.다른 구성 옵션은 구성 파일에서 설정할 수 있습니다.
사용 가능한 도구
1. 현재 시간 가져오기
입력 :
timezone
: IANA 시간대 이름(예: 'America/New_York')
예 :
반품 :
지정된 시간대의 현재 시간
시간대 세부 정보
일광 절약 시간제(DST) 상태
2. 시간 변환
입력 :
source_timezone
: 소스 시간대(IANA 형식)time
: HH:MM(24시간) 형식의 시간target_timezone
: 대상 시간대(IANA 형식)
예 :
반품 :
소스 시간 세부 정보
목표 시간 세부 정보
시간대 간 시간 차이
개발
코드 포맷팅
검정색은 코드 서식에 사용됩니다.
isort는 가져오기 정렬에 사용됩니다.
줄 길이는 88자로 설정되었습니다.
테스트 실행
기여하다
저장소를 포크하세요
기능 브랜치를 생성합니다(
git checkout -b feature/AmazingFeature
)코드가 포맷팅과 테스트를 통과하는지 확인하세요
변경 사항을 커밋합니다(
git commit -m 'Add some AmazingFeature'
)브랜치에 푸시(
git push origin feature/AmazingFeature
)풀 리퀘스트 열기
특허
Related MCP Servers
- -securityFlicense-qualityAn MCP server providing timezone conversions and time-related operations via RESTful API endpoints, featuring comprehensive error handling and timezone database integration.Last updated -
- -securityAlicense-qualityA TypeScript server that provides time-related tools through the Model Context Protocol, allowing users to get current time in various timezones and convert times between different IANA timezones.Last updated -MIT License
- -securityFlicense-qualityAn MCP server that allows users to get global time information via Interzoid's GetGlobalTime API, enabling access to time data across different regions through natural language.Last updated -
- -securityAlicense-qualityA Model Context Protocol server that provides the current time in any timezone with customizable formatting, allowing AI assistants to access accurate time information.