From 1a29891eed83440d24ef4e4023bb445f25f40f88 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 1 Aug 2026 01:55:50 +0000 Subject: [PATCH 1/2] build(deps): bump mcp in /ai/slackbot-mcp-client/no-auth Bumps [mcp](https://github.com/modelcontextprotocol/python-sdk) from 1.28.1 to 2.0.0. - [Release notes](https://github.com/modelcontextprotocol/python-sdk/releases) - [Changelog](https://github.com/modelcontextprotocol/python-sdk/blob/main/RELEASE.md) - [Commits](https://github.com/modelcontextprotocol/python-sdk/compare/v1.28.1...v2.0.0) --- updated-dependencies: - dependency-name: mcp dependency-version: 2.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- ai/slackbot-mcp-client/no-auth/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ai/slackbot-mcp-client/no-auth/requirements.txt b/ai/slackbot-mcp-client/no-auth/requirements.txt index 95fdecc..9fa0893 100644 --- a/ai/slackbot-mcp-client/no-auth/requirements.txt +++ b/ai/slackbot-mcp-client/no-auth/requirements.txt @@ -1,5 +1,5 @@ httpx2==2.9.1 -mcp==1.28.1 +mcp==2.0.0 mypy==2.3.0 pytest==9.1.1 ruff==0.16.0 From 9ce5472d36f51f3d511d8554ba74d471c2d95f50 Mon Sep 17 00:00:00 2001 From: Eden Zimbelman Date: Fri, 31 Jul 2026 19:15:31 -0700 Subject: [PATCH 2/2] fix(mcp-client): migrate no-auth example to mcp 2.0 API Companion to the mcp 1.28.1 -> 2.0.0 bump on this branch. mcp 2.0 renamed FastMCP to MCPServer and moved the transport kwargs: - from mcp.server.fastmcp import FastMCP -> from mcp.server import MCPServer - FastMCP(name, stateless_http=True, json_response=True) -> MCPServer(name) - mcp_server.streamable_http_app() -> streamable_http_app(stateless_http=True, json_response=True) - ToolAnnotations(readOnlyHint=...) -> read_only_hint=... (snake_case) The @mcp_server.tool decorator and mcp.types imports are unchanged. Verified: ruff check + format, mypy, pytest all pass. Co-Authored-By: Claude --- ai/slackbot-mcp-client/no-auth/src/app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ai/slackbot-mcp-client/no-auth/src/app.py b/ai/slackbot-mcp-client/no-auth/src/app.py index 846c2f6..84c8554 100644 --- a/ai/slackbot-mcp-client/no-auth/src/app.py +++ b/ai/slackbot-mcp-client/no-auth/src/app.py @@ -2,7 +2,7 @@ import os import random -from mcp.server.fastmcp import FastMCP +from mcp.server import MCPServer from mcp.types import CallToolResult, TextContent, ToolAnnotations from slack_bolt import App from slack_bolt.adapter.starlette import SlackRequestHandler @@ -18,14 +18,14 @@ https://github.com/modelcontextprotocol/python-sdk#quickstart """ -mcp_server = FastMCP("Dice Game", stateless_http=True, json_response=True) +mcp_server = MCPServer("Dice Game") @mcp_server.tool( name="roll_dice", title="Roll Dice", description="Roll one or more dice with a configurable number of sides.", - annotations=ToolAnnotations(readOnlyHint=True), + annotations=ToolAnnotations(read_only_hint=True), ) def roll_dice(sides: int = 6, count: int = 1) -> CallToolResult: rolls = [random.randint(1, sides) for _ in range(count)] @@ -90,7 +90,7 @@ async def lifespan(a): yield -mcp_app = mcp_server.streamable_http_app() +mcp_app = mcp_server.streamable_http_app(stateless_http=True, json_response=True) app = Starlette(