René's URL Explorer Experiment


Title: Nexus-backed MCP calls from a workflow by dandavison · Pull Request #235 · temporalio/samples-python · GitHub

Open Graph Title: Nexus-backed MCP calls from a workflow by dandavison · Pull Request #235 · temporalio/samples-python

X Title: Nexus-backed MCP calls from a workflow by dandavison · Pull Request #235 · temporalio/samples-python

Description: Samples for working with the Temporal Python SDK. Contribute to temporalio/samples-python development by creating an account on GitHub.

Open Graph Description: 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...

X Description: 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...

Opengraph URL: https://github.com/temporalio/samples-python/pull/235

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:220f1446-55e4-fa59-1029-11ea6c065881
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9C56:C2F0E:2485597:34E6B23:6A4D1664
html-safe-nonce332ff0f6b30d0cf418f0c412376c12c8ffaaae0d87305fe10f08d8a884ef59c2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzU2OkMyRjBFOjI0ODU1OTc6MzRFNkIyMzo2QTREMTY2NCIsInZpc2l0b3JfaWQiOiI4ODM5ODYwODUzODYxNTg2NTMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca9a8e6c8464097447f0609bfca18e0bfd544855926d722f2b78b8e81f52230ae
hovercard-subject-tagpull_request:2756651746
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/temporalio/samples-python/235/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0e3a6ed5e540e1910c2793261b9592e9850cf298f573bdd2ba91e73aaac63404/temporalio/samples-python/pull/235
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0e3a6ed5e540e1910c2793261b9592e9850cf298f573bdd2ba91e73aaac63404/temporalio/samples-python/pull/235
og:image:altThis 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...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedandavison
hostnamegithub.com
expected-hostnamegithub.com
Nonebcb4661e6fb4fe8b394c51ea02ccdb2236d40dc59afc75a3bbba50bf6517134c
turbo-cache-controlno-cache
go-importgithub.com/temporalio/samples-python git https://github.com/temporalio/samples-python.git
octolytics-dimension-user_id56493103
octolytics-dimension-user_logintemporalio
octolytics-dimension-repository_id454557884
octolytics-dimension-repository_nwotemporalio/samples-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id454557884
octolytics-dimension-repository_network_root_nwotemporalio/samples-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasefb70bd3c4b2bec429781b65419e912c66e2d5581
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/temporalio/samples-python/pull/235#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftemporalio%2Fsamples-python%2Fpull%2F235
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftemporalio%2Fsamples-python%2Fpull%2F235
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=temporalio%2Fsamples-python
Reloadhttps://github.com/temporalio/samples-python/pull/235
Reloadhttps://github.com/temporalio/samples-python/pull/235
Reloadhttps://github.com/temporalio/samples-python/pull/235
Please reload this pagehttps://github.com/temporalio/samples-python/pull/235
temporalio https://github.com/temporalio
samples-pythonhttps://github.com/temporalio/samples-python
Notifications https://github.com/login?return_to=%2Ftemporalio%2Fsamples-python
Fork 112 https://github.com/login?return_to=%2Ftemporalio%2Fsamples-python
Star 358 https://github.com/login?return_to=%2Ftemporalio%2Fsamples-python
Code https://github.com/temporalio/samples-python
Issues 28 https://github.com/temporalio/samples-python/issues
Pull requests 54 https://github.com/temporalio/samples-python/pulls
Actions https://github.com/temporalio/samples-python/actions
Security and quality 0 https://github.com/temporalio/samples-python/security
Insights https://github.com/temporalio/samples-python/pulse
Code https://github.com/temporalio/samples-python
Issues https://github.com/temporalio/samples-python/issues
Pull requests https://github.com/temporalio/samples-python/pulls
Actions https://github.com/temporalio/samples-python/actions
Security and quality https://github.com/temporalio/samples-python/security
Insights https://github.com/temporalio/samples-python/pulse
dandavisonhttps://github.com/dandavison
mainhttps://github.com/temporalio/samples-python/tree/main
dan-9997-python-mcp-nexushttps://github.com/temporalio/samples-python/tree/dan-9997-python-mcp-nexus
Conversationhttps://github.com/temporalio/samples-python/pull/235
Commits20 (20)https://github.com/temporalio/samples-python/pull/235/commits
Checkshttps://github.com/temporalio/samples-python/pull/235/checks
Files changedhttps://github.com/temporalio/samples-python/pull/235/files
Nexus-backed MCP calls from a workflowhttps://github.com/temporalio/samples-python/pull/235#top
dandavisonhttps://github.com/dandavison
mainhttps://github.com/temporalio/samples-python/tree/main
dan-9997-python-mcp-nexushttps://github.com/temporalio/samples-python/tree/dan-9997-python-mcp-nexus
https://github.com/dandavison
dandavisonhttps://github.com/dandavison
Aug 19, 2025https://github.com/temporalio/samples-python/pull/235#issue-3334575168
sequentialthinkinghttps://github.com/modelcontextprotocol/servers/tree/main/src/sequentialthinking
Please reload this pagehttps://github.com/temporalio/samples-python/pull/235
dandavisonhttps://github.com/dandavison
August 16, 2025 12:57https://github.com/temporalio/samples-python/pull/235#commits-pushed-dfedae3
https://github.com/dandavison
MCP from workflow via custom Nexus transporthttps://github.com/temporalio/samples-python/pull/235/commits/dfedae3967be7b989d9409b879c7e71759adab60
dfedae3https://github.com/temporalio/samples-python/pull/235/commits/dfedae3967be7b989d9409b879c7e71759adab60
https://github.com/dandavison
Delete sequential_thinking examplehttps://github.com/temporalio/samples-python/pull/235/commits/293da33757a2833f85aa6aab5bfc0ca4fef01091
293da33https://github.com/temporalio/samples-python/pull/235/commits/293da33757a2833f85aa6aab5bfc0ca4fef01091
https://github.com/dandavison
Fix stream type errorshttps://github.com/temporalio/samples-python/pull/235/commits/ce7de1a717e85a42db0eee72351619bd4b1b79df
ce7de1ahttps://github.com/temporalio/samples-python/pull/235/commits/ce7de1a717e85a42db0eee72351619bd4b1b79df
https://github.com/dandavison
Stub the nexus servicehttps://github.com/temporalio/samples-python/pull/235/commits/047d42c835445122f16008996a6e3473ca93cd3c
047d42chttps://github.com/temporalio/samples-python/pull/235/commits/047d42c835445122f16008996a6e3473ca93cd3c
https://github.com/dandavison
Revert "Stub the nexus service"https://github.com/temporalio/samples-python/pull/235/commits/e1f3df6940976465a71f92f805e5391946fe15c8
e1f3df6https://github.com/temporalio/samples-python/pull/235/commits/e1f3df6940976465a71f92f805e5391946fe15c8
047d42chttps://github.com/temporalio/samples-python/commit/047d42c835445122f16008996a6e3473ca93cd3c
https://github.com/dandavison
Create backing workflowhttps://github.com/temporalio/samples-python/pull/235/commits/eb9fd2267f2dec9ee50992f40af0b26b672aff35
eb9fd22https://github.com/temporalio/samples-python/pull/235/commits/eb9fd2267f2dec9ee50992f40af0b26b672aff35
https://github.com/dandavison
Local SDKhttps://github.com/temporalio/samples-python/pull/235/commits/468b3c719b9d1dc6e670b14625afa6e04742fc8f
468b3c7https://github.com/temporalio/samples-python/pull/235/commits/468b3c719b9d1dc6e670b14625afa6e04742fc8f
https://github.com/dandavison
Copy StatefulTemporalMCPServerhttps://github.com/temporalio/samples-python/pull/235/commits/6aa325301054e39fd63f6014633afc6be3700e7c
6aa3253https://github.com/temporalio/samples-python/pull/235/commits/6aa325301054e39fd63f6014633afc6be3700e7c
https://github.com/dandavison
Convert to use mcp.ClientSessionhttps://github.com/temporalio/samples-python/pull/235/commits/c69f929a30a9a249941e9bf2deef5af6b322687c
c69f929https://github.com/temporalio/samples-python/pull/235/commits/c69f929a30a9a249941e9bf2deef5af6b322687c
https://github.com/dandavison
Revert back to workflow stubhttps://github.com/temporalio/samples-python/pull/235/commits/761451f3a8ff7733f3866ab2607c9b6ed6b4cb8b
761451fhttps://github.com/temporalio/samples-python/pull/235/commits/761451f3a8ff7733f3866ab2607c9b6ed6b4cb8b
https://github.com/dandavison
Initial versionhttps://github.com/temporalio/samples-python/pull/235/commits/11d2d357dec806d752c494f4a06e281c01cd92d1
11d2d35https://github.com/temporalio/samples-python/pull/235/commits/11d2d357dec806d752c494f4a06e281c01cd92d1
https://github.com/dandavison
Reorganizehttps://github.com/temporalio/samples-python/pull/235/commits/ca7691e6e58c716e7dea6a4f0b9540c067d0c2a7
ca7691ehttps://github.com/temporalio/samples-python/pull/235/commits/ca7691e6e58c716e7dea6a4f0b9540c067d0c2a7
https://github.com/dandavison
Add workflow implementation of stateful MCP serverhttps://github.com/temporalio/samples-python/pull/235/commits/5b944a4cd18e8be6cf7cb82f229b24c57a2fb1a6
5b944a4https://github.com/temporalio/samples-python/pull/235/commits/5b944a4cd18e8be6cf7cb82f229b24c57a2fb1a6
https://github.com/dandavison
Refactorhttps://github.com/temporalio/samples-python/pull/235/commits/c5e0188c4b6750165c5c805b786cde9b88753a1b
c5e0188https://github.com/temporalio/samples-python/pull/235/commits/c5e0188c4b6750165c5c805b786cde9b88753a1b
https://github.com/dandavison
Use ABC instead of Protocolhttps://github.com/temporalio/samples-python/pull/235/commits/3694036bf31ab904cce308f7e8e589f67679880f
3694036https://github.com/temporalio/samples-python/pull/235/commits/3694036bf31ab904cce308f7e8e589f67679880f
https://github.com/dandavison
Rename as WorkflowTransporthttps://github.com/temporalio/samples-python/pull/235/commits/a5c524cf3eea9ef2a136f7f1dd7997290474b13f
a5c524chttps://github.com/temporalio/samples-python/pull/235/commits/a5c524cf3eea9ef2a136f7f1dd7997290474b13f
https://github.com/dandavison
Install temporalio from githubhttps://github.com/temporalio/samples-python/pull/235/commits/9b1a107c1510ca849249761a68412c8b282a0e98
9b1a107https://github.com/temporalio/samples-python/pull/235/commits/9b1a107c1510ca849249761a68412c8b282a0e98
https://github.com/dandavison
Delete stale testshttps://github.com/temporalio/samples-python/pull/235/commits/b55cda6db6180d2da4ff7094ae86b21ff8dfac1b
b55cda6https://github.com/temporalio/samples-python/pull/235/commits/b55cda6db6180d2da4ff7094ae86b21ff8dfac1b
https://github.com/dandavison
Move READMEhttps://github.com/temporalio/samples-python/pull/235/commits/615f50b987062b49d2e31722dfe0b5567815fc78
615f50bhttps://github.com/temporalio/samples-python/pull/235/commits/615f50b987062b49d2e31722dfe0b5567815fc78
https://github.com/dandavison
Migrate to new WorkflowTransport implementationhttps://github.com/temporalio/samples-python/pull/235/commits/8e9e9da51f1a15bb75bbc071800eab02c3deea6b
8e9e9dahttps://github.com/temporalio/samples-python/pull/235/commits/8e9e9da51f1a15bb75bbc071800eab02c3deea6b
https://github.co/hiddenchars
https://github.com/temporalio/samples-python/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftemporalio%2Fsamples-python%2Fpull%2F235
Please reload this pagehttps://github.com/temporalio/samples-python/pull/235
https://github.com/dandavison
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.