Skip to content

Conversation

dandavison
Copy link
Contributor

This sample demonstrates how to make MCP calls from a workflow, using the MCP Python SDK. The MCP server can be a standard stdio server, or it can be implemented as a Temporal workflow, giving rise to durable client sessions. The example uses an MCP server with stateful sessions: the sequentialthinking reference MCP server, optionally translated as a Python Temporal workflow.

temporal operator nexus endpoint create \
  --target-namespace default \
  --name mcp-sequential-thinking-nexus-endpoint \
  --target-task-queue mcp-sequential-thinking-task-queue
  
uv sync --group=mcp
uv run mcp_examples/workflow_nexus_transport/app.py --mcp-server-type stdio
uv run mcp_examples/workflow_nexus_transport/app.py --mcp-server-type workflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant