Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/android_mcp/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from dataclasses import dataclass
from textwrap import dedent
from typing import Literal, Optional
import asyncio
import os

from fastmcp import FastMCP
Expand Down Expand Up @@ -185,11 +184,10 @@ def _connect_preferred_device() -> None:
@asynccontextmanager
async def lifespan(app: FastMCP):
"""Runs initialization code before the server starts and cleanup code after it shuts down."""
await asyncio.sleep(1)
yield


mcp = FastMCP(name="Android-MCP", instructions=instructions)
mcp = FastMCP(name="Android-MCP", instructions=instructions, lifespan=lifespan)
mobile = Mobile()


Expand Down