[{"data":1,"prerenderedAt":793},["ShallowReactive",2],{"navigation_docs":3,"-agents-opencode":211,"-agents-opencode-surround":788},[4,36,160,186],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":35},"Start here","i-lucide-rocket","\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",false,{"title":31,"icon":34,"path":37,"stem":38,"children":39,"page":35},"\u002Fagents","2.agents",[40,45,50,55,60,65,70,75,80,85,90,95,100,105,110,115,120,125,130,135,140,145,150,155],{"title":41,"path":42,"stem":43,"icon":44},"ChatGPT","\u002Fagents\u002Fchatgpt","2.agents\u002F01.chatgpt","MorawpAgentChatgpt",{"title":46,"path":47,"stem":48,"icon":49},"Claude","\u002Fagents\u002Fclaude","2.agents\u002F02.claude","MorawpAgentClaude",{"title":51,"path":52,"stem":53,"icon":54},"Codex","\u002Fagents\u002Fcodex","2.agents\u002F03.codex","MorawpAgentCodex",{"title":56,"path":57,"stem":58,"icon":59},"Claude Code","\u002Fagents\u002Fclaude-code","2.agents\u002F04.claude-code","MorawpAgentClaudeCode",{"title":61,"path":62,"stem":63,"icon":64},"Cursor","\u002Fagents\u002Fcursor","2.agents\u002F05.cursor","MorawpAgentCursor",{"title":66,"path":67,"stem":68,"icon":69},"Grok","\u002Fagents\u002Fgrok","2.agents\u002F06.grok","MorawpAgentGrok",{"title":71,"path":72,"stem":73,"icon":74},"Perplexity","\u002Fagents\u002Fperplexity","2.agents\u002F07.perplexity","MorawpAgentPerplexity",{"title":76,"path":77,"stem":78,"icon":79},"Windsurf","\u002Fagents\u002Fwindsurf","2.agents\u002F08.windsurf","MorawpAgentWindsurf",{"title":81,"path":82,"stem":83,"icon":84},"Cline","\u002Fagents\u002Fcline","2.agents\u002F09.cline","MorawpAgentCline",{"title":86,"path":87,"stem":88,"icon":89},"Google Antigravity","\u002Fagents\u002Fantigravity","2.agents\u002F10.antigravity","MorawpAgentAntigravity",{"title":91,"path":92,"stem":93,"icon":94},"OpenCode","\u002Fagents\u002Fopencode","2.agents\u002F11.opencode","MorawpAgentOpencode",{"title":96,"path":97,"stem":98,"icon":99},"Zed","\u002Fagents\u002Fzed","2.agents\u002F12.zed","MorawpAgentZed",{"title":101,"path":102,"stem":103,"icon":104},"Warp","\u002Fagents\u002Fwarp","2.agents\u002F13.warp","MorawpAgentWarp",{"title":106,"path":107,"stem":108,"icon":109},"Kiro","\u002Fagents\u002Fkiro","2.agents\u002F14.kiro","MorawpAgentKiro",{"title":111,"path":112,"stem":113,"icon":114},"Continue","\u002Fagents\u002Fcontinue","2.agents\u002F15.continue","MorawpAgentContinue",{"title":116,"path":117,"stem":118,"icon":119},"JetBrains Junie","\u002Fagents\u002Fjunie","2.agents\u002F16.junie","MorawpAgentJunie",{"title":121,"path":122,"stem":123,"icon":124},"Goose","\u002Fagents\u002Fgoose","2.agents\u002F17.goose","MorawpAgentGoose",{"title":126,"path":127,"stem":128,"icon":129},"Qwen Code","\u002Fagents\u002Fqwen","2.agents\u002F18.qwen","MorawpAgentQwen",{"title":131,"path":132,"stem":133,"icon":134},"Kimi Code","\u002Fagents\u002Fkimi","2.agents\u002F19.kimi","MorawpAgentKimi",{"title":136,"path":137,"stem":138,"icon":139},"Grok Build","\u002Fagents\u002Fgrok-build","2.agents\u002F20.grok-build","MorawpAgentGrokBuild",{"title":141,"path":142,"stem":143,"icon":144},"Trae","\u002Fagents\u002Ftrae","2.agents\u002F21.trae","MorawpAgentTrae",{"title":146,"path":147,"stem":148,"icon":149},"GitHub Copilot","\u002Fagents\u002Fgithub-copilot","2.agents\u002F22.github-copilot","MorawpAgentGithubCopilot",{"title":151,"path":152,"stem":153,"icon":154},"Roo Code","\u002Fagents\u002Froo-code","2.agents\u002F23.roo-code","MorawpAgentRooCode",{"title":156,"path":157,"stem":158,"icon":159},"Other AI apps","\u002Fagents\u002Fother-apps","2.agents\u002F24.other-apps","MorawpAgentCustomOauth",{"title":161,"icon":162,"path":163,"stem":164,"children":165,"page":35},"Use MoraWP","i-lucide-book-open","\u002Fguides","3.guides",[166,171,176,181],{"title":167,"path":168,"stem":169,"icon":170},"Websites","\u002Fguides\u002Fwebsites","3.guides\u002F1.websites","i-lucide-cloud",{"title":172,"path":173,"stem":174,"icon":175},"Agents","\u002Fguides\u002Fagents","3.guides\u002F2.agents","i-lucide-sparkles",{"title":177,"path":178,"stem":179,"icon":180},"Abilities","\u002Fguides\u002Fabilities","3.guides\u002F3.abilities","i-lucide-wrench",{"title":182,"path":183,"stem":184,"icon":185},"Activity","\u002Fguides\u002Factivity","3.guides\u002F4.activity","i-lucide-history",{"title":187,"icon":188,"path":189,"stem":190,"children":191,"page":35},"Troubleshooting","i-lucide-life-buoy","\u002Ftroubleshooting","4.troubleshooting",[192,197,201,206],{"title":193,"path":194,"stem":195,"icon":196},"WordPress tool failed","\u002Ftroubleshooting\u002Fwordpress-tool-failed","4.troubleshooting\u002F1.wordpress-tool-failed","i-lucide-alert-circle",{"title":198,"path":199,"stem":200,"icon":34},"Agent connection","\u002Ftroubleshooting\u002Fagent-connection","4.troubleshooting\u002F2.agent-connection",{"title":202,"path":203,"stem":204,"icon":205},"Missing Abilities","\u002Ftroubleshooting\u002Fmissing-abilities","4.troubleshooting\u002F3.missing-abilities","i-lucide-search",{"title":207,"path":208,"stem":209,"icon":210},"Access denied","\u002Ftroubleshooting\u002Faccess-denied","4.troubleshooting\u002F4.access-denied","i-lucide-shield",{"id":212,"title":91,"body":213,"description":781,"extension":782,"links":783,"meta":784,"navigation":785,"path":92,"seo":786,"stem":93,"__hash__":787},"docs\u002F2.agents\u002F11.opencode.md",{"type":214,"value":215,"toc":773},"minimark",[216,225,230,238,261,280,284,291,294,302,306,309,356,363,514,518,521,634,637,660,678,682,690,697,701,759,766,769],[217,218,219,220,224],"p",{},"OpenCode connects to MoraWP as a remote MCP server with OAuth. Check your version\nbefore choosing a configuration: ",[221,222,223],"strong",{},"1.x and 2.x use different JSON structures",".",[226,227,229],"h2",{"id":228},"before-you-begin","Before you begin",[217,231,232,233,237],{},"Connect a ",[234,235,236],"a",{"href":27},"WordPress website",". In your terminal:",[239,240,245],"pre",{"className":241,"code":242,"language":243,"meta":244,"style":244},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","opencode --version\n","bash","",[246,247,248],"code",{"__ignoreMap":244},[249,250,253,257],"span",{"class":251,"line":252},"line",1,[249,254,256],{"class":255},"sBMFI","opencode",[249,258,260],{"class":259},"sfazB"," --version\n",[217,262,263,264,267,268,274,275,224],{},"The 2.x command syntax was checked with ",[221,265,266],{},"2.0.18",". The 1.x configuration below\nfollows ",[234,269,273],{"href":270,"rel":271},"https:\u002F\u002Fdocs.opencode.ai\u002Fdocs\u002Fmcp-servers\u002F",[272],"nofollow","OpenCode's 1.x MCP reference",".\nFor 2.x, see ",[234,276,279],{"href":277,"rel":278},"https:\u002F\u002Fopencode.ai\u002Fv2\u002Fdocs\u002Fmcp-servers\u002F",[272],"the 2.x MCP reference",[226,281,283],{"id":282},"desktop-and-browser-interface","Desktop and browser interface",[217,285,286,287,290],{},"OpenCode is available as a terminal client, desktop app, and web app. The remote\nserver must be configured on the ",[221,288,289],{},"OpenCode backend running your session",".\nSelect the intended project before using the version-specific configuration below.",[217,292,293],{},"If your installed graphical interface exposes MCP management, inspect MoraWP\nthere and follow its authorization prompt. Otherwise configure and authenticate\nthrough the matching CLI on that backend, then open a new graphical session.\nA browser tab connected to another backend does not inherit your local login.",[217,295,296,297,224],{},"The official MCP reference documents the configuration and OAuth commands;\nthis guide does not invent a desktop-only menu path. See\n",[234,298,301],{"href":299,"rel":300},"https:\u002F\u002Fopencode.ai\u002Fv2\u002Fdocs",[272],"OpenCode's available interfaces",[226,303,305],{"id":304},"opencode-2x","OpenCode 2.x",[217,307,308],{},"From the project that should use MoraWP, run:",[239,310,312],{"className":241,"code":311,"language":243,"meta":244,"style":244},"opencode mcp add morawp --url https:\u002F\u002Fapi.morawp.com\u002Fmcp\nopencode mcp auth morawp\nopencode mcp list\n",[246,313,314,333,346],{"__ignoreMap":244},[249,315,316,318,321,324,327,330],{"class":251,"line":252},[249,317,256],{"class":255},[249,319,320],{"class":259}," mcp",[249,322,323],{"class":259}," add",[249,325,326],{"class":259}," morawp",[249,328,329],{"class":259}," --url",[249,331,332],{"class":259}," https:\u002F\u002Fapi.morawp.com\u002Fmcp\n",[249,334,336,338,340,343],{"class":251,"line":335},2,[249,337,256],{"class":255},[249,339,320],{"class":259},[249,341,342],{"class":259}," auth",[249,344,345],{"class":259}," morawp\n",[249,347,349,351,353],{"class":251,"line":348},3,[249,350,256],{"class":255},[249,352,320],{"class":259},[249,354,355],{"class":259}," list\n",[217,357,358,359,362],{},"The add command writes project configuration. To add it globally instead,\ninclude ",[246,360,361],{},"--global"," in the add command. If you edit configuration by hand, merge\nthis entry into your existing file without replacing other servers:",[239,364,368],{"className":365,"code":366,"language":367,"meta":244,"style":244},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"$schema\": \"https:\u002F\u002Fopencode.ai\u002Fconfig.json\",\n  \"mcp\": {\n    \"servers\": {\n      \"morawp\": {\n        \"type\": \"remote\",\n        \"url\": \"https:\u002F\u002Fapi.morawp.com\u002Fmcp\"\n      }\n    }\n  }\n}\n","json",[246,369,370,376,402,416,431,447,470,490,496,502,508],{"__ignoreMap":244},[249,371,372],{"class":251,"line":252},[249,373,375],{"class":374},"sMK4o","{\n",[249,377,378,381,385,388,391,394,397,399],{"class":251,"line":335},[249,379,380],{"class":374},"  \"",[249,382,384],{"class":383},"spNyl","$schema",[249,386,387],{"class":374},"\"",[249,389,390],{"class":374},":",[249,392,393],{"class":374}," \"",[249,395,396],{"class":259},"https:\u002F\u002Fopencode.ai\u002Fconfig.json",[249,398,387],{"class":374},[249,400,401],{"class":374},",\n",[249,403,404,406,409,411,413],{"class":251,"line":348},[249,405,380],{"class":374},[249,407,408],{"class":383},"mcp",[249,410,387],{"class":374},[249,412,390],{"class":374},[249,414,415],{"class":374}," {\n",[249,417,419,422,425,427,429],{"class":251,"line":418},4,[249,420,421],{"class":374},"    \"",[249,423,424],{"class":255},"servers",[249,426,387],{"class":374},[249,428,390],{"class":374},[249,430,415],{"class":374},[249,432,434,437,441,443,445],{"class":251,"line":433},5,[249,435,436],{"class":374},"      \"",[249,438,440],{"class":439},"sbssI","morawp",[249,442,387],{"class":374},[249,444,390],{"class":374},[249,446,415],{"class":374},[249,448,450,453,457,459,461,463,466,468],{"class":251,"line":449},6,[249,451,452],{"class":374},"        \"",[249,454,456],{"class":455},"swJcz","type",[249,458,387],{"class":374},[249,460,390],{"class":374},[249,462,393],{"class":374},[249,464,465],{"class":259},"remote",[249,467,387],{"class":374},[249,469,401],{"class":374},[249,471,473,475,478,480,482,484,487],{"class":251,"line":472},7,[249,474,452],{"class":374},[249,476,477],{"class":455},"url",[249,479,387],{"class":374},[249,481,390],{"class":374},[249,483,393],{"class":374},[249,485,486],{"class":259},"https:\u002F\u002Fapi.morawp.com\u002Fmcp",[249,488,489],{"class":374},"\"\n",[249,491,493],{"class":251,"line":492},8,[249,494,495],{"class":374},"      }\n",[249,497,499],{"class":251,"line":498},9,[249,500,501],{"class":374},"    }\n",[249,503,505],{"class":251,"line":504},10,[249,506,507],{"class":374},"  }\n",[249,509,511],{"class":251,"line":510},11,[249,512,513],{"class":374},"}\n",[226,515,517],{"id":516},"opencode-1x","OpenCode 1.x",[217,519,520],{},"Merge the following into the OpenCode configuration used by your project:",[239,522,524],{"className":365,"code":523,"language":367,"meta":244,"style":244},"{\n  \"$schema\": \"https:\u002F\u002Fopencode.ai\u002Fconfig.json\",\n  \"mcp\": {\n    \"morawp\": {\n      \"type\": \"remote\",\n      \"url\": \"https:\u002F\u002Fapi.morawp.com\u002Fmcp\",\n      \"enabled\": true\n    }\n  }\n}\n",[246,525,526,530,548,560,572,590,608,622,626,630],{"__ignoreMap":244},[249,527,528],{"class":251,"line":252},[249,529,375],{"class":374},[249,531,532,534,536,538,540,542,544,546],{"class":251,"line":335},[249,533,380],{"class":374},[249,535,384],{"class":383},[249,537,387],{"class":374},[249,539,390],{"class":374},[249,541,393],{"class":374},[249,543,396],{"class":259},[249,545,387],{"class":374},[249,547,401],{"class":374},[249,549,550,552,554,556,558],{"class":251,"line":348},[249,551,380],{"class":374},[249,553,408],{"class":383},[249,555,387],{"class":374},[249,557,390],{"class":374},[249,559,415],{"class":374},[249,561,562,564,566,568,570],{"class":251,"line":418},[249,563,421],{"class":374},[249,565,440],{"class":255},[249,567,387],{"class":374},[249,569,390],{"class":374},[249,571,415],{"class":374},[249,573,574,576,578,580,582,584,586,588],{"class":251,"line":433},[249,575,436],{"class":374},[249,577,456],{"class":439},[249,579,387],{"class":374},[249,581,390],{"class":374},[249,583,393],{"class":374},[249,585,465],{"class":259},[249,587,387],{"class":374},[249,589,401],{"class":374},[249,591,592,594,596,598,600,602,604,606],{"class":251,"line":449},[249,593,436],{"class":374},[249,595,477],{"class":439},[249,597,387],{"class":374},[249,599,390],{"class":374},[249,601,393],{"class":374},[249,603,486],{"class":259},[249,605,387],{"class":374},[249,607,401],{"class":374},[249,609,610,612,615,617,619],{"class":251,"line":472},[249,611,436],{"class":374},[249,613,614],{"class":439},"enabled",[249,616,387],{"class":374},[249,618,390],{"class":374},[249,620,621],{"class":374}," true\n",[249,623,624],{"class":251,"line":492},[249,625,501],{"class":374},[249,627,628],{"class":251,"line":498},[249,629,507],{"class":374},[249,631,632],{"class":251,"line":504},[249,633,513],{"class":374},[217,635,636],{},"Then run:",[239,638,640],{"className":241,"code":639,"language":243,"meta":244,"style":244},"opencode mcp auth morawp\nopencode mcp list\n",[246,641,642,652],{"__ignoreMap":244},[249,643,644,646,648,650],{"class":251,"line":252},[249,645,256],{"class":255},[249,647,320],{"class":259},[249,649,342],{"class":259},[249,651,345],{"class":259},[249,653,654,656,658],{"class":251,"line":335},[249,655,256],{"class":255},[249,657,320],{"class":259},[249,659,355],{"class":259},[217,661,662,663,666,667,669,670,673,674,677],{},"Do not copy ",[246,664,665],{},"mcp.servers"," into a 1.x configuration, or the 1.x ",[246,668,614],{}," setting\ninto a 2.x server entry. OAuth is automatic; do not set ",[246,671,672],{},"oauth"," to ",[246,675,676],{},"false"," for MoraWP.",[226,679,681],{"id":680},"approve-and-verify","Approve and verify",[217,683,684,685,689],{},"The authentication command starts browser sign-in. Review and\n",[234,686,688],{"href":687},"\u002Fgetting-started\u002Fconnect-agent#approve-access-in-morawp","approve access in MoraWP",",\nthen return to OpenCode. The server list should show a connected MoraWP server.",[217,691,692,693,224],{},"Ask OpenCode to list the websites allowed for this connection without changing\nanything. The intended website should appear. Continue with\n",[234,694,696],{"href":695},"\u002Fgetting-started\u002Fquickstart#_3-read-one-page","Read one page",[226,698,700],{"id":699},"if-it-does-not-work","If it does not work",[702,703,704,717],"table",{},[705,706,707],"thead",{},[708,709,710,714],"tr",{},[711,712,713],"th",{},"Problem",[711,715,716],{},"Next step",[718,719,720,729,737,749],"tbody",{},[708,721,722,726],{},[723,724,725],"td",{},"Configuration is rejected",[723,727,728],{},"Check the major version and the corresponding JSON structure.",[708,730,731,734],{},[723,732,733],{},"MoraWP appears in one project only",[723,735,736],{},"Check whether you used project or global configuration.",[708,738,739,742],{},[723,740,741],{},"Authentication is required",[723,743,744,745,748],{},"Run ",[246,746,747],{},"opencode mcp auth morawp"," and complete the new browser request.",[708,750,751,754],{},[723,752,753],{},"A website or action is missing",[723,755,756,757,224],{},"Use ",[234,758,202],{"href":203},[217,760,761,762,765],{},"To stop access, disconnect the Agent in MoraWP. For local cleanup, run\n",[246,763,764],{},"opencode mcp logout morawp"," and remove only MoraWP's entry from the configuration\nwhere you added it. Do not replace the entire MCP configuration.",[217,767,768],{},"References and CLI help were reviewed on October 9, 2026.",[770,771,772],"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);}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}",{"title":244,"searchDepth":335,"depth":335,"links":774},[775,776,777,778,779,780],{"id":228,"depth":335,"text":229},{"id":282,"depth":335,"text":283},{"id":304,"depth":335,"text":305},{"id":516,"depth":335,"text":517},{"id":680,"depth":335,"text":681},{"id":699,"depth":335,"text":700},"Configure MoraWP for OpenCode 1.x or 2.x and complete browser authorization.","md",null,{},{"icon":94},{"title":91,"description":781},"FgSupZpbney1KnpoX1yIV6zWxDZnRCxsBY-2U9AETmM",[789,791],{"title":86,"path":87,"stem":88,"description":790,"icon":89,"children":-1},"Connect MoraWP in Antigravity's desktop app, IDE, or CLI.",{"title":96,"path":97,"stem":98,"description":792,"icon":99,"children":-1},"Add MoraWP as a remote server in Zed's Agent settings.",1791572433236]