Fix stdio settings bug (#636)

This commit is contained in:
Eric Gustin 2025-10-19 13:25:21 -07:00 committed by GitHub
parent 19bbaddf75
commit 7d284622ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 6 deletions

View file

@ -26,7 +26,7 @@ ARCADE_TDK_MIN_VERSION = "3.0.0"
ARCADE_TDK_MAX_VERSION = "4.0.0"
ARCADE_SERVE_MIN_VERSION = "3.0.0"
ARCADE_SERVE_MAX_VERSION = "4.0.0"
ARCADE_MCP_SERVER_MIN_VERSION = "1.1.1"
ARCADE_MCP_SERVER_MIN_VERSION = "1.3.2"
ARCADE_MCP_SERVER_MAX_VERSION = "2.0.0"

View file

@ -114,6 +114,7 @@ async def run_stdio_server(
catalog: ToolCatalog,
debug: bool = False,
env_file: str | None = None,
settings: MCPSettings | None = None,
**kwargs: Any,
) -> None:
"""Run MCP server with stdio transport."""
@ -124,7 +125,11 @@ async def run_stdio_server(
if env_file:
load_dotenv(env_file)
logger.debug(f"Loaded environment variables from --env-file={env_file}")
settings = MCPSettings.from_env()
# Use provided settings or load from environment
if settings is None:
settings = MCPSettings.from_env()
if debug:
settings.debug = True
settings.middleware.enable_logging = True

View file

@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "arcade-mcp-server"
version = "1.3.1"
version = "1.3.2"
description = "Model Context Protocol (MCP) server framework for Arcade.dev"
readme = "README.md"
authors = [{ name = "Arcade.dev" }]

View file

@ -1,6 +1,6 @@
[project]
name = "arcade-mcp"
version = "1.2.0"
version = "1.2.1"
description = "Arcade.dev - Tool Calling platform for Agents"
readme = "README.md"
license = {file = "LICENSE"}
@ -21,7 +21,7 @@ requires-python = ">=3.10"
dependencies = [
# CLI dependencies
"arcade-mcp-server>=1.3.0,<2.0.0",
"arcade-mcp-server>=1.3.2,<2.0.0",
"arcade-core>=3.0.0,<4.0.0",
"typer==0.10.0",
"rich==13.9.4",
@ -42,7 +42,7 @@ all = [
"pytz>=2024.1",
"python-dateutil>=2.8.2",
# mcp
"arcade-mcp-server>=1.3.0,<2.0.0",
"arcade-mcp-server>=1.3.2,<2.0.0",
# serve
"arcade-serve>=3.0.0,<4.0.0",
# tdk