Time Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Adheres to the Contributor Covenant code of conduct for project participation and contribution guidelines.

  • Uses Pytest for running tests on the time server implementation.

  • Built with Python 3.10+, providing a type-safe implementation for time-related operations.

タイムサーバー

モデル コンテキスト プロトコル標準に基づいて構築された、タイムゾーン変換および時間関連の操作用の MCP サーバー。

目次

特徴

  • 任意のタイムゾーンの現在の時刻を取得します
  • タイムゾーン間の時間を変換する
  • MCPプロトコル標準に準拠
  • 型安全なPython実装
  • RESTful APIエンドポイント
  • 包括的なエラー処理
  • タイムゾーンデータベース統合

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop のタイム サーバーを自動的にインストールするには:

npx -y @smithery/cli install @clssck/mcp-time-server --client claude

手動インストール

pip install .

使用法

サーバーを起動します。

python -m time_server

APIドキュメント

ツール

get_current_time

特定のタイムゾーンの現在の時刻を取得する

パラメータ:

  • timezone : 文字列 - IANAタイムゾーン識別子(例:"America/New_York")

戻り値:

  • ISO 8601形式の現在の時刻

convert_time

タイムゾーン間の時間を変換する

パラメータ:

  • time : 文字列 - ISO 8601形式で変換する時間
  • from_timezone : 文字列 - ソースタイムゾーン
  • to_timezone : 文字列 - ターゲットタイムゾーン

戻り値:

  • ISO 8601形式で変換された時間

発達

開発依存関係をインストールします。

pip install -e .[dev]

テストを実行します:

pytest

コードの品質を確認する:

ruff check . mypy src

行動規範

このプロジェクトは、貢献者行動規範に準拠しています。参加される方は、この規範を遵守していただく必要があります。

ライセンス

マサチューセッツ工科大学

-
security - not tested
F
license - not found
-
quality - not tested

包括的なエラー処理とタイムゾーン データベース統合を特徴とする、RESTful API エンドポイントを介してタイムゾーン変換と時間関連の操作を提供する MCP サーバーです。

  1. Table of Contents
    1. Features
      1. Installation
        1. Installing via Smithery
        2. Manual Installation
      2. Usage
        1. API Documentation
          1. Tools
        2. Development
          1. Code of Conduct
            1. License
              ID: lo6ocr3732