Skip to content

fix: return 405 for unsupported MCP methods - #398

Open
Ricky-7-Yan wants to merge 1 commit into
activeagents:mainfrom
Ricky-7-Yan:fix/mcp-unsupported-methods
Open

fix: return 405 for unsupported MCP methods#398
Ricky-7-Yan wants to merge 1 commit into
activeagents:mainfrom
Ricky-7-Yan:fix/mcp-unsupported-methods

Conversation

@Ricky-7-Yan

Copy link
Copy Markdown

Summary

  • return 405 Method Not Allowed with Allow: POST when an MCP transport client sends GET or DELETE to the Streamable HTTP endpoint
  • preserve the existing /mcp dashboard deep link for browser requests that prefer HTML
  • cover both protocol and browser behavior with integration tests

This addresses the MCP routing finding in #389. The separate catalog placeholder/tool-hint finding is intentionally out of scope.

Validation

  • BUNDLE_GEMFILE=gemfiles/rails8.gemfile bundle exec ruby -Itest actionagent/test/engine_integration_test.rb (36 runs, 180 assertions)
  • bundle exec rubocop actionagent/config/routes.rb actionagent/test/engine_integration_test.rb

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.

1 participant