Tecton MCP Server

Official

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Integrations

  • Utilizes Python as the runtime environment with specific version requirements (>=3.10)

Tecton MCP サーバー

これは、Tecton クラスターと対話し、機能ストアを管理し、Tecton CLI コマンドを実行するための一連のツールを提供する、Tecton 用の Anthropic の Mission Control Protocol (MCP) サーバーです。

特徴

サーバーは次の MCP ツールを提供します。

CLIツール

  • tecton_cli_help : 利用可能な Tecton CLI コマンドに関する構造化されたヘルプ情報を取得します。
  • tecton_cli_execute : Tecton CLI コマンドを実行する

機能ストア管理

  • list_workspaces : 接続されたTectonクラスター内のすべてのワークスペースを一覧表示します
  • list_feature_views : すべてのフィーチャビューとそのメタデータを一覧表示する
  • list_feature_services : すべてのフィーチャ サービスとそのメタデータを一覧表示します
  • list_transformations : すべての変換とそのメタデータを一覧表示する
  • list_data_sources : すべてのデータソースとそのメタデータを一覧表示する
  • list_entities : すべてのエンティティとそのメタデータを一覧表示します

設定ツール

  • get_feature_service_configuration : フィーチャ サービスの詳細な構成を取得します。
  • get_feature_view_configuration : フィーチャビューの詳細な構成を取得する
  • get_feature_view_code : フィーチャビューのPythonコード定義を取得する

設定

前提条件

  • Python >=3.10 または互換バージョン
  • Tecton SDK をインストールして構成しました
  • ミッションコントロールプロトコル(MCP)がインストールされている

インストール

  1. 必要な Python パッケージをインストールします。
pip install httpx click cloudpickle
  1. Tecton SDK をインストールします。
pip install tecton
  1. MCP をインストールします。
pip install mcp

構成

MCP サーバー構成に以下を追加します。

{ "mcpServers": { "tecton": { "command": "/path/to/python", "args": [ "--directory", "/path/to/tecton", "run", "tecton.py" ], "env": { "PYENV_VERSION": "3.9.11" } } } }

/path/to/python/path/to/tecton実際のパスに置き換えます。

使用法

サーバーの起動

  1. まず、Tecton が設定され、ログインしていることを確認します。
tecton login
  1. 次に、次のコマンドを使用してサーバーを実行します。
python tecton.py

サーバーが起動し、MCP コマンドをリッスンします。

ツールの使用

すべてのツールはMCPインターフェースから利用できます。以下に使用例をいくつか示します。

  1. すべてのワークスペースを一覧表示します。
workspaces = await list_workspaces()
  1. 機能ビュー構成を取得します。
config = await get_feature_view_configuration(name="my_feature_view", workspace="my_workspace")
  1. Tecton CLI コマンドを実行します。
result = await tecton_cli_execute(command="workspace list")

エラー処理

サーバーには包括的なエラー処理が含まれています。

  • すべてのツールは失敗した場合に空のリストまたは空の文字列を返します
  • エラーは_err関数を使用して記録されます
  • 一般的な操作は_log関数を使用して記録されます

依存関係

  • コア Python:
    • 入力(組み込み)
    • httpx
    • クリック
    • クラウドピクル
  • テクトン:
    • テクトン
    • テクトン._内部
    • テクトン.cli.cli
    • テクトンコア
    • テクトンプロト
  • MCP:
    • mcp.server.fastmcp
  • 地元:
    • utils (_err、_log、run_command を含む)

貢献

問題や機能強化のリクエストをお気軽にお寄せください。

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

Tecton クラスターと対話し、機能ストアを管理し、Mission Control Protocol を通じて Tecton CLI コマンドを実行するためのツール セットを提供します。

  1. Features
    1. CLI Tools
    2. Feature Store Management
    3. Configuration Tools
  2. Setup
    1. Prerequisites
    2. Installation
    3. Configuration
  3. Usage
    1. Starting the Server
    2. Using the Tools
  4. Error Handling
    1. Dependencies
      1. Contributing
        ID: tox4n9oqin