Package org.mockserver.netty.mcp
Class McpToolRegistry
java.lang.Object
org.mockserver.netty.mcp.McpToolRegistry
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodegetTools()static booleanisMutatingTool(String toolName) Whether the named tool mutates control-plane state (and so requires the MUTATE role when control-plane authorization is enforced).
-
Constructor Details
-
McpToolRegistry
-
-
Method Details
-
getTools
-
isMutatingTool
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 explicitREADING_TOOLSset 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)
-