Skip to main content
Glama

Futarchy MCP Server

フタルキーMCP

Solana 上の Futarchy プロトコルと対話するためのサーバー実装。

セットアップ手順

  1. リポジトリをクローンします。
git clone <repository-url> cd futarchy-mcp
  1. 依存関係をインストールします:
npm install
  1. RPC URL を設定します。
    • src/server.tsを開く
    • 接続初期化でRPC URLを更新します: GXP3
    • 以下を使用できます:
      • メインネット: https://api.mainnet-beta.solana.com
      • Devnet: https://api.devnet.solana.com
      • または独自の RPC プロバイダー URL (これのみで機能します)
  2. 開発サーバーを起動します。
npm run dev

利用可能なルート

DAOルート

  • GET /daos - すべてのDAOを取得する
  • GET /daos/:id - IDで特定のDAOを取得する
  • GET /daos/:id/proposals - 特定のDAOのすべての提案を取得する
  • POST /daos/:id/proposals - DAO の新しい提案を作成します (DAO 作成ルートが存在しないため、現時点ではテストされていません)
    • 体:
      { "descriptionUrl": "string", "baseTokensToLP": "number", "quoteTokensToLP": "number" }

提案ルート

  • GET /proposals/:id - IDで特定の提案を取得する

テスト

Postmanやcurlなどのツールを使用してルートをテストできます。サーバーはデフォルトでポート9000で動作します。

curl コマンドの例:

# Get all DAOs curl http://localhost:9000/daos # Get a specific DAO curl http://localhost:9000/daos/<dao-address> # Get proposals for a DAO curl http://localhost:9000/daos/<dao-address>/proposals # Create a new proposal curl -X POST http://localhost:9000/daos/<dao-address>/proposals \ -H "Content-Type: application/json" \ -d '{ "descriptionUrl": "https://example.com/proposal", "baseTokensToLP": 1000, "quoteTokensToLP": 1000 }'

カーソル用MCPサーバー

このプロジェクトには、Cursor がカスタム ツールを通じて Futarchy バックエンドと対話できるようにする MCP (Model Context Protocol) サーバーも含まれています。

MCPサーバーの設定

  1. セットアップ スクリプトを実行して依存関係をインストールし、プロジェクトをビルドし、カーソルを構成します。
chmod +x setup.sh ./setup.sh
  1. または手動で設定します。
    • 依存関係をインストールしてプロジェクトをビルドする: GXP8
    • ~/.cursor/mcp.jsonを開くか作成します。
    • 次の設定を追加します(必要に応じてパスを調整してください):GXP9

カーソルでMCPサーバーを使用する

カーソルのチャットでは次のツールを使用できます。

  1. getDaos - Futarchy システムからすべての DAO を取得します
  2. getDao - IDで特定のDAOを取得する
  3. getProposals - 特定のDAOのすべての提案を取得する
  4. getProposal - IDで特定の提案を取得する
  5. createProposal - DAO の新しい提案を作成する

たとえば、Cursor のチャットでは次のように言うことができます。

Use the getDaos tool to retrieve a list of all DAOs from the futarchy-routes backend.

MCP サーバーの詳細については、 src/mcp/README.mdを参照してください。

感情分析機能

Futarchy MCPサーバーに、DiscordとTwitterのデータから特定の提案に対する感情を分析する感情分析ツールが追加されました。この機能は、提案に対するコミュニティの感情を理解し、より情報に基づいた意思決定を行うのに役立ちます。

仕組み

  1. 感情分析ツールは、特定の提案に関するデータを Discord と Twitter から収集します。
  2. 自然言語処理技術を使用して感情を分析します。
  3. 感情をさまざまなカテゴリ (トークノミクス、プロトコル パラメーターなど) に分類します。
  4. 分析に基づいて、要約、重要なポイント、懸念事項を生成します。
  5. 結果は、フロントエンドで簡単に使用できる構造化された形式で表示されます。

回答例

{ "proposalId": "F3hsZzWinRAHbr6CUxdkUFBCH8qNk6Mi9Zfu3PMX49BC", "sentimentScore": -0.8, "primaryCategory": "Tokenomics", "categories": [ { "name": "Tokenomics", "score": 0.4 }, { "name": "Protocol Upgrades", "score": 0.3 }, { "name": "Partnerships Integrations", "score": 0.2 }, { "name": "Protocol Parameters", "score": 0.1 } ], "summary": "The proposal to launch a new Horizon token for the Aave ecosystem has faced significant backlash from the community...", "keyPoints": [ "The proposed token launch is seen as unnecessary and potentially harmful to the Aave token and community.", "The revenue-sharing model is perceived as frontloaded and unfair, favoring early years when adoption and revenue may be low.", "There is a desire to maintain the Aave token as the primary governance and utility token for the ecosystem." ], "concerns": [ "Dilution of the Aave token's value and attention.", "Misalignment of incentives with the proposed revenue-sharing model.", "Creation of a separate entity that could compete with the Aave ecosystem.", "Lack of transparency and community involvement in the decision-making process." ], "sources": { "discord": true, "twitter": true } }

使い方

MCP サーバーで感情分析ツールを使用するには、次のようにします。

const result = await mcp_futarchy_routes_getProposalSentiment({ proposalId: "F3hsZzWinRAHbr6CUxdkUFBCH8qNk6Mi9Zfu3PMX49BC" });

これにより、指定された提案の感情分析が返されます。

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

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.

Solana 上の Futarchy プロトコルとのやり取りを可能にするサーバー実装。これにより、ユーザーは API エンドポイントと Cursor のチャット インターフェースの両方を通じて DAO と提案を管理できます。

  1. セットアップ手順
    1. 利用可能なルート
      1. DAOルート
      2. 提案ルート
    2. テスト
      1. カーソル用MCPサーバー
        1. MCPサーバーの設定
        2. カーソルでMCPサーバーを使用する
      2. 感情分析機能
        1. 仕組み
        2. 回答例
        3. 使い方

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        A server that enables interaction with the Solana blockchain, providing access to over 40 Solana RPC methods including getting balances, transaction details, block information, and sending transactions.
        Last updated -
        Python
        MIT License
        • Apple
      • A
        security
        F
        license
        A
        quality
        A server that provides simple RPC endpoints for common Solana blockchain operations, allowing users to check balances, get account information, and transfer SOL between accounts.
        Last updated -
        5
        TypeScript
      • -
        security
        A
        license
        -
        quality
        A Model Context Protocol server that enables Claude AI to interact with the Solana blockchain through a standardized interface, providing tools for transactions, account queries, and wallet management.
        Last updated -
        219
        79
        Apache 2.0
        • Linux
        • Apple
      • -
        security
        F
        license
        -
        quality
        A server that enables interaction with the Solana blockchain using your own private key, supporting operations like getting wallet information, checking balances, and transferring SOL.
        Last updated -
        219
        6
        JavaScript

      View all related MCP servers

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/TanmayDhobale/FutarchyMCPServer'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server