Whatever message this page gives is out now! Go check it out!
listResources().<cfscript>
resources = mcpClient.listResources();
writeDump(resources);
</cfscript>readResource(uri).<cfscript>
uri = "file:///logs/app.log";
if (mcpClient.isResourceReadable(uri)) {
resData = mcpClient.readResource(uri);
logText = "";
if (arrayLen(resData.contents) GT 0 && structKeyExists(resData.contents[1], "text")) {
logText = resData.contents[1].text;
}
writeOutput("<pre>" & encodeForHtml(logText) & "</pre>");
} else {
writeOutput("Resource not readable: " & uri);
}
</cfscript>isResourceReadable(uri) to verify access before attempting to read the resource.