Class FsWriteToolSpec
java.lang.Object
eu.mrapik.minecraftservermcp.builtin.filesystem.FsWriteToolSpec
MCP tool that writes or appends raw bytes to a path under the server root. The caller supplies file content as
standard Base64 in the
contentBase64 argument; parent directories are created when needed.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic McpToolDefinitiondefinition(BuiltinToolContext ctx, io.modelcontextprotocol.json.McpJsonMapper mapper) Builds thefs_writetool definition for registration on the MCP server.
-
Field Details
-
ID
MCP tool name and config key ("fs_write").- See Also:
-
-
Method Details
-
definition
public static McpToolDefinition definition(BuiltinToolContext ctx, io.modelcontextprotocol.json.McpJsonMapper mapper) Builds thefs_writetool definition for registration on the MCP server.- Parameters:
ctx- shared built-in context (paths, settings, I/O scheduling)mapper- JSON mapper used to parseINPUT_SCHEMAfor the MCP tool descriptor- Returns:
- a complete
McpToolDefinitionincluding metadata and handler
-