[{"data":1,"prerenderedAt":481},["ShallowReactive",2],{"navigation_docs":3,"-agents-codex":79,"-agents-codex-surround":476},[4,35,44,69],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Start here",false,"\u002Fgetting-started","1.getting-started",[10,15,20,25,30],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Quickstart","\u002Fgetting-started\u002Fquickstart","1.getting-started\u002F2.quickstart","i-lucide-arrow-right",{"title":21,"path":22,"stem":23,"icon":24},"Install the plugin","\u002Fgetting-started\u002Finstall-plugin","1.getting-started\u002F3.install-plugin","i-lucide-download",{"title":26,"path":27,"stem":28,"icon":29},"Connect a website","\u002Fgetting-started\u002Fconnect-website","1.getting-started\u002F4.connect-website","i-lucide-link",{"title":31,"path":32,"stem":33,"icon":34},"Connect an Agent","\u002Fgetting-started\u002Fconnect-agent","1.getting-started\u002F5.connect-agent","i-lucide-plug",{"title":31,"icon":6,"path":36,"stem":37,"children":38,"page":6},"\u002Fagents","2.agents",[39],{"title":40,"path":41,"stem":42,"icon":43},"Codex","\u002Fagents\u002Fcodex","2.agents\u002F1.codex","i-lucide-code",{"title":45,"icon":6,"path":46,"stem":47,"children":48,"page":6},"Use MoraWP","\u002Fguides","3.guides",[49,54,59,64],{"title":50,"path":51,"stem":52,"icon":53},"Websites","\u002Fguides\u002Fwebsites","3.guides\u002F1.websites","i-lucide-cloud",{"title":55,"path":56,"stem":57,"icon":58},"Agents","\u002Fguides\u002Fagents","3.guides\u002F2.agents","i-lucide-sparkles",{"title":60,"path":61,"stem":62,"icon":63},"Abilities","\u002Fguides\u002Fabilities","3.guides\u002F3.abilities","i-lucide-wrench",{"title":65,"path":66,"stem":67,"icon":68},"Activity","\u002Fguides\u002Factivity","3.guides\u002F4.activity","i-lucide-history",{"title":70,"icon":6,"path":71,"stem":72,"children":73,"page":6},"Troubleshooting","\u002Ftroubleshooting","4.troubleshooting",[74],{"title":75,"path":76,"stem":77,"icon":78},"WordPress tool failed","\u002Ftroubleshooting\u002Fwordpress-tool-failed","4.troubleshooting\u002F1.wordpress-tool-failed","i-lucide-alert-circle",{"id":80,"title":40,"body":81,"description":469,"extension":470,"links":471,"meta":472,"navigation":473,"path":41,"seo":474,"stem":42,"__hash__":475},"docs\u002F2.agents\u002F1.codex.md",{"type":82,"value":83,"toc":461},"minimark",[84,88,104,109,117,140,150,154,167,170,194,204,207,224,228,231,247,250,258,261,269,273,276,290,297,305,314,317,406,410,413,441,448,457],[85,86,87],"p",{},"Codex connects to MoraWP over MCP using browser OAuth. You add the server URL,\nthen approve a connection to a Workspace. You do not create or paste a MoraWP\nstatic Agent key.",[85,89,90,91,95,96,99,100,103],{},"This guide covers ",[92,93,94],"strong",{},"Codex CLI",". The commands were checked against CLI\n",[92,97,98],{},"0.154.0"," and OpenAI's documentation on ",[92,101,102],{},"October 4, 2026",". Other Codex\nsurfaces may place MCP setup in their settings.",[105,106,108],"h2",{"id":107},"before-you-begin","Before you begin",[85,110,111,112,116],{},"Connect a ",[113,114,115],"a",{"href":27},"WordPress website"," and make sure\nyou can access its Workspace. On your computer, check that Codex is installed:",[118,119,124],"pre",{"className":120,"code":121,"language":122,"meta":123,"style":123},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","codex --version\n","bash","",[125,126,127],"code",{"__ignoreMap":123},[128,129,132,136],"span",{"class":130,"line":131},"line",1,[128,133,135],{"class":134},"sBMFI","codex",[128,137,139],{"class":138},"sfazB"," --version\n",[85,141,142,143,149],{},"If the command is unavailable, use ",[113,144,148],{"href":145,"rel":146},"https:\u002F\u002Flearn.chatgpt.com\u002Fdocs\u002Fcodex\u002Fcli",[147],"nofollow","OpenAI's CLI installation instructions",".",[105,151,153],{"id":152},"add-morawp","Add MoraWP",[85,155,156,157,160,161,166],{},"Open ",[92,158,159],{},"Agents → Connect an Agent → Codex"," in the\n",[113,162,165],{"href":163,"rel":164},"https:\u002F\u002Fapp.morawp.com",[147],"Dashboard",". The dialog shows the MCP endpoint and the\ntwo setup commands.",[85,168,169],{},"Run the add command in your terminal:",[118,171,173],{"className":120,"code":172,"language":122,"meta":123,"style":123},"codex mcp add morawp --url https:\u002F\u002Fapi.morawp.com\u002Fmcp\n",[125,174,175],{"__ignoreMap":123},[128,176,177,179,182,185,188,191],{"class":130,"line":131},[128,178,135],{"class":134},[128,180,181],{"class":138}," mcp",[128,183,184],{"class":138}," add",[128,186,187],{"class":138}," morawp",[128,189,190],{"class":138}," --url",[128,192,193],{"class":138}," https:\u002F\u002Fapi.morawp.com\u002Fmcp\n",[85,195,196,199,200,203],{},[92,197,198],{},"Expected result:"," Codex saves a server named ",[125,201,202],{},"morawp",". Adding the URL alone\ndoes not approve access to your Workspace.",[85,205,206],{},"If you already configured that name, check its URL before changing anything:",[118,208,210],{"className":120,"code":209,"language":122,"meta":123,"style":123},"codex mcp get morawp\n",[125,211,212],{"__ignoreMap":123},[128,213,214,216,218,221],{"class":130,"line":131},[128,215,135],{"class":134},[128,217,181],{"class":138},[128,219,220],{"class":138}," get",[128,222,223],{"class":138}," morawp\n",[105,225,227],{"id":226},"approve-the-connection","Approve the connection",[85,229,230],{},"Start OAuth sign-in:",[118,232,234],{"className":120,"code":233,"language":122,"meta":123,"style":123},"codex mcp login morawp\n",[125,235,236],{"__ignoreMap":123},[128,237,238,240,242,245],{"class":130,"line":131},[128,239,135],{"class":134},[128,241,181],{"class":138},[128,243,244],{"class":138}," login",[128,246,223],{"class":138},[85,248,249],{},"Use the browser page that opens to sign in to MoraWP and review the request.\nConfirm the intended app and Workspace, choose the websites and Ability access,\nthen read and acknowledge the data-access notice.",[251,252,253,254,257],"warning",{},"An enabled Integration can expose its complete available data, including private\nfields and credentials. ",[92,255,256],{},"Read only"," restricts changes, not the sensitivity of\nthe information returned. Review the access before approving.",[85,259,260],{},"Approve the request, then return to the terminal and the Dashboard setup dialog.\nComplete the dialog's prompts once authorization has succeeded.",[85,262,263,265,266,268],{},[92,264,198],{}," the terminal reports successful authorization and the\nconnection appears in ",[92,267,55],{}," in the selected Workspace.",[105,270,272],{"id":271},"verify-in-codex","Verify in Codex",[85,274,275],{},"Check the saved server configuration:",[118,277,279],{"className":120,"code":278,"language":122,"meta":123,"style":123},"codex mcp list\n",[125,280,281],{"__ignoreMap":123},[128,282,283,285,287],{"class":130,"line":131},[128,284,135],{"class":134},[128,286,181],{"class":138},[128,288,289],{"class":138}," list\n",[85,291,292,293,296],{},"Then start a Codex session and use ",[125,294,295],{},"\u002Fmcp"," to inspect the active servers.\nA configured entry is not proof that WordPress access works. Make a read request:",[118,298,303],{"className":299,"code":301,"language":302,"meta":123},[300],"language-text","Use MoraWP to list the websites this Agent can access. Do not make changes.\n","text",[125,304,301],{"__ignoreMap":123},[85,306,307,309,310,313],{},[92,308,198],{}," Codex returns the websites allowed for this connection.\nContinue with ",[113,311,16],{"href":312},"\u002Fgetting-started\u002Fquickstart#_3-read-one-page"," to\nverify an actual WordPress read.",[105,315,70],{"id":316},"troubleshooting",[318,319,320,333],"table",{},[321,322,323],"thead",{},[324,325,326,330],"tr",{},[327,328,329],"th",{},"Problem",[327,331,332],{},"Next step",[334,335,336,350,360,372,380,388,396],"tbody",{},[324,337,338,344],{},[339,340,341,343],"td",{},[125,342,135],{}," is not found",[339,345,346,347,149],{},"Install the CLI, reopen your terminal, and run ",[125,348,349],{},"codex --version",[324,351,352,357],{},[339,353,354,356],{},[125,355,202],{}," is not configured",[339,358,359],{},"Run the add command in the same Codex environment you use for your session.",[324,361,362,365],{},[339,363,364],{},"Authorization was cancelled or expired",[339,366,367,368,371],{},"Run ",[125,369,370],{},"codex mcp login morawp"," again and complete the new browser request.",[324,373,374,377],{},[339,375,376],{},"Server is configured but requests require sign-in",[339,378,379],{},"Complete OAuth login. Check that the Agent connection has not been removed in MoraWP.",[324,381,382,385],{},[339,383,384],{},"Connected, but the expected website is missing",[339,386,387],{},"Check the selected Workspace and the Agent's website access in MoraWP.",[324,389,390,393],{},[339,391,392],{},"An Ability is denied",[339,394,395],{},"Review the Agent's mode and the Workspace's enabled Abilities. Repeating the same call does not grant access.",[324,397,398,401],{},[339,399,400],{},"WordPress returns an error",[339,402,403,404,149],{},"Use ",[113,405,75],{"href":76},[105,407,409],{"id":408},"remove-access","Remove access",[85,411,412],{},"Remove the connection in MoraWP when Codex should no longer reach the Workspace.\nFor local cleanup, OpenAI also provides:",[118,414,416],{"className":120,"code":415,"language":122,"meta":123,"style":123},"codex mcp logout morawp\ncodex mcp remove morawp\n",[125,417,418,429],{"__ignoreMap":123},[128,419,420,422,424,427],{"class":130,"line":131},[128,421,135],{"class":134},[128,423,181],{"class":138},[128,425,426],{"class":138}," logout",[128,428,223],{"class":138},[128,430,432,434,436,439],{"class":130,"line":431},2,[128,433,135],{"class":134},[128,435,181],{"class":138},[128,437,438],{"class":138}," remove",[128,440,223],{"class":138},[85,442,443,444,447],{},"Local logout or removal is separate from removing the MoraWP Agent connection.\nReview ",[113,445,446],{"href":56},"Agent access"," when managing other authorized sessions.",[85,449,450,451,456],{},"See ",[113,452,455],{"href":453,"rel":454},"https:\u002F\u002Flearn.chatgpt.com\u002Fdocs\u002Fextend\u002Fmcp?surface=cli",[147],"OpenAI's MCP documentation","\nfor current Codex configuration options.",[458,459,460],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":123,"searchDepth":431,"depth":431,"links":462},[463,464,465,466,467,468],{"id":107,"depth":431,"text":108},{"id":152,"depth":431,"text":153},{"id":226,"depth":431,"text":227},{"id":271,"depth":431,"text":272},{"id":316,"depth":431,"text":70},{"id":408,"depth":431,"text":409},"Add MoraWP to Codex CLI, approve its access, and verify the connection.","md",null,{},{"icon":43},{"title":40,"description":469},"WGv7RjzxReoQ7XpSXBSvsPjYwcXwO0_atZ9VKIRzYxI",[477,479],{"title":31,"path":32,"stem":33,"description":478,"icon":34,"children":-1},"Choose an AI app, decide what it can reach, and approve the connection.",{"title":50,"path":51,"stem":52,"description":480,"icon":53,"children":-1},"Understand website status, connection checks, and access.",1791157875911]