Skip to content

Wire tool selection and MCP error handling into chats endpoint#175

Merged
dhq-boiler merged 3 commits into
jdkim:mainfrom
dhq-boiler:pr-chain/4-chats-controller-tools
Mar 9, 2026
Merged

Wire tool selection and MCP error handling into chats endpoint#175
dhq-boiler merged 3 commits into
jdkim:mainfrom
dhq-boiler:pr-chain/4-chats-controller-tools

Conversation

@dhq-boiler
Copy link
Copy Markdown
Collaborator

概要

  • チャットリクエスト用のMCPツールを選択するため、tool_idsパラメータを受け入れます。
  • McpToolAdapterを介して変換し、LlmRbFacadeに渡します。
  • McpConnectionErrorおよびMcpProtocolErrorに対するエラーハンドラを追加し、ツール呼び出しの詳細が存在する場合、応答に含めるようフォーマットします。

Accept tool_ids parameter to select MCP tools for chat requests,
convert them via McpToolAdapter, and pass to LlmRbFacade. Add
error handlers for McpConnectionError and McpProtocolError, and
format responses to include tool call details when present.
Comment thread app/controllers/api/chats_controller.rb Outdated
Comment thread app/controllers/api/chats_controller.rb
Ensures unexpected types are safely converted to a string rather
than being passed through as-is.
Move the query for finding active MCP tools by IDs from
ChatsController into the User model for better separation
of concerns.
@dhq-boiler dhq-boiler merged commit e8271ec into jdkim:main Mar 9, 2026
4 checks passed
@dhq-boiler dhq-boiler deleted the pr-chain/4-chats-controller-tools branch March 9, 2026 08:27
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