Individual skill
dspy-mcp-tool-integration
Use for MCP tools with DSPy, Model Context Protocol servers, dspy.Tool.from_mcp_tool, and ReAct agents over MCP-compatible tools.
skills/dspy-mcp-tool-integration/SKILL.md
Source commit f5db3b7b1fe35b3ff5328b3216165e0853e6c884
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 124
- Repository last updated
- Jun 23, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skills Repository topic
- claude-code Repository topic
- claude-skills Repository topic
- dspy Repository topic
- llm Repository topic
- prompt-optimization Repository topic
- rag Repository topic
- agent Declared skill tag
- production Declared skill tag
- engineering Derived category
- engineering-web Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 3,005 bytesSKILL.mdcore · 3,005 bytesSKILL.mdcore · 3,005 bytesSKILL.mdcore · 3,005 bytesexample.pyruns · 342 bytes
Read excerpt
# DSPy MCP Tool Integration
## Goal
Connect an MCP server with the MCP Python client, convert its tools to `dspy.Tool`, and use them in an async DSPy agent.
## Install
```bash
pip install -U "dspy[mcp]>=3.2.1,<3.3"
```
DSPy converts tools but does not manage MCP connections. Keep the `ClientSession` alive for as long as the DSPy tools are in use.