ruby_llm-mcp icon indicating copy to clipboard operation
ruby_llm-mcp copied to clipboard

Features to get to a v0.5 Release

Open patvice opened this issue 1 year ago • 3 comments

The goal of a 1.0 release would be to have full support of the all elements of the of 2024-11-05 and 2025-03-26 protocols.

Given that there is now 2025-06-18 version of the protocol. I am moving to release all of these changes in a v0.5.

Features list

  • [x] Full Support for 2024-11-05
  • [x] Full Support for 2025-03-26

Gem Better usability

  • [x] Support better Ruby logging
  • [x] Human in the loop support on tool calls
  • [x] More specs and testing setup
  • [x] Support mcp_server_definition.json style loading file on client create
  • [x] Support registration of custom transport options (part of 2025-06-18)
  • [x] Rails integration support + patterns that will work well in rails

Transport Protocol Support

  • [x] Support for SSE transports
  • [x] Support for stdio transports
  • [x] Support for Streaming responses
  • [x] Support Multiple streaming responses (to have full notification support)

Sever Endpoint Support

Core Funcitonality

  • [x] Tool lists
  • [x] Tool execution
  • [x] Prompts
  • [x] Resource
  • [x] Resource Subscription Support
  • [x] Resource Templates
  • [x] Notification support
  • [x] Full error support
  • [x] Tool error support (create different message formatting if something has an error)

Utilities

  • [x] Completion
  • [x] Logging
  • [x] Pagination

Client Feature Support

  • [x] Roots
  • [x] Sampling

patvice avatar May 23 '25 13:05 patvice

  • support for multiple MCP servers: As currently implemented the constructor only supports one server.
  • support for using path/to/mcp_server_definition.json files: Most MCP servers are publishing their JSON files targeting either OpenAI or Anthropic schemas. It would be nice to be able to use those same JSON files in my app with the JSON files that were published for cursor, claude etc. applications.
  • Support for local RubyLLM::Tool (s) and external MCP server tools.
  • Support for an "allowed list" of tools: some MCP servers have a long list of exported tools which can lead to the worng tool being used by the LLM. Using an allowed list of tools gives the LLM a fighting chance to choose the correct tool by reducing the number of tools it has to search through.

BTW if you are developing on a Mac, there is an MCP server application called iMCP which provides access to local Mac datasets like notes, calendar, contacts etc. It might be an interesting example. I was only able to get as far is getting its tool list in my test version of an MCP client for RubyLLM. Finally gave up on the entire idea.

MadBomber avatar May 24 '25 18:05 MadBomber

How I would use ruby_llm-mcp with my AIA gem ...

aia prompt_id --tools mcp_server.json --tools mcp2_server.json 

AIA's --tools option current just supports RubyLLM::Tool classes. You can either specify a single *.rb file or a directory that contains *.rb files. Each file contains a subclass of RubyLLM::Tool. Now with ruby_llm-mcp I can add the JSON mcp server definition files to make available both RubyLLM::Tool classes and MCP server tools.

MadBomber avatar May 24 '25 22:05 MadBomber

Completed!

patvice avatar Jul 07 '25 17:07 patvice