MCPcopy Create free account
hub / github.com/openai/openai-agents-python / main

Function main

examples/mcp/sse_remote_example/main.py:85–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84
85async def main() -> None:
86 if REMOTE_SSE_URL:
87 print(f"Connecting to remote SSE server at {REMOTE_SSE_URL} ...", flush=True)
88 await run(REMOTE_SSE_URL, "Remote SSE Server")
89 return
90
91 print(
92 "MCP_SSE_REMOTE_URL is not set; using the bundled local SSE server for this demo.",
93 flush=True,
94 )
95 with local_sse_server() as url:
96 await run(url, "Local SSE Server")
97
98
99if __name__ == "__main__":

Callers 1

main.pyFile · 0.70

Calls 2

local_sse_serverFunction · 0.85
runFunction · 0.70

Tested by

no test coverage detected