フタルキーMCP
Solana 上の Futarchy プロトコルと対話するためのサーバー実装。
セットアップ手順
リポジトリをクローンします。
依存関係をインストールします:
RPC URL を設定します。
src/server.tsを開く接続初期化でRPC URLを更新します: GXP3
以下を使用できます:
メインネット:
https://api.mainnet-beta.solana.comDevnet:
https://api.devnet.solana.comまたは独自の RPC プロバイダー URL (これのみで機能します)
開発サーバーを起動します。
利用可能なルート
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 コマンドの例:
カーソル用MCPサーバー
このプロジェクトには、Cursor がカスタム ツールを通じて Futarchy バックエンドと対話できるようにする MCP (Model Context Protocol) サーバーも含まれています。
MCPサーバーの設定
セットアップ スクリプトを実行して依存関係をインストールし、プロジェクトをビルドし、カーソルを構成します。
または手動で設定します。
依存関係をインストールしてプロジェクトをビルドする: GXP8
~/.cursor/mcp.jsonを開くか作成します。次の設定を追加します(必要に応じてパスを調整してください):GXP9
カーソルでMCPサーバーを使用する
カーソルのチャットでは次のツールを使用できます。
getDaos- Futarchy システムからすべての DAO を取得しますgetDao- IDで特定のDAOを取得するgetProposals- 特定のDAOのすべての提案を取得するgetProposal- IDで特定の提案を取得するcreateProposal- DAO の新しい提案を作成する
たとえば、Cursor のチャットでは次のように言うことができます。
MCP サーバーの詳細については、 src/mcp/README.mdを参照してください。
感情分析機能
Futarchy MCPサーバーに、DiscordとTwitterのデータから特定の提案に対する感情を分析する感情分析ツールが追加されました。この機能は、提案に対するコミュニティの感情を理解し、より情報に基づいた意思決定を行うのに役立ちます。
仕組み
感情分析ツールは、特定の提案に関するデータを Discord と Twitter から収集します。
自然言語処理技術を使用して感情を分析します。
感情をさまざまなカテゴリ (トークノミクス、プロトコル パラメーターなど) に分類します。
分析に基づいて、要約、重要なポイント、懸念事項を生成します。
結果は、フロントエンドで簡単に使用できる構造化された形式で表示されます。
回答例
使い方
MCP サーバーで感情分析ツールを使用するには、次のようにします。
これにより、指定された提案の感情分析が返されます。
Related MCP Servers
- AsecurityAlicenseAqualityA 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 -443MIT License
- -securityAlicense-qualityA Model Context Protocol server enabling AI agents to interact with the Solana blockchain for DeFi operations like checking balances, transferring tokens, executing swaps, and fetching price data.Last updated -722MIT License
- -securityFlicense-qualityA 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 -710
- -securityFlicense-qualityA Model Context Protocol server that provides onchain tools for Claude AI, allowing it to interact with the Solana blockchain through a standardized interface for operations like managing assets, executing token operations, and retrieving network information.Last updated -7