Mana
Guides · Connect your agentOpenCode
Connect your agent

OpenCode

One command and one sign-in, then one paste.

2 steps · 1 min readView as Markdown
Read this guide inclaude.aiChatGPT
On this page4 parts
  1. Add the server

    Run this command in a terminal:

    Terminal
    opencode mcp add mana --url https://mcp.mana.scalarmind.com

    OpenCode opens your browser to sign in and confirm. The mana_* tools appear from the next session.

    If your version has no mcp add

    Add the server to ~/.config/opencode/opencode.json:

    Configuration file
    {
      "mcp": {
        "mana": { "type": "remote", "url": "https://mcp.mana.scalarmind.com" }
      }
    }

    Then start OpenCode and sign in when it asks.

  2. Then paste the prompt

    Start a new session and paste this prompt. It tells the agent to read the standing instructions, which carry the rules your organization keeps.

    The prompt · after Mana is connected
    I have connected the Mana MCP server to this assistant.
    Call mana_standing_instructions and follow what it returns: it carries standard organization rules, and it says when to read it again.

    If you would rather not type the command, ask the agent to run it for you, then start a new session and paste this.

    Then store your first memory.

When the connection is lost

Your browser opens to sign you in. Then a confirmation page names the client and the address it returns to. If you have not accepted the terms of service yet, that page asks you to. The token renews itself.

When OpenCode says the connection was lost, run opencode mcp auth mana. Nothing in the store is lost.

Removing it

Remove Mana undoes the connection and anything the agent added to ~/.config/opencode/AGENTS.md.