Skip to content

MCP-04: add MCP transaction v1 parser and fee hooks#39

Open
aeyakovenko wants to merge 306 commits intoanza-xyz:masterfrom
aeyakovenko:issue-19-mcp-transaction-format
Open

MCP-04: add MCP transaction v1 parser and fee hooks#39
aeyakovenko wants to merge 306 commits intoanza-xyz:masterfrom
aeyakovenko:issue-19-mcp-transaction-format

Conversation

@aeyakovenko
Copy link
Copy Markdown

Summary

  • add MCP Transaction v1 parser/serializer in agave-transaction-view (transaction-view/src/mcp_transaction.rs) for deterministic wire handling
  • parse and expose MCP config-mask fields including inclusion_fee, ordering_fee, and target_proposer
  • add non-breaking fee integration hooks in solana-fee:
    • calculate_fee_details_with_mcp(...)
    • apply_mcp_fee_components(...)
  • apply MCP fee components as:
    • inclusion_fee -> transaction fee component
    • ordering_fee -> prioritization fee component
  • add targeted unit tests for roundtrip parsing, deterministic field extraction, parse rejection behavior, and MCP fee component application

Testing

  • cargo test -p agave-transaction-view mcp_transaction -- --nocapture
  • cargo test -p solana-fee -- --nocapture

Closes #19

@aeyakovenko aeyakovenko force-pushed the issue-19-mcp-transaction-format branch from 57982d2 to 0753ca9 Compare February 8, 2026 15:24
# Conflicts:
#	ledger/src/shred/mcp_shred.rs
#	plan.md
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.

MCP-04 Transaction: update transaction format

1 participant