Class McpToolRegistry

java.lang.Object
org.mockserver.netty.mcp.McpToolRegistry

public class McpToolRegistry extends Object
  • Constructor Details

  • Method Details

    • getTools

    • isMutatingTool

      public static boolean isMutatingTool(String toolName)
      Whether the named tool mutates control-plane state (and so requires the MUTATE role when control-plane authorization is enforced). Unknown tool names are treated as mutating (fail-closed): a tool that is not explicitly classified as a read must not slip through with only the READ role. Implemented as a deny-list against the explicit READING_TOOLS set so an unclassified (e.g. newly added) tool defaults to MUTATE.
    • callTool

      public com.fasterxml.jackson.databind.JsonNode callTool(String name, com.fasterxml.jackson.databind.JsonNode params)