Skip to content

Conversation

tjoyal
Copy link

@tjoyal tjoyal commented May 26, 2025

I am still in the process of exploring the gem, and here are the initial challenges I've encountered that have slowed my progress.

  • Remove the example controller from the gem module (avoid implicit relationship)
  • server.handle_json seems to always return a String, I am still reading through the code, I'm I missing something? Is this expected?
  • server.handle_json have been returning nil when passed a notifications/initialized.
  • Add missing module in tool example

Motivation and Context

Hopefully it helps someone. From 0 to 1 is there hard part in adopting a new gem.

How Has This Been Tested?

Playing around locally

Breaking Changes

Documentation only

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

I'm still going through my exploration of the gem. These are the immediate friction points that prevented me from hitting the ground running.

- Remove the controller from the gem module (avoid implicit relationship that is hard to diagnose)
- Add missing module in tool example

Hopefully it helps someone.
render(json: server.handle_json(request.body.read).to_h)
end
class MyMcpController < ApplicationController
def index
Copy link

Choose a reason for hiding this comment

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

I would suggest changing the index action (list of results) to show.

Suggested change
def index
def show

@koic
Copy link
Member

koic commented Aug 25, 2025

After this PR, many changes have been made to the mcp gem and conflicts have occurred. If you are still interested, could you update it against the latest README?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants