Skip to content

Refactor MCP endpoint route registration to use Methods#93

Merged
rg4444 merged 1 commit into
mainfrom
claude/add-router-options-method-BFnoe
Feb 7, 2026
Merged

Refactor MCP endpoint route registration to use Methods#93
rg4444 merged 1 commit into
mainfrom
claude/add-router-options-method-BFnoe

Conversation

@rg4444
Copy link
Copy Markdown
Contributor

@rg4444 rg4444 commented Feb 7, 2026

Summary

Consolidate multiple HTTP method registrations for the MCP (Model Context Protocol) endpoint into a single Methods call. This reduces code duplication and improves maintainability by registering GET, POST, and OPTIONS methods in one statement instead of three separate calls.

Validation

  • Does this change affect BPMN render/diff? No
  • Does this change require regenerating images? No
  • Any schema/validator updates? No

Testing

  • Verified that the MCP endpoint still responds to GET, POST, and OPTIONS requests
  • Confirmed route registration behavior is equivalent to the previous implementation
  • No functional changes to the endpoint behavior

https://claude.ai/code/session_0182P3aHW2ZDoN93LAydWDYz

The Router type has no Options() method. Use m.Methods("GET, POST, OPTIONS", ...)
which is the established pattern in this codebase for multi-method routes.

https://claude.ai/code/session_0182P3aHW2ZDoN93LAydWDYz
@rg4444 rg4444 merged commit 9c02e8b into main Feb 7, 2026
13 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants