Skip to content

MCP servers

Adding an MCP server from the gallery

Moka is a full Model Context Protocol client. It supports tools, resources, prompts, server instructions, and MCP Apps (interactive UI).

Settings → MCP servers → Add server → Gallery lists popular servers: Everything (reference), Filesystem, Memory, Sequential thinking, Playwright, Fetch, Git, DeepWiki, Context7 and GitHub. One click adds and connects it.

New servers are added to the active workspace and connected right away.

Use environment references anywhere in command, args, env, url and headers:

{
"id": "github",
"name": "GitHub",
"transport": "http",
"url": "https://api.githubcopilot.com/mcp/",
"headers": { "Authorization": "Bearer ${GITHUB_TOKEN}" }
}

stdio servers inherit a safe default environment (PATH, HOME, …) plus whatever you add under Environment variables.

Once a server is connected, its tools are listed in its settings page:

  • Switch — hide a tool from the model (for example delete_repository). Hidden tools can still be called from the Tool runner.
  • Try — jump to the tool runner with that tool selected.

Tools are exposed to models as <serverId>__<toolName> (sanitised to letters, numbers, _ and -, max 64 characters), so two servers can safely have tools with the same name.

  • Servers connect lazily — when a workspace that uses them is opened, when you chat, or when you click Connect.
  • Changing transport settings reconnects automatically; renaming a server or toggling tools doesn’t.
  • Server instructions (from the initialize result) are appended to the system prompt.
  • Every JSON-RPC message in both directions appears in the Inspector under RPC, and stderr lines under Logs.
SymptomFix
spawn npx ENOENTNode isn’t on the PATH Moka sees. Use an absolute path to npx, or add PATH under environment variables.
spawn uvx ENOENTInstall uv (brew install uv).
Times out connectingThe first npx -y download can be slow; raise Timeout (ms) under Advanced.
HTTP 401 / 403Check headers; remember ${VAR} must be set in the environment Moka was started from.
Connects but no toolsThe server may only expose resources/prompts — browse them in the Tools view.

More in Troubleshooting.