Skip to content

feat: Tools as MCP#221

Merged
monoxgas merged 2 commits intomainfrom
feat/tools-as-mcp
Jul 29, 2025
Merged

feat: Tools as MCP#221
monoxgas merged 2 commits intomainfrom
feat/tools-as-mcp

Conversation

@monoxgas
Copy link
Copy Markdown
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
@monoxgas monoxgas merged commit f735902 into main Jul 29, 2025
7 checks passed
@monoxgas monoxgas deleted the feat/tools-as-mcp branch November 13, 2025 22:34
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