Add Unstructured Transform MCP integration page#2033
Conversation
Signed-off-by: Simon Coombes <simon@unstructured.io>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdded documentation for the Unstructured Transform MCP integration, including setup, asynchronous processing details, example code, requirements, and MCP navigation registration. ChangesUnstructured MCP documentation
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request adds documentation for the Unstructured Transform MCP Integration, including a new MDX guide and updating the docs configuration. Feedback was provided to correct the Python code snippet in the documentation by replacing the deprecated llm parameter with model and wrapping the MCP instance in a list to prevent potential runtime errors.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| transform_agent = Agent( | ||
| instructions="""You parse documents into structured, AI-ready data. | ||
| Use the Unstructured Transform tools to turn PDFs, Office files, images, | ||
| and other documents into clean Markdown, then answer questions about the content.""", | ||
| llm="gpt-4o-mini", | ||
| tools=MCP( | ||
| "https://mcp.transform.unstructured.io", | ||
| headers={"Authorization": f"Bearer {os.environ['UNSTRUCTURED_API_KEY']}"}, | ||
| ) | ||
| ) |
There was a problem hiding this comment.
The code snippet uses the deprecated llm parameter and passes the MCP instance directly to tools instead of wrapping it in a list.
- Use
modelinstead ofllm: Thellmparameter is deprecated inpraisonaiagentsand will trigger a deprecation warning. Usingmodelis the preferred and future-proof approach. - Wrap
MCPin a list: Thetoolsparameter expects a list of tools. Passing a singleMCPinstance directly can causeAttributeErrors if the agent tries to append or extend the tools list (for example, when injecting fallback tools or autonomy defaults).
transform_agent = Agent(
instructions="""You parse documents into structured, AI-ready data.
Use the Unstructured Transform tools to turn PDFs, Office files, images,
and other documents into clean Markdown, then answer questions about the content.""",
model="gpt-4o-mini",
tools=[MCP(
"https://mcp.transform.unstructured.io",
headers={"Authorization": f"Bearer {os.environ['UNSTRUCTURED_API_KEY']}"},
)]
)
Signed-off-by: Simon Coombes <simon@unstructured.io>
|
Thanks for the review.
This is still a draft: the page uses the remote streamable-HTTP transport, which is fixed by #3033 but not yet in a PyPI release (latest is 1.6.151). I'll confirm the released version, update the version note, and mark it ready once that ships. |
|
praisonaiagents 1.6.152 shipped with #3033, and I verified this page's snippet against it: it connects and lists all four Transform tools against a live server. Marking ready for review. |
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
Correction, moving this back to draft. The remote MCP connection works on 1.6.152 (it connects and lists all four tools), but on a full end-to-end run the agent polls |
Adds
docs/mcp/unstructured.mdxto the MCP Integrations gallery, showing how to parse documents into structured, AI-ready data with a PraisonAI agent using the hosted Unstructured Transform MCP server. Matches the existing per-server page format (frontmatter + mermaid + Quick Start Steps + Requirements) and registers it in the Integrations nav group.Verified against the released
praisonaiagents1.6.152, the first release including the remote streamable-HTTP fix (#3033): it connects and lists all four Transform tools against a live server. The page notes 1.6.152 or later as the requirement.Review feedback addressed: switched
llm=tomodel=(the non-deprecated parameter).Summary by CodeRabbit