Skip to content

MCP tools from other modules return recorded data without the warning #64

Closed

Description

@allrude

The core labels every successful MCP response with a recorded_data line, telling an agent the values are evidence and never instructions. That line is added in McpProfilePresenter::envelope(), so a tool another module registers on Mcp\Server, with its own envelope, reaches the agent without it. The Commerce365 add-on's get_c365_calls and get_c365_prices are such tools, and with bodies: true they return Hub and Business Central request and response bodies.

Fix

Mcp\Server::callTool() adds the note to every successful result that does not carry one, so no add-on has to remember it.

Activity

  1. added
    enhancement
    on Oct 31, 2026
  2. allrude commented on Oct 31, 2026

    @allrude
    MemberAuthor

    Fixed in #65, released in 1.5.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions