#!/usr/bin/env python3
"""Test NIX query using updated client"""
import asyncio
import os
from src.nix_mcp.client import NixClient
async def test_global_config():
"""Test querying global config for ETH testnet"""
# Set environment variables for rodeos and nodeos APIs
os.environ["RODEOS_API"] = "http://rodeos-wasm-ql-blockchain-atoms-b1fs-dev.service.c-sin-g-atoms-b1fs-dev.int.b1fs.net:8880"
os.environ["NODEOS_API"] = "http://localhost:8888"
client = NixClient()
try:
print("Querying ETH testnet global config...")
result = await client.query_global_configs(blockchain="ETH", network="testnet")
print("Success! Global config:")
print(result)
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
asyncio.run(test_global_config())
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/haiqiubullish/nix-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server