Mogplex Docs

Connections and MCP

Configure REST and MCP connections, understand scope resolution, sync cloud MCP servers to the CLI, and avoid confusing inbound tools with the Mogplex MCP preview.

Connections are how Mogplex agents reach external systems.

They are separate from managed model access, GitHub App coverage, Slack channel links, and the preview path where other MCP clients call into Mogplex.

Direction matters

There are three MCP-related surfaces with different directionality:

SurfaceDirectionUse it for
ConnectionsMogplex calls external REST APIs or MCP serversGive agents tools such as Linear, Supabase, Notion, or Sentry.
MCP Servers APICLI or scripts read your configured external MCP serversSync cloud MCP definitions into local agent hosts.
Mogplex MCP serverExternal MCP clients call MogplexPreview design path for exposing Mogplex as an MCP server.

When a hosted run cannot call an external tool, debug Connections. When another agent host needs to call Mogplex, start with Skills today and the Mogplex MCP server preview for the future path.

Connection types

Mogplex supports two connection categories:

TypeWhat you provideWhat agents get
REST APIBase URL plus optional authA typed external HTTP tool surface.
MCP ServerMCP URL or command plus auth materialTools exposed by the MCP server.

Manual auth modes include none, API key, bearer token, basic auth, and OAuth. Connection credentials are stored server-side and resolved only when the connection is tested, listed for CLI sync, or used by a run.

Quick-add presets

Settings includes MCP presets for common tool providers:

PresetTypical use
ZapierUser-specific actions across connected apps.
NotionWorkspace search, pages, databases, and comments.
SupabaseDatabase, auth, storage, and edge functions.
BrowserbaseCloud browser automation and scraping.
SentryError tracking, performance, and session replay.
Sanity CMSStructured content, media, and releases.
LinearIssues, projects, cycles, and team workflows.

Some presets use direct credentials. Some use OAuth, including managed auth where Mogplex brokers the provider flow.

Use presets first when one exists. Use manual Add Connection for advanced MCPs or REST APIs that do not have a preset yet.

Scope resolution

Connections can be global or project-scoped.

ScopeBehavior
GlobalAvailable to every repo unless that repo excludes it.
ProjectAvailable only to one repo.
ExclusionRemoves one global connection from one repo without deleting it.

For a repo, Mogplex resolves runnable connections by starting with enabled global connections, removing excluded globals, then adding enabled project connections.

Read Connection Scope and Overrides for the full operating model.

MCP limits

Mogplex caps enabled MCP server connections at five per resolved scope.

The cap protects runs from receiving an oversized or noisy tool surface. If a repo reaches the cap, decide whether to:

  • disable a connection
  • exclude a global MCP from that repo
  • move a repo-only tool to project scope
  • replace overlapping MCPs with one better-scoped server

Do not add another broad MCP just because a tool call failed. First confirm the right server is in the resolved set for that repo.

CLI sync

When the CLI is signed in with a Mogplex token, it can fetch your cloud MCP catalog from:

GET /api/v1/mogplex/mcp/servers

The CLI stores the fetched catalog in:

~/.mogplex/mcp-servers.remote.json

On startup, the CLI can use the remote list, the cache, or no cloud MCP list if there is no token and no cache. A network or auth failure can fall back to the cache so existing local work is not blocked by a transient catalog fetch issue.

Use /mcp in the CLI to inspect MCP state during a session.

Security notes

  • Treat MCP server config responses like .env files. They can include decrypted headers, env vars, or OAuth access tokens.
  • Do not paste /api/v1/mogplex/mcp/servers output into issues, PRs, or chat logs.
  • Prefer project-scoped connections when credentials only make sense for one repo.
  • Exclude global MCPs from repos where the tool surface would be unsafe or distracting.
  • Reconnect OAuth-backed presets from Settings when authorization expires.

Troubleshooting

SymptomCheck
Tool missing in a hosted runConfirm the connection is enabled and included in the repo's resolved set.
Tool works globally but not in one repoCheck for a project exclusion or a project-specific connection cap.
CLI does not show cloud MCP serversConfirm CLI token login, then inspect /mcp and the remote cache file.
OAuth preset stopped workingReconnect it from Settings and retest before changing prompts.
MCP response leaks secrets in logsRotate the exposed credential and stop logging MCP config output.
Edit on GitHub

On this page