"""Test MCP server functionality."""
import pytest
import sys
import os
import asyncio
import json
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src"))

def test_mcp_server_exists():
    """Test that MCP server can be initialized."""
    from grep_mcp.server import mcp
    assert mcp is not None

def test_asking_user_missing_context_tool():
    """Test that the main tool function exists."""
    from grep_mcp.server import asking_user_missing_context
    assert callable(asking_user_missing_context)
