Class BuiltinResourceUris
java.lang.Object
eu.mrapik.minecraftservermcp.builtin.resources.BuiltinResourceUris
Canonical URIs for built-in MCP resources. The scheme "minecraft-server-mcp" is reserved for this plugin; paths and query
rules follow the registered
McpSchema.Resource and
McpSchema.ResourceTemplate entries in BuiltinMcpResources.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringTemplate for listing a directory; policy idBuiltinToolIds.FS_LIST.static final StringRFC 6570-style template for reading a file; policy idBuiltinToolIds.FS_READ.static final StringTemplate for one player's snapshot; policy idBuiltinToolIds.PLAYER_GET.static final StringFixed URI for the online-player list; policy idBuiltinToolIds.PLAYERS_LIST.static final StringURI scheme for resources advertised by this server (documented for operators and MCP clients). -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable StringqueryParam(URI uri, String name) Reads one query parameter from a hierarchical URI (e.g.
-
Field Details
-
SCHEME
URI scheme for resources advertised by this server (documented for operators and MCP clients).- See Also:
-
FS_READ_TEMPLATE
RFC 6570-style template for reading a file; policy idBuiltinToolIds.FS_READ.- See Also:
-
FS_LIST_TEMPLATE
Template for listing a directory; policy idBuiltinToolIds.FS_LIST.- See Also:
-
PLAYERS_LIST_URI
Fixed URI for the online-player list; policy idBuiltinToolIds.PLAYERS_LIST.- See Also:
-
PLAYER_GET_TEMPLATE
Template for one player's snapshot; policy idBuiltinToolIds.PLAYER_GET.- See Also:
-
-
Method Details
-
queryParam
Reads one query parameter from a hierarchical URI (e.g.?path=a/b.txt).- Parameters:
uri- full resource URI fromMcpSchema.ReadResourceRequest.uri()name- parameter name- Returns:
- decoded value or null
-