Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mcp_proxy_for_aws/middleware/tool_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from collections.abc import Awaitable, Callable
from fastmcp.server.middleware import Middleware, MiddlewareContext
from fastmcp.tools.tool import Tool
from typing import Sequence


class ToolFilteringMiddleware(Middleware):
Expand All @@ -29,7 +30,7 @@ def __init__(self, read_only: bool, logger: logging.Logger | None = None):
async def on_list_tools(
self,
context: MiddlewareContext,
call_next: Callable[[MiddlewareContext], Awaitable[list[Tool]]],
call_next: Callable[[MiddlewareContext], Awaitable[Sequence[Tool]]],
):
"""Filter tools based on read only flag."""
# Get list of FastMCP Components
Expand Down
13 changes: 4 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description = "MCP Proxy for AWS"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"fastmcp>=2.11.2",
"fastmcp>=2.13.0.2",
"boto3>=1.34.0",
"botocore>=1.34.0",
]
Expand All @@ -29,13 +29,6 @@ classifiers = [
"Programming Language :: Python :: 3.13",
]

[project.optional-dependencies]
dev = [
"black>=23.3.0",
"isort>=5.12.0",
"mypy>=1.3.0",
]

[project.urls]
documentation = "https://github.com/aws/aws-mcp-proxy/blob/main/README.md"
repository = "https://github.com/aws/mcp-proxy-for-aws.git"
Expand All @@ -46,7 +39,9 @@ changelog = "https://github.com/aws/aws-mcp-proxy/blob/main/CHANGELOG.md"

[dependency-groups]
dev = [
"checkov>=3.2.402",
"black>=23.3.0",
"isort>=5.12.0",
"mypy>=1.3.0",
"commitizen>=4.2.2",
"pre-commit>=4.1.0",
"ruff>=0.9.7",
Expand Down
Loading