def get_counter() -> str:
    """Resource that changes on every access for testing subscriptions."""
    global counter
    counter += 1
    return f"Current counter value: {counter}"
Resource that changes on every access for testing subscriptions.
llama-index-integrations/tools/llama-index-tools-mcp/tests/server.py