adobe-xd-mcp
Version:
Model Context Protocol server for Adobe XD that enables AI-powered design capabilities
71 lines (67 loc) • 1.41 kB
JavaScript
/**
* Roots handler for Adobe XD MCP Server
* Provides access to root-level design resources and workspaces
*/
// Define design roots
const designRoots = [
{
id: "current-document",
name: "Current Document",
description: "The active Adobe XD document",
capabilities: {
resources: true,
tools: true
},
uri: "xd://current-document"
},
{
id: "design-library",
name: "Design Library",
description: "Reusable design assets and components",
capabilities: {
resources: true,
tools: false
},
uri: "xd://design-library"
},
{
id: "templates",
name: "Templates",
description: "Design templates for various project types",
capabilities: {
resources: true,
tools: false
},
uri: "xd://templates"
},
{
id: "ai-designs",
name: "AI Generated Designs",
description: "Designs generated by AI tools",
capabilities: {
resources: true,
tools: true
},
uri: "xd://ai-designs"
},
{
id: "cloud-assets",
name: "Cloud Assets",
description: "Design assets stored in Creative Cloud",
capabilities: {
resources: true,
tools: false
},
uri: "xd://cloud-assets"
}
];
/**
* List available design roots
* @returns {Array} Array of root objects
*/
async function listRoots() {
return designRoots;
}
module.exports = {
listRoots
};