📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-04 05:50:11
📂
/ (Root)
/
home
/
orkouolp
/
web
/
orkofarms.com
/
wp-content
/
plugins
/
elementor
/
assets
/
js
/
packages
/
elementor-kit-mcp
📍 /home/orkouolp/web/orkofarms.com/wp-content/plugins/elementor/assets/js/packages/elementor-kit-mcp
🔄 Refresh
✏️
Editing: elementor-kit-mcp.min.js
Writable
!function(){"use strict";var e={d:function(t,n){for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{createElementorKitServer:function(){return x},init:function(){return C}});var n=window.elementorV2.editorMcp,o=window.elementorV2.elementorMcpCommon,i=window.elementorV2.schema;const r="elementor://kit/server-description",a="## Elementor Kit Settings Management\n\n### Capabilities:\n**Global Design System:**\n- Create, update, name, and delete global colors (both system and custom)\n- Create, update, name, and delete global fonts (both system and custom)\n\n**Site Identity:**\n- Insert site logo\n- Set site favicon\n- Update site name\n- Modify site description\n\n### Limitations:\n**Theme Style Settings:**\n- Cannot set or update Elementor Theme Style settings including typography, buttons, images, form fields, Hello Theme header, or Hello Theme footer that affect the entire website appearance\n\n**Site-Wide Settings:**\n- Cannot set site-wide background (color or image)\n- Cannot configure mobile browser background\n- Cannot modify global layout settings such as content width, container padding, and widget gaps (the default space between widgets)\n\n**Note**: Angie can adjust all of these layout properties at the container or page level - just not site-wide.",s="elementor-kit-fonts",l="elementor://kit/fonts",c="elementor-kit-schema",m="elementor://kit/schema/{tab}",p="elementor-kit-settings",g="elementor://kit/settings",d="2.0.0";async function u(){return(0,o.callWpApi)("/angie/v1/elementor-kit/fonts","GET")}async function y(){return(0,o.callWpApi)("/angie/v1/elementor-kit/schema","GET")}function f(e){const t=["site_logo","site_icon"],n={...e};for(const e of t)e in n&&""===n[e]&&(n[e]=0);return n}const h=i.z.object({title:i.z.string(),color:i.z.string()}),b=i.z.object({title:i.z.string(),typography_typography:i.z.string(),typography_font_family:i.z.string().describe("Font family name that must be from the available Elementor fonts list. Use the get-fonts endpoint (/angie/v1/elementor-kit/fonts) to get the complete list of available fonts. Only use fonts that exist in this list to avoid validation errors."),typography_font_weight:i.z.string(),typography_font_size:i.z.object({unit:i.z.string(),size:i.z.number()}).optional(),typography_font_size_tablet:i.z.object({unit:i.z.string(),size:i.z.number()}).optional(),typography_font_size_mobile:i.z.object({unit:i.z.string(),size:i.z.number()}).optional(),typography_line_height:i.z.object({unit:i.z.string(),size:i.z.number()}).optional()}).passthrough(),w=h.extend({_id:i.z.enum(["primary","secondary","text","accent"])}),v=b.extend({_id:i.z.enum(["primary","secondary","text","accent"])}),k=h.extend({_id:i.z.string()}),z=b.extend({_id:i.z.string()}),E=i.z.array(w).length(4),S=i.z.array(v).length(4),_=i.z.array(k),T=i.z.array(z),j=i.z.record(i.z.unknown()).describe("General patch object for any other Elementor kit settings like spacing, buttons, forms, layout settings, etc.");async function x(){await(0,o.waitForElementorEditor)();const e=new n.McpServer({name:"elementor-kit-server",version:d,title:"Elementor Kit"},{instructions:"Manages Elementor global design system: colors, typography, and site identity.",capabilities:{resources:{subscribe:!0}}});!function(e){e.registerResource("elementor-kit-server-description",r,{title:"Elementor Kit Server Description",description:"Elementor Kit capabilities and limitations",mimeType:"text/plain"},async e=>({contents:[{uri:e.href,mimeType:"text/plain",text:a}]}))}(e),e.registerResource(s,l,{title:"Elementor Kit Available Fonts",description:"Complete list of all available font families that can be used in Elementor, including system fonts, Google fonts, and custom uploaded fonts"},async e=>{const t=await u();return{contents:[{uri:e.href,mimeType:"application/json",text:JSON.stringify(t,null,2)}]}}),e.registerResource(p,g,{title:"Elementor Kit Current Settings",description:"Complete current Elementor global kit configuration including all system and custom colors, typography settings, spacing, buttons, forms, and other site-wide design settings"},async e=>{const t=await async function(){return(0,o.callWpApi)("/angie/v1/elementor-kit","GET")}();return{contents:[{uri:e.href,mimeType:"application/json",text:JSON.stringify(t,null,2)}]}});const t=await(async()=>{const e=await y();return Object.keys(e.data||{})})();e.registerResource(c,new n.ResourceTemplate(m,{list:async()=>({resources:t.map(e=>({uri:`elementor://kit/schema/${e}`,name:`${c}-${e}`,title:`Elementor Kit Schema - ${e}`,description:`Schema definition for Elementor kit ${e} settings tab`,mimeType:"application/json"}))})}),{title:"Elementor Kit Schema",description:"Complete schema definition for a specific Elementor kit settings tab, showing all available fields, their types, valid values, and configuration options"},async(e,t)=>{const n=Array.isArray(t.tab)?t.tab[0]:t.tab;if(!n)throw new Error("Tab parameter is required");const o=await y(),i=o.data?.[n];if(!i)throw new Error(`No schema found for tab '${n}'. Available tabs: ${Object.keys(o.data).join(", ")}`);return{contents:[{uri:e.toString(),mimeType:"application/json",text:JSON.stringify(i,null,2)}]}}),e.registerTool("update-elementor-kit-settings-colors-and-fonts",{description:"This tool applies configuration changes to Elementor global kit settings that control site-wide design elements. Use this when you need to modify global colors, typography, spacing, buttons, form fields, or other theme-wide settings that affect the entire website appearance.\n\nThe tool will permanently update the site's global design settings and return a success confirmation with the updated configuration data.",inputSchema:{systemColors:E.optional().nullable().describe("System colors array with exactly 4 items having IDs: primary, secondary, text, accent"),systemTypography:S.optional().nullable().describe("System typography array with exactly 4 items having IDs: primary, secondary, text, accent"),customColors:_.optional().nullable().describe("Custom colors array - flexible structure for additional color definitions"),customTypography:T.optional().nullable().describe("Custom typography array - flexible structure for additional font definitions (no color field needed)"),patchObject:j.optional().nullable().describe("General patch object for any other Elementor kit settings like spacing, buttons, forms, layout settings, etc."),confirmationMessage:i.z.string().describe('REQUIRED: Provide a clear explanation in **markdown format** of what Elementor kit settings will be changed and their potential impact on the site\'s global design. This message will be shown to the user before proceeding. Be specific about which design elements are being modified (colors, typography, spacing, etc.) and how they will affect the entire website. Examples: "You\'re about to update the global **primary color** from `blue` to `green`. This will change **buttons**, **links**, and **accent colors** throughout your entire site." or "You\'re about to change the **primary font** from `Roboto` to `Open Sans`. This will affect **headings** across all pages."')},annotations:{title:"Update Elementor Kit Settings",destructiveHint:!0},_meta:{"angie/requiredResources":[{uri:r,whenToUse:"Read first for kit capabilities and limitations"}]}},async({systemColors:e,systemTypography:t,customColors:n,customTypography:i,patchObject:r,confirmationMessage:a})=>{(0,o.requireConfirmationMessage)(a,"Elementor kit settings");const s=await async function(e,t){const n=await u(),o=Object.keys(n.data.fonts||{}),i=[];return[e,t].forEach(e=>{e&&e.forEach(e=>{e.typography_font_family&&!o.includes(e.typography_font_family)&&i.push(e.typography_font_family)})}),i.length>0?`Please use available fonts only. Invalid fonts: ${i.join(", ")}. Available fonts: ${o.join(", ")}`:""}(t,i);if(s)throw new Error(s);const l={...e&&{system_colors:e},...t&&{system_typography:t},...n&&{custom_colors:n},...i&&{custom_typography:i},...f(r||{})};if(0===Object.keys(l).length)throw new Error("At least one update must be provided (systemColors, systemTypography, customColors, customTypography, or patchObject)");const c=await(0,o.callWpApi)("/angie/v1/elementor-kit","POST",l);return{content:[{type:"text",text:JSON.stringify({success:!0,message:"Settings updated successfully",data:c,appliedSettings:l},null,2)}]}});const h=(0,n.getAngieSdk)();return await h.waitForReady(),h.registerLocalServer({server:e,version:d,description:a,name:"elementor-kit-server"}),e}function C(){x()}(window.elementorV2=window.elementorV2||{}).elementorKitMcp=t}(),window.elementorV2.elementorKitMcp?.init?.();
💾 Save Changes
❌ Cancel