Connect an Agent

GitHub Copilot

Set up MoraWP for Copilot in VS Code or the Copilot CLI.

VS Code interface

  1. Open the Command Palette and run MCP: Add Server.
  2. Select HTTP, enter https://api.morawp.com/mcp, and name the server morawp.
  3. Choose user configuration or the intended workspace. Start the server and complete OAuth when prompted.
  4. In Copilot Chat, select Agent mode and check its available tools.

Alternatively, merge this into the workspace's .vscode/mcp.json:

JSON
{"servers":{"morawp":{"type":"http","url":"https://api.morawp.com/mcp"}}}

VS Code uses servers, not the mcpServers root used by several other clients.

Official VS Code example, reviewed October 9, 2026. Its sample server is not MoraWP. Source.

Copilot CLI

Run /mcp add inside an interactive Copilot session. Select HTTP, enter MoraWP's URL, and save the server. Use /mcp to inspect it. CLI configuration is separate from VS Code's JSON.

Complete the server's OAuth prompt if your installed CLI offers it. If it cannot authorize this remote service, use the VS Code flow above rather than inserting a static key.

Copilot app and hosted Agents

Do not assume VS Code authentication transfers to the Copilot app or a hosted coding Agent. Use that surface's own MCP settings and authorization controls. This guide's reproducible configuration targets VS Code and the interactive CLI.

Approve and check access

First connect a WordPress website in MoraWP. When the client opens sign-in, review the Workspace, websites, and Ability access before approving. Read only limits changes; enabled Integrations may still expose private fields. No static Agent key is needed.

In a new session with MoraWP enabled, ask:

Use MoraWP to list the websites this connection can access.
Do not create, edit, delete, or publish anything.

Check: the intended website appears. Then read one page to check WordPress access. A configured server alone is not proof of a working read.

For missing tools, see Missing Abilities. To stop access, disconnect the Agent in MoraWP and remove its local server entry. Local removal alone is not MoraWP revocation.

Official references

VS Code MCP setup · Copilot CLI setup

Vendor instructions reviewed October 9, 2026. Client interfaces and account policies may change.

MoraWP documentation