Skip to content

Conversation

patvice
Copy link

@patvice patvice commented Jun 3, 2025

Hey! Though I would through this together based on some work I did integrating FastMcp into a Rails project.

This PR mains to improve some of the rails integration:

  • Only define ActionTool and ActionResource when rails is defined (Reason for ActionTool and ActionResource top-level classes #58)
  • Setup confirmation for tool directory and resource directory
  • Eager load all classes in tool directory and resource directory to be able to add them to the server
  • Support Server being able to reset both registered tools and registered resource
  • Support rails style code reloading for tools and resources (Issue with Class reloading in Rails #93)
  • Support auto registering classes that inherit from ApplicationTool and ApplicationResource.

patvice added 2 commits June 3, 2025 14:08
…ctory configuration to rails mount, and updated generator
@patvice patvice changed the title Rails Class Autoloading/Eagerloading Rails Class Autoloading/Eagerloading Support Jun 3, 2025
@spikex
Copy link

spikex commented Jul 18, 2025

I like this solution to reloading. Any plans to merge it?

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