Whatever message this page gives is out now! Go check it out!

listResources

Last update:
May 18, 2026
Retrieves the list of all resources exposed by the connected MCP server for the current MCP client, including files, documents, logs, and custom URIs.

Description

The listResources function retrieves the list of all resources exposed by the connected MCP server for the current MCP client. Each resource entry describes an externally accessible piece of read-only data (files, documents, logs, custom URIs, etc.) that the server makes available, typically scoped by roots if your client has configured them.

Returns

An array of structs, where each struct describes a resource.

Category

MCP functions

Syntax

listResources()
Called as an instance method on an MCP client object:
resources = mcpClient.listResources();

History

New in ColdFusion 2025.0.08

Parameters

None

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page