Fix dependabot plus MCP CLI type error (#2885)

This commit is contained in:
Suchintan
2025-07-08 01:41:49 -04:00
committed by GitHub
parent acbdb15265
commit b50415a092
3 changed files with 2472 additions and 2712 deletions

5175
poetry.lock generated

File diff suppressed because one or more lines are too long

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")