Skip to content

chore(deps): update fastmcp to 4.1.0 - #1760

Merged
phernandez merged 1 commit into
mainfrom
chore/fastmcp-4.1.0
Oct 12, 2026
Merged

phernandez merged 1 commit into
mainfrom
chore/fastmcp-4.1.0

Conversation

@phernandez

Copy link
Copy Markdown
Member

Summary

Updates FastMCP from 4.0.3 to 4.1.0 and mcp from 2.0.0 to 2.3.0, the latest releases of both. FastMCP's notes for 4.0.11 describe it as a security release that all users should take.

Code change

FastMCP 4.0.11 (PrefectHQ/fastmcp#5427) applies host_origin_protection to the SSE transport. Under 4.0.3 only streamable HTTP honored it, so basic-memory mcp --transport sse installed its own HostOriginGuardMiddleware (#1697).

The command now passes host_origin_protection="auto" for both HTTP transports and drops the custom SSE guard. Without this change, SSE would be guarded twice.

Pins

The Claude Code and Codex hook scripts pin FastMCP to match core. They move to 4.1.0 as well. The hooks run the released Basic Memory v0.23.2, and I checked that it installs and imports under the 4.1.0 override: ok 4.1.0 2.3.0 0.23.2.

4.1.0 breaking changes reviewed

We don't use MultiAuth, regex tool search, skill providers, OpenAPI components or CodeMode. The one change that reaches us: streamable HTTP sessions now expire after 30 idle minutes, the MCP SDK default, and clients open a new one. The CHANGELOG notes this under v0.24.0 Internal.

Test plan

  • just fast-check
  • just test-unit-sqlite: 8,309 passed. The two hook-pin consistency tests that failed before the pin bump now pass.
  • just test-int-sqlite: 712 passed
  • just test-smoke
  • just package-check-claude-code
  • tests/cli/test_mcp_command.py: the Host/Origin guard rejects a foreign Host (421) and Origin (403), honors the FastMCP allowlists, and is installed exactly once, on both transports
  • Full CI including Postgres

🤖 Generated with Claude Code

https://claude.ai/code/session_01EQPZkbnuxxtTEJoNJCkt45

FastMCP 4.0.11 applies host_origin_protection to the SSE transport, so the
mcp command passes it to both HTTP transports and drops its own SSE guard.
Bump the Claude Code and Codex hook pins to match core.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EQPZkbnuxxtTEJoNJCkt45
Signed-off-by: phernandez <paul@basicmachines.co>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-12T03:15:07.017932Z cce79a3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@phernandez
phernandez merged commit c1d1b47 into main Oct 12, 2026
39 checks passed
@phernandez
phernandez deleted the chore/fastmcp-4.1.0 branch October 12, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant