MPC Tally API 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

  • Used as the underlying technology for building the API server that interacts with the Tally API

  • Used as the programming language for building the MCP server that interacts with the Tally API

MPC タリー API サーバー

Tally APIと連携するためのモデルコンテキストプロトコル(MCP)サーバー。このサーバーにより、AIエージェントはDAOに関する情報(ガバナンスデータ、提案、メタデータなど)を取得できます。

特徴

  • 人気度や調査状況で並べ替えたDAOの一覧
  • ソーシャルリンクやガバナンス情報を含む包括的なDAOメタデータを取得します
  • 大規模な結果セットを処理するためのページネーションのサポート
  • TypeScriptとGraphQLで構築
  • Bunのテストランナーによる完全なテストカバレッジ

インストール

# Clone the repository git clone https://github.com/yourusername/mpc-tally-api-server.git cd mpc-tally-api-server # Install dependencies bun install # Build the project bun run build

構成

  1. ルート ディレクトリに.envファイルを作成します。
TALLY_API_KEY=your_api_key_here
  1. TallyからAPIキーを取得する

⚠️セキュリティに関する注意: API キーを安全に保管してください。

  • .envファイルをコミットしないでください
  • ログやエラーメッセージにAPIキーを公開しないでください
  • APIキーが公開された場合はローテーションする
  • 設定には環境変数を使用する

使用法

サーバーの実行

# Start the server bun run start # Development mode with auto-reload bun run dev

クロードデスクトップ構成

Claude Desktop 構成に以下を追加します。

{ "tally": { "command": "node", "args": [ "/path/to/mpc-tally-api-server/build/index.js" ], "env": { "TALLY_API_KEY": "your_api_key_here" } } }

利用可能なスクリプト

  • bun run clean - ビルドディレクトリをクリーンアップする
  • bun run build - プロジェクトをビルドする
  • bun run start - 構築したサーバーを実行する
  • bun run dev - 自動リロード付きの開発モードで実行
  • bun test - テストを実行する
  • bun test --watch - ウォッチモードでテストを実行する
  • bun test --coverage - カバレッジ付きテストを実行する

API関数

サーバーは次の MCP 機能を公開します。

リスト_daos

指定された基準でソートされた DAO を一覧表示します。

パラメータ:

  • limit (オプション): 返される DAO の最大数 (デフォルト: 20、最大: 50)
  • afterCursor (オプション): ページ区切りのカーソル
  • sortBy (オプション): DAO の並べ替え方法 (デフォルト: 人気順)
    • オプション: 「id」、「name」、「explore」、「popular」

ライセンス

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

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

TypeScript と GraphQL で構築されたモデル コンテキスト プロトコル (MCP) を使用して、AI エージェントが Tally API と対話して DAO ガバナンス データ、提案、メタデータにアクセスできるようにするサーバー。

  1. Features
    1. Installation
      1. Configuration
        1. Usage
          1. Running the Server
          2. Claude Desktop Configuration
        2. Available Scripts
          1. API Functions
            1. list_daos
          2. License
            ID: xqt9xzqlm6