Skip to content

Conversation

@yjacquin
Copy link
Owner

@yjacquin yjacquin commented Apr 10, 2025

Originally opened as #19,
Work in Progress and rebase is needed.

* refactor(rails integration): documentation + railtie

* doc(rails): add a demo app

* 🔨fix tests + convert some verbose logs to :debug

* Delete engine.rb

* Delete README

* 📚 start working on documentation

* Rename MCP to FastMcp

* 🧹 cleanup dead code + fix authenticated rack transport

* 🔨fix module name in version

* Update Gemfile.lock

* Update version.rb

* 🧪 fix rack transport test

* Update Gemfile

* 🤖 Automate Github releases on tag creations

* Update CHANGELOG.md
@yjacquin yjacquin self-assigned this Apr 10, 2025
@yjacquin yjacquin linked an issue Apr 10, 2025 that may be closed by this pull request
Comment on lines +13 to +14
#{app.root}/app/tools
#{app.root}/app/resources
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to scope by mcp or fast_mcp namespace?
eg.

Suggested change
#{app.root}/app/tools
#{app.root}/app/resources
#{app.root}/app/fast_mcp/tools
#{app.root}/app/fast_mcp/resources

The app folder tends to be polluted (for big projects), and tools and resources are such common concepts.

app/lib/mcp works too.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For greenfield projects, autoloading of anything in app folder works automagically (with Zeitwerk). Even for brownfield projects, as of Rails 6, the Zeitwerk is the default autoloader.

def add(severity, message = nil, progname = nil, &block)
return if stdio_transport? # we don't want to log to stdout if we're using the stdio transport

# TODO: implement logging as the specification requires
Copy link

@zalom zalom Apr 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# TODO: implement logging as the specification requires
# TODO: implement logging as the specification requires
# https://modelcontextprotocol.io/specification/2025-03-26/server/utilities/logging

@zalom
Copy link

zalom commented Apr 13, 2025

Thank you for your work, mate!
I added a couple of suggestions when checking out the latest changes here.
Let me know if I am off track with suggestions.

Copy link

@alejandrok93 alejandrok93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any update on this PR to add support for streamable http?

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.

Add support for Streamable HTTP Transport

4 participants