Skip to main content
Glama

Blockscout MCP Server

Official
test_get_latest_block_real.py534 B
import pytest from blockscout_mcp_server.tools.block.get_latest_block import get_latest_block @pytest.mark.integration @pytest.mark.asyncio async def test_get_latest_block_integration(mock_ctx): result = await get_latest_block(chain_id="1", ctx=mock_ctx) assert hasattr(result, "data") assert hasattr(result.data, "block_number") assert hasattr(result.data, "timestamp") assert isinstance(result.data.block_number, int) assert isinstance(result.data.timestamp, str) assert result.data.block_number > 0

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/blockscout/mcp-server'

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