update start.sh

This commit is contained in:
mshe 2026-06-08 17:01:05 +08:00
parent fc8ab52858
commit bccb369fe9
1 changed files with 3 additions and 0 deletions

3
app.py
View File

@ -1,3 +1,4 @@
import os
from fastmcp import FastMCP
from spider.mail_qq import start as a1
import asyncio
@ -20,6 +21,8 @@ async def mail_qq_spider(account: str,display: int) -> str:
Returns:
str: 爬虫结果
"""
os.environ['DISPLAY'] = f':{display}' # 改成你的 VNC 显示器编号
result = await asyncio.to_thread(a1, account, display)
return result
@mcp.tool()