You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openai_agents/mcp/README.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,22 +9,22 @@ Before running these examples, be sure to review the [prerequisites and backgrou
9
9
10
10
## Running the Examples
11
11
12
-
### File System MCP - Stateless
12
+
### Stdio MCP
13
13
14
14
First, start the worker:
15
15
```bash
16
-
uv run openai_agents/mcp/run_file_system_stateless_worker.py
16
+
uv run openai_agents/mcp/run_file_system_worker.py
17
17
```
18
18
19
19
Run the workflow:
20
20
```bash
21
-
uv run openai_agents/mcp/run_file_system_stateless_workflow.py
21
+
uv run openai_agents/mcp/run_file_system_workflow.py
22
22
```
23
23
24
24
This sample assumes that the worker and `run_file_system_workflow.py` are on the same machine.
25
25
26
26
27
-
### Streamable HTTP MCP - Stateless
27
+
### Streamable HTTP MCP
28
28
29
29
First, start the worker:
30
30
```bash
@@ -33,15 +33,15 @@ uv run openai_agents/mcp/servers/tools_server.py --transport=streamable-http
33
33
34
34
Then start the worker:
35
35
```bash
36
-
uv run openai_agents/mcp/run_streamable_http_stateless_worker.py
36
+
uv run openai_agents/mcp/run_streamable_http_worker.py
37
37
```
38
38
39
39
Finally, run the workflow:
40
40
```bash
41
-
uv run openai_agents/mcp/run_streamable_http_stateless_workflow.py
41
+
uv run openai_agents/mcp/run_streamable_http_workflow.py
42
42
```
43
43
44
-
### SSE MCP - Stateless
44
+
### SSE MCP
45
45
46
46
First, start the MCP server:
47
47
```bash
@@ -50,15 +50,15 @@ uv run openai_agents/mcp/servers/tools_server.py --transport=sse
50
50
51
51
Then start the worker:
52
52
```bash
53
-
uv run openai_agents/mcp/run_sse_stateless_worker.py
53
+
uv run openai_agents/mcp/run_sse_worker.py
54
54
```
55
55
56
56
Finally, run the workflow:
57
57
```bash
58
-
uv run openai_agents/mcp/run_sse_stateless_workflow.py
58
+
uv run openai_agents/mcp/run_sse_workflow.py
59
59
```
60
60
61
-
### Prompt Server MCP - Stateless
61
+
### Prompt Server MCP
62
62
63
63
First, start the MCP server:
64
64
```bash
@@ -67,22 +67,22 @@ uv run openai_agents/mcp/servers/prompt_server.py
67
67
68
68
Then start the worker:
69
69
```bash
70
-
uv run openai_agents/mcp/run_prompt_server_stateless_worker.py
70
+
uv run openai_agents/mcp/run_prompt_server_worker.py
71
71
```
72
72
73
73
Finally, run the workflow:
74
74
```bash
75
-
uv run openai_agents/mcp/run_prompt_server_stateless_workflow.py
75
+
uv run openai_agents/mcp/run_prompt_server_workflow.py
76
76
```
77
77
78
78
79
-
### Memory MCP - Stateful (Research Scratchpad)
79
+
### Memory MCP (Research Scratchpad)
80
80
81
81
Demonstrates durable note-taking with the Memory MCP server: write seed notes, query by tags, synthesize a brief with citations, then update and delete notes.
82
82
83
83
Start the worker:
84
84
```bash
85
-
uv run openai_agents/mcp/run_memory_stateful_worker.py
0 commit comments