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

removeRoot

Last update:
May 18, 2026
Removes a previously registered root from your MCP client's configuration by its logical name, narrowing the set of resources the client can access.

Description

The removeRoot function removes a previously registered root from your MCP client's configuration. A root is a named URI that tells the MCP server which locations are in scope for resources. Removing a root:
  • Narrows or changes the set of resources the client can see.
  • Is useful when a directory, repository, or data domain should no longer be accessible in each session.
  • Helps enforce least-privilege and dynamic scoping (e.g., per user, per project).

Returns

Void

Syntax

removeRoot(string name)
Called as an instance method on an MCP client:
mcpClient.removeRoot("testcases");

History

New in ColdFusion 2025.0.08

Parameters

removeRoot parameters
FieldData typeRequiredDescription
nameStringYesLogical name of the root to remove.

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