Skip to content

Commit c6d0735

Browse files
authored
fix: add mcp as explicit dependency in strands template (#366)
The strands template's mcp_client/client.py imports directly from the mcp package, but mcp was not declared in pyproject.toml. It was only available as a transitive dependency through strands-agents, which is fragile coupling that may break on any strands-agents update.
1 parent df4eebc commit c6d0735

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2692,7 +2692,8 @@ dependencies = [
26922692
"bedrock-agentcore >= 1.0.3",
26932693
"botocore[crt] >= 1.35.0",
26942694
{{#if (eq modelProvider "Gemini")}}"google-genai >= 1.0.0",
2695-
{{/if}}{{#if (eq modelProvider "OpenAI")}}"openai >= 1.0.0",
2695+
{{/if}}"mcp >= 1.19.0",
2696+
{{#if (eq modelProvider "OpenAI")}}"openai >= 1.0.0",
26962697
{{/if}}"strands-agents >= 1.13.0",
26972698
]
26982699

src/assets/python/strands/base/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ dependencies = [
1414
"bedrock-agentcore >= 1.0.3",
1515
"botocore[crt] >= 1.35.0",
1616
{{#if (eq modelProvider "Gemini")}}"google-genai >= 1.0.0",
17-
{{/if}}{{#if (eq modelProvider "OpenAI")}}"openai >= 1.0.0",
17+
{{/if}}"mcp >= 1.19.0",
18+
{{#if (eq modelProvider "OpenAI")}}"openai >= 1.0.0",
1819
{{/if}}"strands-agents >= 1.13.0",
1920
]
2021

0 commit comments

Comments
 (0)