confluence-cloud-mcp icon indicating copy to clipboard operation
confluence-cloud-mcp copied to clipboard

CONFLUENCE_DOMAIN variable error

Open marte1309 opened this issue 1 year ago • 1 comments

I have this error

file:///P:/Claude/confluence-cloud-mcp/build/index.js:19 throw new Error(Missing required environment variable: ${envVar}); ^

Error: Missing required environment variable: CONFLUENCE_DOMAIN at file:///P:/Claude/confluence-cloud-mcp/build/index.js:19:15 at ModuleJob.run (node:internal/modules/esm/module_job:234:25) at async ModuleLoader.import (node:internal/modules/esm/loader:473:24) at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)

Node.js v20.17.0

marte1309 avatar Jan 13 '25 19:01 marte1309

Hi @marte1309 , if you're using the README instructions for MCP integration there are typos for the env variables, the correct spelling should look something like this:

{
  "mcpServers": {
    "confluence": {
      "command": "node",
      "args": ["path/to/build/index.js"],
      "env": {
        "CONFLUENCE_DOMAIN”: "your-domain.atlassian.net",
        "CONFLUENCE_EMAIL”: "[email protected]",
        "CONFLUENCE_API_TOKEN": "your-api-token"
      }
    }
  }
}

cfdude avatar Jan 15 '25 02:01 cfdude