Skip to content

feat: Tools as MCP #221

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 2 commits into
base: main
Choose a base branch
from
Open

feat: Tools as MCP #221

wants to merge 2 commits into from

Conversation

monoxgas
Copy link
Contributor

@monoxgas monoxgas commented Jul 24, 2025

Notes

  • Add as_mcp helper to turn rigging tools into a FastMCP server
  • Updated docs around MCP integrations

Generated Summary

  • Added the new as_mcp function, which creates a FastMCP server instance from Rigging tools or raw Python functions and handles conversion to MCP-compatible types.
  • Updated documentation in docs/api/tools.mdx and docs/topics/tools.mdx to include usage details, examples, and source code for as_mcp.
  • Modified migration documentation to change references from rigging.integrations to rigging.tools for both MCP and Robopages integrations.
  • Updated export lists in rigging/init.py and rigging/tools/init.py to expose the new as_mcp function.
  • Extended the MCP communication logic in rigging/tools/mcp.py with helper methods (_convert_rigging_return_to_mcp and _create_mcp_handler) to support proper serialization of tool responses.

This summary was generated with ❤️ by rigging

Generated Summary

  • Introduced the new as_mcp function to create a FastMCP server from a collection of Rigging tools or raw Python functions.
  • Updated documentation in both the API and topics pages to explain as_mcp usage with clear examples for exposing and consuming MCP tools.
  • Modified the rigging/init.py and rigging/tools/init.py files to export the new as_mcp function.
  • Enhanced the MCP module by adding helper functions (_convert_rigging_return_to_mcp and _create_mcp_handler) to properly bridge Rigging tool returns to the MCP format.
  • Added detailed examples showing how to run an MCP server using as_mcp and how to connect to MCP servers using both stdio and sse transports.

This summary was generated with ❤️ by rigging

@monoxgas monoxgas requested a review from a team as a code owner July 24, 2025 21:40
@dreadnode-renovate-bot dreadnode-renovate-bot bot added area/docs Changes to documentation and guides type/docs Documentation updates and improvements labels Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs Changes to documentation and guides type/docs Documentation updates and improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant