fix fastmcp dependency and the mis-synced code (#2908)

This commit is contained in:
Shuchang Zheng
2025-07-09 00:36:54 -07:00
committed by GitHub
parent cd0edda0d1
commit 7dcbbcb201
3 changed files with 595 additions and 93 deletions

679
poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -65,7 +65,7 @@ pyotp = "^2.9.0"
asyncpg = "^0.30.0"
json-repair = "^0.34.0"
pypdf = "^5.1.0"
fastmcp = "^0.4.1"
fastmcp = "^2.10.1"
psutil = ">=7.0.0"
tiktoken = ">=0.9.0"
anthropic = "^0.50.0"

View File

@@ -3,7 +3,7 @@ import os
import shutil
import subprocess
from pathlib import Path
from typing import List
from typing import Any, List
import psutil
import typer
@@ -26,7 +26,7 @@ mcp = FastMCP("Skyvern")
@mcp.tool()
async def skyvern_run_task(prompt: str, url: str) -> dict[str, str]:
async def skyvern_run_task(prompt: str, url: str) -> dict[str, Any]:
"""Use Skyvern to execute anything in the browser. Useful for accomplishing tasks that require browser automation.
This tool uses Skyvern's browser automation to navigate websites and perform actions to achieve
@@ -202,5 +202,6 @@ def run_all() -> None:
@run_app.command(name="mcp")
def run_mcp() -> None:
"""Run the MCP server."""
console.print(Panel("[bold green]Starting MCP Server...[/bold green]", border_style="green"))
# This breaks the MCP processing because it expects json output only
# console.print(Panel("[bold green]Starting MCP Server...[/bold green]", border_style="green"))
mcp.run(transport="stdio")