Skip to content

[MCP] Support request cancellation for in-flight network calls #555

Description

@manoahLinks

Summary

Tool handlers issue fetch and Horizon/Soroban calls with no AbortSignal, so a cancelled MCP request keeps running and can still mutate state after the client has given up.

Scope

  • Keep the implementation aligned with the existing MindVault architecture.
  • Add or update automated tests.
  • Update docs when the change affects contributors, deployers, or agent users.

Acceptance criteria

  • An abort signal is threaded from the request handler into outbound fetch and RPC calls.
  • A cancelled request stops before performing a payment or state write where possible, and tests assert the abort propagates.
  • Failure cases are deterministic and safe to show in issue-driven contributor work.
  • Relevant local tests pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: mcpMCP server for AI agents (mcp/)difficulty: mediumModerate effort; touches a couple of areas or needs some contexttype: featureNew functionality or capability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions