Connect Muse Code to eContract

Connect eContract to Muse Code, Meta’s terminal coding agent.

Sign in with OAuth

Recommended for personal use: you sign in once and the client keeps the connection alive.

  1. 1Add eContract to the mcp_servers block of ~/.config/muse/settings.json.
  2. 2Run muse mcp login econtract and sign in to eContract in the browser. Muse Code keeps and renews the token for you.
~/.config/muse/settings.json
{
  "schema_version": 1,
  "mcp_servers": {
    "econtract": {
      "transport": "streamable_http",
      "url": "https://api.econtract.online/mcp"
    }
  }
}

Use an API key

For unattended runs. Create a key, store it in the ECONTRACT_API_KEY environment variable and keep it out of shared files. Create an API key

  1. 1Set the ECONTRACT_API_KEY environment variable to your API key.
  2. 2Use this configuration instead. Muse Code fills in environment variables in the headers.
~/.config/muse/settings.json
{
  "schema_version": 1,
  "mcp_servers": {
    "econtract": {
      "transport": "streamable_http",
      "url": "https://api.econtract.online/mcp",
      "headers": {
        "Authorization": "Bearer ${ECONTRACT_API_KEY}"
      }
    }
  }
}

Try it

Once connected, ask your agent in plain language, for example:

  • “Send the attached NDA to [email protected] for signature and give me the signing link.”
  • “Which of my contracts are still waiting for signatures? Remind the signers.”
  • “Check whether the signatures in this PDF are valid and summarise its key terms.”

Agents prepare and send contracts, but they cannot sign or decline for anyone: each signer signs through their own link after confirming a code sent to their email.

These steps follow the official Muse Code documentation as of 2026-10. If the menus have changed since, see the documentation below.

Muse Code MCP documentation