MCP Roots
Deprecation Notice
Roots feature has been deprecated in the MCP spec 2026-07-28.
You are advised NOT to adopt this for new projects.
MCP Roots are locations relevant for the client's tasks and domain. The
server (prompt, resource or tool handlers) may ask for a list of roots
in order to produce results.
Code example
| (ns hello-mcp-clj.client.roots
(:require
[plumcp.core.api.cap :as cap]))
(def root-customer-records
"Client root for customer records"
(cap/make-root-item "root://customer-records"))
(def root-finance-documents
"Client root for finance documents"
(cap/make-root-item "root://finance-documents"))
(def root-annual-report-2026
"Client root for annual reports 2026 edition"
(cap/make-root-item "root://annual-report"))
|