Skip to content
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
28b974e
Work in progress MCP call support
tconley1428 Aug 7, 2025
c197efd
Moving mcp classes into plugin
tconley1428 Aug 7, 2025
c0abe7b
Merge remote-tracking branch 'origin/main' into openai/mcp
tconley1428 Aug 7, 2025
8fff2aa
Updated documentation
tconley1428 Aug 7, 2025
19e57eb
Add local test
tconley1428 Aug 7, 2025
c0a280c
Fix problems since MCP doesn't exist on python 3.9
tconley1428 Aug 7, 2025
f2dcb61
Remove debug log
tconley1428 Aug 7, 2025
2b1e0ac
Best effort import temporal server
tconley1428 Aug 7, 2025
e80cdf7
Delay import of mcp servers
tconley1428 Aug 7, 2025
0ed952a
Change to a stateless implementation
tconley1428 Aug 11, 2025
0fd7886
Include stateful option
tconley1428 Aug 11, 2025
f3acf3f
Add docstrings
tconley1428 Aug 11, 2025
afeaaa5
Merge branch 'main' into openai/mcp
tconley1428 Aug 12, 2025
c7a78a1
Remove merge duplicate
tconley1428 Aug 12, 2025
0475d0c
Some cleanup
tconley1428 Aug 12, 2025
eb86407
Lint
tconley1428 Aug 12, 2025
ce2eb9a
Fix up tests
tconley1428 Aug 12, 2025
c441326
Lint
tconley1428 Aug 13, 2025
4a4378c
Restructure based on feedback - docstring need updating still
tconley1428 Aug 18, 2025
e86e13f
Change workflow function names
tconley1428 Aug 19, 2025
ec8b241
Cleanup
tconley1428 Aug 19, 2025
8c88a59
Merge branch 'main' into openai/mcp
tconley1428 Aug 19, 2025
09aa3f0
Lint
tconley1428 Aug 19, 2025
ab040c3
Fixing python 3.9
tconley1428 Aug 19, 2025
72fbeeb
Lint
tconley1428 Aug 19, 2025
24aecd9
Some name changes and protected get_activities
tconley1428 Aug 19, 2025
65315a8
Merge branch 'main' into openai/mcp
tconley1428 Aug 19, 2025
3c847b6
Addressing feedback
tconley1428 Aug 20, 2025
6f02b01
Change server names, overhaul tests to use a custom MCPServer which t…
tconley1428 Aug 20, 2025
a034867
Fixing 3.9 issues
tconley1428 Aug 20, 2025
783eb9e
Fix await
tconley1428 Aug 20, 2025
c34e7a6
Merge remote-tracking branch 'origin/main' into openai/mcp
tconley1428 Aug 20, 2025
4c54c42
Revert core change
tconley1428 Aug 20, 2025
f1a642c
Merge branch 'main' into openai/mcp
tconley1428 Aug 25, 2025
a272045
Remove print
tconley1428 Aug 25, 2025
95cfbec
Merge remote-tracking branch 'origin/main' into openai/mcp
tconley1428 Sep 17, 2025
d0e7355
Fail fast if stateful server hasn't been started
tconley1428 Sep 17, 2025
8ef444b
Overhaul stateful mcp server
tconley1428 Sep 18, 2025
5f7c644
Trying to fix core commit
tconley1428 Sep 18, 2025
45185b3
Merge remote-tracking branch 'origin/main' into openai/mcp
tconley1428 Sep 18, 2025
39e9d31
Wait for cancellation
tconley1428 Sep 18, 2025
975b2e1
update readme
jssmith Sep 18, 2025
2a999a2
Change stateless to a provider model, add caching option
tconley1428 Sep 18, 2025
58708c0
Remove caching from stateful. Underlying server can handle it
tconley1428 Sep 18, 2025
606f4e8
readme updates
jssmith Sep 19, 2025
6fc01c9
Revert pyproject update
tconley1428 Sep 19, 2025
53c3c39
Fix no worker test
tconley1428 Sep 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ opentelemetry = [
pydantic = ["pydantic>=2.0.0,<3"]
openai-agents = [
"openai-agents >= 0.2.3,<0.3",
"eval-type-backport>=0.2.2; python_version < '3.10'"
"eval-type-backport>=0.2.2; python_version < '3.10'",
"mcp>=1.9.4, <2; python_version >= '3.10'",
]

[project.urls]
Expand Down
11 changes: 11 additions & 0 deletions temporalio/contrib/openai_agents/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
Use with caution in production environments.
"""

# Best Effort mcp, as it is not supported on Python 3.9
try:
from temporalio.contrib.openai_agents._mcp import (
StatefulTemporalMCPServer,
StatelessTemporalMCPServer,
)
except ImportError:
pass

from temporalio.contrib.openai_agents._model_parameters import ModelActivityParameters
from temporalio.contrib.openai_agents._temporal_openai_agents import (
OpenAIAgentsPlugin,
Expand All @@ -24,6 +33,8 @@
"OpenAIAgentsPlugin",
"ModelActivityParameters",
"workflow",
"StatelessTemporalMCPServer",
"StatefulTemporalMCPServer",
"TestModel",
"TestModelProvider",
]
Loading
Loading