Solana MCP Wallet Agent API

by MindLayer25
MIT License

Integrations

  • Manages environment variables for configuration including port settings, environment type, Solana RPC URL, and wallet private keys.

  • Serves as the foundation for this API server, providing HTTP routing and middleware capabilities for all wallet operations.

  • Provides version control for the project, supporting the contribution workflow outlined in the README.

Solana MCP ウォレットエージェント API

Solanaブロックチェーンウォレット操作のための完全なExpress API。このAPIは、Solanaウォレットの管理、SOLの転送、SPLトークンの操作機能を提供します。

特徴

  • 🔐ウォレット管理:Solanaウォレットの作成と管理
  • 💰 SOL 転送: ウォレット間で SOL を転送する
  • 🪙トークン管理:SPLトークンの作成、発行、転送
  • 📚 API ドキュメント: インタラクティブな Swagger ドキュメント
  • 🔄エラー処理:堅牢なエラー処理システム
  • 🧪開発準備完了:セットアップと使用が簡単

前提条件

  • Node.js (v16+)
  • npmまたはyarn
  • [オプション] 追加テスト用の Solana CLI ツール

インストール

  1. リポジトリをクローンします。
git clone https://github.com/MindLayer25/Wallet-MCP-Agent.git cd Wallet-MCP-Agent
  1. 依存関係をインストールします:
npm install
  1. ルート ディレクトリに次の内容の.envファイルを作成します。
PORT=3000 NODE_ENV=development # Solana connection (devnet by default) SOLANA_RPC_URL=https://api.devnet.solana.com # For your wallet - get this from Solana keygen or a wallet export (JSON format) WALLET_PRIVATE_KEY=

発達

開発サーバーを起動します。

npm run dev

ホットリロードが有効になっている状態で、サーバーはhttp://localhost:3000で起動します。

ビルドと生産

プロジェクトをビルドします。

npm run build

本番サーバーを起動します。

npm start

APIドキュメント

サーバーが実行したら、次の Swagger ドキュメントにアクセスします。

http://localhost:3000/api-docs

ドキュメントには、リクエスト/レスポンスの例とともに、利用可能なすべてのエンドポイントの完全な概要が記載されています。

APIエンドポイント

ウォレットエンドポイント

方法終点説明
役職/api/wallet新しいウォレットを作成する
得る/api/wallet/:publicKeyウォレット情報を取得する
役職/api/wallet/transferSOLを別のウォレットに転送する

トークンエンドポイント

方法終点説明
役職/api/wallet/token新しいSPLトークンを作成する
役職/api/wallet/token/mintアドレスにトークンを発行する
役職/api/wallet/token/transferトークンを別のウォレットに転送する

セキュリティに関する考慮事項

  • 重要:このプロジェクトでは、鍵に環境変数を使用します。本番環境では、適切な鍵管理サービスを使用してください。
  • クライアント側のコードで秘密鍵を公開しないでください。
  • 本番環境では、追加の認証および承認メカニズムの実装を検討してください。

Solanaの統合

この API は Solana ブロックチェーンと対話して次のことを行います。

  1. ウォレットの作成と管理
  2. ウォレット間でSOLを転送する
  3. 新しいSPLトークンを作成する
  4. アドレスにトークンを発行する
  5. ウォレット間でトークンを転送する

エラー処理

API には、次の機能を備えた包括的なエラー処理が含まれています。

  • 開発モードでの詳細なエラーメッセージ
  • 本番環境でエラーメッセージをサニタイズ
  • 適切なHTTPステータスコード
  • 操作エラーとプログラミングエラーの区別

貢献

  1. リポジトリをフォークする
  2. 機能ブランチを作成します( git checkout -b feature/amazing-feature
  3. 変更をコミットします ( git commit -m 'Add some amazing feature' )
  4. ブランチにプッシュする ( git push origin feature/amazing-feature )
  5. プルリクエストを開く

ライセンス

このプロジェクトは ISC ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。

サポート

サポートについては、リポジトリに問題を作成するか、リポジトリの管理者に問い合わせてください。

-
security - not tested
A
license - permissive license
-
quality - not tested

Solana ブロックチェーンの完全なウォレット管理機能を提供し、ユーザーがウォレットを作成したり、SOL を転送したり、RESTful API を介して SPL トークンを操作したりできるようにします。

  1. 特徴
    1. 前提条件
      1. インストール
        1. 発達
          1. ビルドと生産
            1. APIドキュメント
              1. APIエンドポイント
                1. ウォレットエンドポイント
                2. トークンエンドポイント
              2. セキュリティに関する考慮事項
                1. Solanaの統合
                  1. エラー処理
                    1. 貢献
                      1. ライセンス
                        1. サポート

                          Related MCP Servers

                          • -
                            security
                            A
                            license
                            -
                            quality
                            A Model Context Protocol server that provides Claude with comprehensive access to Solana blockchain data via the Helius API, enabling operations like checking wallet balances, retrieving blockchain information, and interacting with tokens and NFTs.
                            Last updated -
                            119
                            8
                            TypeScript
                            MIT License
                            • Apple
                            • Linux
                          • -
                            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 -
                            59
                            72
                            Apache 2.0
                            • Linux
                            • Apple

                          View all related MCP servers

                          ID: 6p1b2c9qb6