Class ServerLogsToolSpec
java.lang.Object
eu.mrapik.minecraftservermcp.builtin.logs.ServerLogsToolSpec
MCP tool that returns a bounded tail of
logs/latest.log under the server root. Line and byte limits come from
the tool call arguments and from the profile's extra map (maxLogLines, maxLogBytes in
config.yml).-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic McpToolDefinitiondefinition(BuiltinToolContext ctx, io.modelcontextprotocol.json.McpJsonMapper mapper) Builds theserver_logstool definition for registration on the MCP server.
-
Field Details
-
ID
MCP tool name and config key ("server_logs").- See Also:
-
-
Method Details
-
definition
public static McpToolDefinition definition(BuiltinToolContext ctx, io.modelcontextprotocol.json.McpJsonMapper mapper) Builds theserver_logstool definition for registration on the MCP server.- Parameters:
ctx- shared built-in context (paths, settings, main-thread runner)mapper- JSON mapper used to parseINPUT_SCHEMAfor the MCP tool descriptor- Returns:
- a complete
McpToolDefinitionincluding metadata and handler
-