Skip to content

Commit 74fdf50

Browse files
Update to Temporal SDK 1.19.0 (#262)
* update to temporal sdk 1.19.0 * Fix breaking changes from 1.19.0 in MCP samples
1 parent ff0f134 commit 74fdf50

File tree

7 files changed

+155
-151
lines changed

7 files changed

+155
-151
lines changed

openai_agents/mcp/run_file_system_worker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@ async def main():
2424
samples_dir = os.path.join(current_dir, "sample_files")
2525

2626
file_system_server = StatelessMCPServerProvider(
27+
"FileSystemServer",
2728
lambda: MCPServerStdio(
2829
name="FileSystemServer",
2930
params={
3031
"command": "npx",
3132
"args": ["-y", "@modelcontextprotocol/server-filesystem", samples_dir],
3233
},
33-
)
34+
),
3435
)
3536

3637
# Create client connected to server at the given address

openai_agents/mcp/run_memory_research_scratchpad_worker.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ async def main():
2323
logging.basicConfig(level=logging.INFO)
2424

2525
memory_server_provider = StatefulMCPServerProvider(
26-
lambda: MCPServerStdio(
26+
"MemoryServer",
27+
lambda _: MCPServerStdio(
2728
name="MemoryServer",
2829
params={
2930
"command": "npx",
3031
"args": ["-y", "@modelcontextprotocol/server-memory"],
3132
},
32-
)
33+
),
3334
)
3435

3536
# Create client connected to server at the given address

openai_agents/mcp/run_prompt_server_worker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ async def main():
2424

2525
try:
2626
prompt_server_provider = StatelessMCPServerProvider(
27+
"PromptServer",
2728
lambda: MCPServerStreamableHttp(
2829
name="PromptServer",
2930
params={
3031
"url": "http://localhost:8000/mcp",
3132
},
32-
)
33+
),
3334
)
3435

3536
# Create client connected to server at the given address

openai_agents/mcp/run_sse_worker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ async def main():
2424

2525
try:
2626
sse_server_provider = StatelessMCPServerProvider(
27+
"SseServer",
2728
lambda: MCPServerSse(
2829
name="SseServer",
2930
params={
3031
"url": "http://localhost:8000/sse",
3132
},
32-
)
33+
),
3334
)
3435

3536
# Create client connected to server at the given address

openai_agents/mcp/run_streamable_http_worker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ async def main():
2424

2525
try:
2626
streamable_http_server_provider = StatelessMCPServerProvider(
27+
"StreamableHttpServer",
2728
lambda: MCPServerStreamableHttp(
2829
name="StreamableHttpServer",
2930
params={
3031
"url": "http://localhost:8000/mcp",
3132
},
32-
)
33+
),
3334
)
3435

3536
# Create client connected to server at the given address

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = [{ name = "Temporal Technologies Inc", email = "sdk@temporal.io" }]
66
requires-python = ">=3.10"
77
readme = "README.md"
88
license = "MIT"
9-
dependencies = ["temporalio>=1.18.0,<2"]
9+
dependencies = ["temporalio>=1.19.0,<2"]
1010

1111
[project.urls]
1212
Homepage = "https://github.com/temporalio/samples-python"

uv.lock

Lines changed: 143 additions & 144 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)