qng-mcp について
qng-mcpはqng向けのMCPサーバーです。READMEにはstdioとSSEの接続方式、最新ブロック数を取得する例が記載され、設定による機能拡張にも対応します。
主な機能
- 01stdio接続モード
- 02SSE接続モード
- 03qngツールへのアクセス
- 04拡張可能な設定
活用シーン
- 01最新ブロック数の確認
- 02MCPホストからのqng接続
MCP 対応
MCPクライアントにqngの機能を提供し、stdioとSSEの接続方式に対応します。例では最新ブロック数を取得するツールが示されています。
設定
ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。
ツール
ツール一覧はまだ取得されていません
ローカルサーバーのツールはマシン上で起動して初めて取得できます。メンテナーはまだツール一覧を提供していません。
詳細
qng-mcp
qng 用の MCP サーバーは、Model Context Protocol(MCP)プロトコルをサポートします。
mcphost をコンパイルする
- https://github.com/mark3labs/mcphost を参照してください
stdio モードを使用する
{
"mcpServers": {
"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"qng_mcp_server",
"-rpc",
"http://127.0.0.1:8545"
]
}
}
}
{
"mcpServers": {
"qngserver": {
"command": "./qng_server/qng_server.exe",
"args": [
"-rpc",
"http://127.0.0.1:8545/"
]
}
}
}
.\mcphost.exe -m ollama:qwen2.5:3b --config .\conf\stdio.json --debug
sse モードを使用する
{
"mcpServers": {
"qngserver": {
"url": "http://localhost:8080/sse"
}
}
}
# start server
.\qng_server -t sse
.\mcphost.exe -m ollama:qwen2.5:3b --config .\conf\sse.json --debug
2025/04/26 09:21:20 INFO Model loaded provider=ollama model=qwen2.5:3b
2025/04/26 09:21:20 INFO Initializing server... name=qngserver
2025/04/26 09:21:20 INFO Server connected name=qngserver
2025/04/26 09:21:20 INFO Tools loaded server=qngserver count=3
You: qng latest block count
2025/04/26 09:21:36 INFO 🔧 Using tool name=qngserver__get_block_count
Assistant:
The total number of qNG blocks in the latest zone is 9,590,345. Is there anything else you need to know about this information?
You: qng tx count of block order 1590344
2025/04/26 09:22:21 INFO 🔧 Using tool name=qngserver__get_block_by_order
Assistant:
The transaction count in the qNG block with order 1590344 is 1. This block contains only one transaction, which is a coinbase transaction that includes an asset transfer of 120,000,000,000 MEER tokens. Is there anything else you would like to know about this
block?
You: qng stateroot detail of order 1590344
2025/04/26 09:23:00 INFO 🔧 Using tool name=qngserver__get_block_stateroot
Assistant:
For the qNG block with order 1590344, the stateroot details are as follows:
• Hash: c5c045912d19ea72ec84dab22772a5307b37983154bd494f0cf94b402cee2e32
• Order: 1590344
• Height: 1584355
• Valid: True
• EVM State Root: 0xadd9acd10c9fd3a52956fc03d202867bbb8d19a5e8649e9047e751c4e6e444ce
• EVM Height: 95296
• EVM Head: 0x35c13f5238f51511f85d8c63f3a71683fdcd3351c14b3748fb6aaa5e1d827038
• State Root: 920bf0c285558944cae4b8f4745a2453235d714fb3c6e5d3ced7b05ada08ee52
Is there anything specific you would like to know about these details?
さらに多くの機能が必要な場合は、config.json を拡張してください
コメント
Markdown 対応
AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。