Guides

How to connect an MCP server, and how do you prove it works?

The connection is three decisions: which service, which auth path, and how you will verify it. This guide walks through a first connection, then the three failure classes that cover most support cases.

Three facts to cite

FactValueWhy it matters
VersionMesocosm Desktop 0.1.5, verified 2026-10-29The MCP Plugins entry and the 7 services may be missing in older builds
Permission7 remote services; 37 tools; 0 write toolsYou are connecting a read-only data service, not a write-back integration
Limit45s per call; 90s for Supabase; 240s for DeepWiki; 5 active services triggers a warningExplains most "it hangs" reports

Before you start

  • Mesocosm Desktop 0.1.5 or later, signed in.
  • A browser you can use for OAuth. The authorization page opens outside the app.
  • For Hugging Face, GitHub, or Slack: a read-only token ready.
  • For Supabase: the 20-character project ref ready.
  • Network access to the vendor endpoints on port 443.
  • One Space open for the test call.

Step 1: Open MCP Plugins

In Mesocosm Desktop, open MCP Plugins from the left sidebar. The page lists the official catalog, with search, category filter, and a refresh button.

If you do not see the entry, stop here and update the app. A build without the entry cannot connect the 7 services. Do not try to add a server URL by hand; the marketplace is the supported path.

Step 2: Pick a service

Start with DeepWiki if you want a no-auth test. It needs no account and exposes 3 read-only tools.

For a real workflow, pick the service that already holds the data:

  • Notion for pages and databases.
  • GitHub for repositories, issues, and pull requests.
  • Slack for channel messages and threads.
  • Linear for issues, projects, and cycles.
  • Supabase for read-only SQL and logs.
  • Hugging Face for models, datasets, papers, and docs.

Search or use the category filter. Each card shows the category, auth type, read-only tag, tool count, and status.

Step 3: Start authorization or token connection

The card's primary button depends on the service:

  • Activate for a no-auth service such as DeepWiki.
  • Authorize for OAuth: Notion, Linear, Supabase.
  • Connect for a read-only token: Hugging Face, GitHub, Slack.

For Supabase, click Configure first and fill the project ref. The field expects exactly 20 lowercase letters or digits. Authorization is disabled until the required config is present.

For Slack, the default path is Connect with a token. An Authorize button appears only when an internal Slack app is configured. That is expected, not a bug.

Step 4: Complete OAuth or paste the token

OAuth path

  1. Click Authorize. Your system browser opens the vendor's consent page.
  2. Sign in to the correct workspace or account.
  3. Approve the requested read scope. For Notion, select the pages or databases you want to expose.
  4. Return to Mesocosm. The card should move from Waiting for authorization to Authorized or Active.

If the browser does not open, check the popup blocker and the default browser. If the callback fails, see Failure 2.

Token path

  1. Click Connect.
  2. Paste the read-only token.
  3. Click Connect with token.
  4. Confirm the card is active and the tool count matches the catalog.

Token scopes:

ServiceTokenMinimum scope
Hugging Facehf_...Read
GitHubgithub_pat_... or ghp_...Contents, Issues, Pull requests: Read
Slackxoxp-... or xoxe.xoxp-...search:read, channels:read, channels:history, users:read

A token is stored in the OS credential store, not in the page or the database. The UI only shows a masked value.

Step 5: Activate the service

Authorization and activation are separate states. A service can be Authorized · Inactive until you click Activate.

Click Activate. The status should become Active. If the authorization-health tag is shown, it should read Authorization valid.

If the card shows Reauthorization required: deauthorize first, click Deauthorize, then connect again. Do not keep clicking Authorize; the old credential is the problem.

Step 6: Confirm the tool count

Each card shows a tool count. Use it as a quick integrity check:

ServiceTools
DeepWiki3
Hugging Face6
Notion4
Linear6
GitHub7
Slack5
Supabase6

If the count is lower than expected, refresh the marketplace. If it stays wrong, update the app; the catalog changed and your build has an older tool list.

Step 7: Run a real call

Open a Space and ask the Agent to use the service. A useful first test names the service, the action, and the expected shape:

"Use the DeepWiki tool to list the documentation topics for github/github-mcp-server."

For Notion:

"Search my Notion for pages about Q4 planning and summarize the top 3 results."

A successful test returns real content, not an empty list. If it returns an empty list, the connection works but the query or page selection is wrong. If it returns an error, note the code and see the failure sections.

Step 8: Ask the Agent to build it

A successful chat call is a demo. Tell the Agent the result you want; it builds the workflow, stores the result, and binds the view and schedule:

"Turn the Notion pages about research into a board in this Space. Show title, source, date, and a one-line summary. Refresh it every Monday."

The Agent binds the capability to a button or a schedule, and can also call it directly. The result lives in the Space, so a view can render it and the next step can build on it.

This is the part that changes the economics. A chat search helps once. A capability that refreshes a research board every Monday helps every week.

The same connection can support a one-off question, a weekly refresh, or an Agent-operated workflow without a new integration. That is the flexibility a raw MCP connection does not give you by itself.

Failure 1: authorization

SymptomLikely causeFix
Card stuck on Waiting for authorizationBrowser blocked, popup blocked, or callback never returnedOpen the authorization URL manually, allow popups, then retry
MCP_NOT_AUTHORIZED or 401No credential, expired credential, or revoked accessDeauthorize, then connect again
REAUTH_REQUIREDToken expired, password changed, or admin revoked the appDeauthorize, reconnect, approve the same scopes
Notion returns nothingPages were not selected during consentDeauthorize, reconnect, select the pages or databases
GitHub 401PAT expired or missing read scopesCreate a new fine-grained PAT with Contents, Issues, and Pull Requests read
Slack blockedWorkspace admin restricts the app or scopesAsk the admin to allow the app; use a token with the required scopes
Supabase fails after config changeproject_ref changed while authorizedDeauthorize, fix the ref, authorize again

The rule: authorization problems are fixed by removing the old credential, not by adding a new one on top. Use Deauthorize first.

Failure 2: network

SymptomLikely causeFix
Every service times outProxy, VPN, DNS, or egress firewallAllow the vendor domains on 443; set the proxy before launching Mesocosm
Browser consent works, callback failsLoopback callback blockedAllow 127.0.0.1:8002; check host firewall
DeepWiki times out on first callRepository wiki is being generatedWait up to 240 seconds, then retry
429 or 5xxVendor rate limit or outageWait, reduce the query, retry later
"Response too large"Result exceeded 1 MiBNarrow the query, filter fields, reduce the page size
Only IPv6 failsIPv6 route is blackholedUse IPv4 or the configured proxy

Domains to allow:

mcp.deepwiki.com
huggingface.co
mcp.notion.com
mcp.linear.app
api.githubcopilot.com
mcp.slack.com
mcp.supabase.com

Also allow the vendor login domains used in the browser: notion.so, linear.app, github.com, slack.com, supabase.com, huggingface.co.

If your team uses a proxy, set HTTPS_PROXY or MESOCOSM_CLOUD_PROXY before starting Mesocosm. Do not set it only in the browser; the desktop process makes the call.

Failure 3: version

"Version" has two meanings. Check both.

Desktop version

If MCP Plugins is missing, or the catalog shows fewer than 7 services, your build is older than the feature. Update Mesocosm Desktop to 0.1.5 or later.

Server capability version

SymptomLikely causeFix
MCP_TOOL_NOT_FOUNDThe vendor renamed or removed a toolUpdate the app; refresh the catalog; retry
Tools list changed after an updateCached catalog from the previous buildRefresh, or deactivate and reactivate the service
Works one day, fails the nextVendor changed its endpoint or protocolCheck the vendor status page; update the app; retry later
"Authorization valid" but calls failCredential is valid, capability changedRun one test call; if it fails, deauthorize and reconnect

Do not treat a protocol mismatch as a user error. If the vendor changed its server, the client needs an update. Report the code and trace id.

Verify the connection in three checks

  1. Status: the card is Active, and the tool count matches the table above.
  2. Real result: a test call returns content, not an empty array.
  3. Reusable result: the Agent can turn the call into a view or a scheduled task.

If all three pass, the connection is done. If only the first passes, you have a credential but not a working integration.

Two limits

The 7 services are read-only

You cannot write back to Notion, Linear, GitHub, Slack, Supabase, Hugging Face, or DeepWiki through these connectors. Outlook Email is a separate connector with mail write actions; do not generalize from it.

Plan the write step in the system that owns the write permission. Mesocosm can prepare the decision and the content; it does not bypass the source system's permissions.

The catalog is curated

You cannot add an arbitrary MCP server URL in this build. The official catalog is the supported path; legacy manually configured servers remain visible but read-only.

That is a deliberate trade-off: a smaller catalog with known auth, scopes, and tool lists is easier to secure than an open registry. If you need a server that is not listed, use the product feedback channel rather than a workaround.

Common questions

Do I need to bind an MCP server to a Space?

No. Activation is per user. Once a service is active, its tools are available to Agents in every Space. You do not need a per-Space binding for the official catalog.

Why does the plugin say read-only?

The 7 remote data services expose only read tools. Write tools are not registered, even if the vendor adds them upstream. Read-only is enforced by the tool whitelist and the upstream scope, not only by a label.

What happens if I activate more than 5 services?

You can. Mesocosm shows a non-blocking warning at more than 5 active read-only services, because tool descriptions take up context. Deactivate the ones you are not using for the current work.

Where do I find the error code?

The card shows a status. When an Agent call fails, the error includes a code such as REAUTH_REQUIRED, MCP_TOOL_NOT_FOUND, or MCP_NOT_AUTHORIZED, plus a trace id in the call metadata. Use the code to choose the failure section; give the trace id to support if you need to escalate.

Sources