"""Shared fixtures for kaggle-mcp tests."""

import pytest


class MockMCP:
    """Captures tool functions registered via @mcp.tool()."""

    def __init__(self):
        self.tools = {}

    def tool(self):
        def decorator(fn):
            self.tools[fn.__name__] = fn
            return fn

        return decorator


@pytest.fixture
def mock_mcp():
    return MockMCP()
