Skip to content

Commit 51382ec

Browse files
committed
Fixes #6 — replace MCPServer with MCPServerStreamableHttp
1 parent 508a551 commit 51382ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/openai_agents/openai_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44

55
from agents import Agent, Runner, gen_trace_id, trace
6-
from agents.mcp import MCPServer, MCPServerSse
6+
from agents.mcp import MCPServer, MCPServerStreamableHttp
77
from agents.model_settings import ModelSettings
88

99

@@ -37,7 +37,7 @@ def resolve_with_system_dns(hostname):
3737
async def main():
3838
hostname = "coderunner.local"
3939
address = resolve_with_system_dns(hostname)
40-
async with MCPServerSse(
40+
async with MCPServerStreamableHttp(
4141
name="SSE Python Server",
4242
params={
4343
"url": f"http://{address}:8222/mcp",

0 commit comments

Comments
 (0)