Re-import arcade_core errors into arcade_mcp_server (#620)
This commit is contained in:
parent
83c0eeab2b
commit
baa262ec00
4 changed files with 24 additions and 5 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -97,6 +97,9 @@ target/
|
||||||
profile_default/
|
profile_default/
|
||||||
ipython_config.py
|
ipython_config.py
|
||||||
|
|
||||||
|
# IDE
|
||||||
|
*.code-workspace
|
||||||
|
|
||||||
# pyenv
|
# pyenv
|
||||||
# For a library or package, you might want to ignore these files since the code is
|
# For a library or package, you might want to ignore these files since the code is
|
||||||
# intended to run in multiple environments; otherwise, check them in:
|
# intended to run in multiple environments; otherwise, check them in:
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,27 @@ MCP Exception Hierarchy
|
||||||
Provides domain-specific exceptions for better error handling and debugging.
|
Provides domain-specific exceptions for better error handling and debugging.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from arcade_core.errors import ToolRuntimeError # Re-export for convenience
|
from arcade_core.errors import (
|
||||||
|
ContextRequiredToolError,
|
||||||
|
ErrorKind,
|
||||||
|
FatalToolError,
|
||||||
|
RetryableToolError,
|
||||||
|
ToolExecutionError,
|
||||||
|
ToolRuntimeError,
|
||||||
|
UpstreamError,
|
||||||
|
UpstreamRateLimitError,
|
||||||
|
)
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
# Re-exports
|
# Re-exports
|
||||||
|
"ErrorKind",
|
||||||
|
"FatalToolError",
|
||||||
|
"RetryableToolError",
|
||||||
|
"ToolExecutionError",
|
||||||
"ToolRuntimeError",
|
"ToolRuntimeError",
|
||||||
|
"UpstreamError",
|
||||||
|
"UpstreamRateLimitError",
|
||||||
|
"ContextRequiredToolError",
|
||||||
# Base exceptions
|
# Base exceptions
|
||||||
"MCPError",
|
"MCPError",
|
||||||
"MCPRuntimeError",
|
"MCPRuntimeError",
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "arcade-mcp-server"
|
name = "arcade-mcp-server"
|
||||||
version = "1.2.1"
|
version = "1.3.0"
|
||||||
description = "Model Context Protocol (MCP) server framework for Arcade.dev"
|
description = "Model Context Protocol (MCP) server framework for Arcade.dev"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = [{ name = "Arcade.dev" }]
|
authors = [{ name = "Arcade.dev" }]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "arcade-mcp"
|
name = "arcade-mcp"
|
||||||
version = "1.1.0"
|
version = "1.2.0"
|
||||||
description = "Arcade.dev - Tool Calling platform for Agents"
|
description = "Arcade.dev - Tool Calling platform for Agents"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
license = {file = "LICENSE"}
|
license = {file = "LICENSE"}
|
||||||
|
|
@ -21,7 +21,7 @@ requires-python = ">=3.10"
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
# CLI dependencies
|
# CLI dependencies
|
||||||
"arcade-mcp-server>=1.1.1,<2.0.0",
|
"arcade-mcp-server>=1.3.0,<2.0.0",
|
||||||
"arcade-core>=3.0.0,<4.0.0",
|
"arcade-core>=3.0.0,<4.0.0",
|
||||||
"typer==0.10.0",
|
"typer==0.10.0",
|
||||||
"rich==13.9.4",
|
"rich==13.9.4",
|
||||||
|
|
@ -42,7 +42,7 @@ all = [
|
||||||
"pytz>=2024.1",
|
"pytz>=2024.1",
|
||||||
"python-dateutil>=2.8.2",
|
"python-dateutil>=2.8.2",
|
||||||
# mcp
|
# mcp
|
||||||
"arcade-mcp-server>=1.1.1,<2.0.0",
|
"arcade-mcp-server>=1.3.0,<2.0.0",
|
||||||
# serve
|
# serve
|
||||||
"arcade-serve>=3.0.0,<4.0.0",
|
"arcade-serve>=3.0.0,<4.0.0",
|
||||||
# tdk
|
# tdk
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue