Skip to content

refactor(mcp): use typed slices helpers for contract ordering - #2359

Open
zjuzhongwen wants to merge 1 commit into
onflow:masterfrom
zjuzhongwen:my_feature
Open

refactor(mcp): use typed slices helpers for contract ordering#2359
zjuzhongwen wants to merge 1 commit into
onflow:masterfrom
zjuzhongwen:my_feature

Conversation

@zjuzhongwen

Copy link
Copy Markdown

Description

Replace reflection-based sorting in the MCP contract tools with typed slices.SortFunc and slices.Sort. The comparison keys and ascending order are unchanged, preserving deterministic tool output while simplifying the implementation.

Files most relevant to review:

  • internal/mcp/tools.go

Testing:

  • SKIP_NETWORK_TESTS=1 go test ./internal/mcp with the CGO flags required by the repository.

For contributor use:

  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design
  • Code follows the project style standards
  • Re-reviewed Files changed in the Github PR explorer

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