Split mcpserver tool files into focused modules#8
Open
wydrox wants to merge 1 commit into
Open
Conversation
Break tools_account_session_auth.go (740 lines) into tools_account.go (account tools + consent helpers) and tools_session_auth.go (session and auth tools plus shared mcpASA* helpers). Break tools_orders_reservation.go (844 lines) into tools_orders.go (orders tools + orders helpers) and tools_reservation.go (reservation tools + reservation helpers). Update server.go to call registerAccountTools, registerSessionAuthTools, registerOrdersTools, and registerReservationTools. No logic changes; all 30 MCP tools remain registered identically.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tools_account_session_auth.go(740 lines) intotools_account.go(account tools + consent helpers) andtools_session_auth.go(session/auth tools + sharedmcpASA*helpers).tools_orders_reservation.go(844 lines) intotools_orders.go(orders tools + orders helpers) andtools_reservation.go(reservation tools + reservation helpers).server.goto register tools viaregisterAccountTools,registerSessionAuthTools,registerOrdersTools,registerReservationTools.tools_cart_products.goandhelpers_test.gountouched.Test plan
go vet ./...passesgo test ./... -racepassesgo build -o bin/martmart ./cmd/martmartsucceeds./bin/martmart --helpand./bin/martmart config showworkinitialize+tools/listreturns all 30 tools (includingsession_login,reservation_slots,cart_add,account_profile,orders_list)