Skip to content

doc: Add tutorial for remote MCP servers #8532

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nguyenhoan1988
Copy link

This PR updates the documentation by adding a tutorial section on how to connect to and use remote MCP servers with the fastmcp library. The new guide shows how to:

  • Connect to a public MCP server (e.g., Hugging Face).
  • List and call remote MCP tools.
  • Integrate these tools with DSPy’s ReAct agent.

This makes it easier for users to leverage remote MCP tools in their DSPy workflows.

@chenmoneygithub
Copy link
Collaborator

@nguyenhoan1988 Thanks for the PR! The example code seems to manually manage the tools provided by remote MCP server. Maybe we should integrate remote MCP server into dspy.Tool.from_mcp_tool()? cc our MCP expert @TomeHirata

@nguyenhoan1988
Copy link
Author

@nguyenhoan1988 Thanks for the PR! The example code seems to manually manage the tools provided by remote MCP server. Maybe we should integrate remote MCP server into dspy.Tool.from_mcp_tool()? cc our MCP expert @TomeHirata

this tutorial is to help users to integrate MCP easily with the current state of DSPy.
The integration to dspy.Tool is a great idea.

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.

2 participants