Skip to content

The TestReport tool gives an internal failure if the specified path does not exist. #65

@rhennigan

Description

@rhennigan

The TestReport tool gives an internal failure if the specified path does not exist.

In[1]:= $DefaultMCPTools["TestReport"][<|"paths" -> "does/not/exist"|>]

During evaluation of In[1]:= MCPServer::TestFileNotFound: Test file not found: "does/not/exist".

During evaluation of In[1]:= MCPServer::Internal: An unexpected error occurred. Report this issue »

Out[1]= Failure[
    "MCPServer::Internal",
    <|
        "MessageParameters" :> {
            Hyperlink[ "Report this issue »", "https://github.com/rhennigan/MCPServer/issues/new" ],
            <|
                "Evaluation" :>
                    Wolfram`MCPServer`Tools`TestReport`Private`testReport[
                        {
                            Failure[
                                "MCPServer::TestFileNotFound",
                                <|
                                    "MessageParameters" :> { "does/not/exist" },
                                    "MessageTemplate" :> MCPServer::TestFileNotFound
                                |>
                            ]
                        },
                        DirectedInfinity[ 1 ],
                        DirectedInfinity[ 1 ]
                    ],
                "Stack" :> Wolfram`MCPServer`Common`Private`$stack$26348,
                "Arguments" -> { "UnhandledDownValues", HoldForm @ Wolfram`MCPServer`Tools`TestReport`Private`testReport }
            |>
        },
        "MessageTemplate" :> MCPServer::Internal
    |>
]
Debug Data
Property Value
Name "Wolfram/MCPServer"
Version "1.6.9"
ReleaseID "bfa50a6e7afd1d12e97c3a2b724397e1772f0b5e"
EvaluationEnvironment "Session"
FrontEndVersion "Desktop: 14.3 for Microsoft Windows (64-bit) (July 8, 2025)"
KernelVersion "14.3.0 for Microsoft Windows (64-bit) (July 8, 2025)"
SystemID "Windows-x86-64"
Notebooks True
DynamicEvaluation False
SynchronousEvaluation False
TaskEvaluation False

Failure Data

<|
  "Evaluation" :> Wolfram`MCPServer`Tools`TestReport`Private`testReport[{Failure["MCPServer::TestFileNotFound", <|"MessageParameters" :> {"does/not/exist"}, "MessageTemplate" :> MCPServer::TestFileNotFound|>]}, Infinity, Infinity],
  "Stack" :> Wolfram`MCPServer`Common`Private`$stack$26348,
  "Arguments" -> {"UnhandledDownValues", HoldForm[Wolfram`MCPServer`Tools`TestReport`Private`testReport]}
|>

Stack Data

throwInternalFailure
testReport
$DefaultMCPTools

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions