fix: pin mcp<2.0.0 to prevent FastMCP import breakage in MCP server examples - #2006
Open
jyotsnamas wants to merge 3 commits into
Open
fix: pin mcp<2.0.0 to prevent FastMCP import breakage in MCP server examples#2006jyotsnamas wants to merge 3 commits into
jyotsnamas wants to merge 3 commits into
Conversation
MCP 2.0+ renamed FastMCP to MCPServer and moved the module path. Without an upper bound, uv resolves to mcp 2.1.1 which causes ModuleNotFoundError at runtime. Also fix README curl examples missing the required Accept header. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add S3 public access blocks after bucket creation (SEC-S3-01) - Scope IAM logs resources to account/region (least privilege) - Add aws:SourceAccount condition to prevent confused deputy Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Latest scan for commit: Security Scan ResultsScan Metadata
SummaryScanner ResultsThe table below shows findings by scanner, with status based on severity thresholds and dependencies: Column Explanations: Severity Levels (S/C/H/M/L/I):
Other Columns:
Scanner Results:
Severity Thresholds (Thresh Column):
Threshold Source: Values in parentheses indicate where the threshold is configured:
Statistics calculation:
|
- ISC004: wrap implicit string concatenation in parentheses - I001: sort import blocks (stdlib before third-party) - BLE001: replace except Exception with except ClientError - PIE810: merge multiple startswith calls into single tuple - C408: rewrite dict() call as literal - RUF100: remove unused noqa directives - Apply ruff format to changed files Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mcp>=1.10.0,<2.0.0in all 7 MCP-relatedrequirements.txtfilesFastMCP→MCPServerand moved the module path frommcp.server.fastmcptomcp.server.mcpserveruvresolves to mcp 2.1.1 which causesModuleNotFoundErrorat runtime, leading to initialization timeout and empty tool responsesVerification
Deployed
02-mcp-server-featuresto AgentCore Runtime in us-west-2:{}Files changed
7
requirements.txtfiles under01-features/02-host-your-agent/01-runtime/Test plan
02-mcp-server-featureswith pinned dep — tools/list, tools/call, prompts/list all return data09-mcp-e2e/01-server-e2ewith pinned dep — finance tracker tools workstrands-agentsmodules unaffected (they transitively constrain mcp<2.0.0)🤖 Generated with Claude Code