Skip to content

MCP Server Not Starting

The MCP server runs as a subprocess that your coding agent launches automatically. When it fails to start, the agent either reports an MCP error or silently loses access to your documents. Here’s how to diagnose and fix it.

The agent tries to run archcore mcp but can’t find the binary.

Check:

Terminal window
archcore --version

If this returns “command not found,” the binary isn’t installed or isn’t in your PATH.

Fix: Install Archcore following the Quick Start, then verify:

Terminal window
which archcore

This should print a path like /usr/local/bin/archcore or ~/.local/bin/archcore. If the binary exists but isn’t in your PATH, add its directory to your shell profile (~/.bashrc, ~/.zshrc, or equivalent).

On macOS and Linux, the binary needs execute permissions. The install script sets this automatically, but manual downloads or file transfers can strip it.

Check:

Terminal window
ls -l $(which archcore)

Look for x in the permissions (e.g., -rwxr-xr-x).

Fix:

Terminal window
chmod +x $(which archcore)

The MCP config JSON tells the agent what command to run. If the command or args fields are wrong, the server won’t start.

Check: Open your agent’s MCP config file and verify it matches this structure:

{
"mcpServers": {
"archcore": {
"command": "archcore",
"args": ["mcp"]
}
}
}

For GitHub Copilot, the format is slightly different:

{
"servers": {
"archcore": {
"type": "stdio",
"command": "archcore",
"args": ["mcp"]
}
}
}

Fix: If the config is wrong, the fastest fix is to regenerate it:

Terminal window
archcore mcp install

See Supported Agents for config file locations per agent.

If you have multiple installations (e.g., a global install and a project-local one), the agent might pick up the wrong version — or one that’s broken.

Check:

Terminal window
which archcore
archcore --version

On some systems, you can also check for duplicates:

Terminal window
which -a archcore

Fix: Remove the extra installation, or ensure your PATH resolves to the correct one first. After fixing, re-run archcore mcp install to regenerate the config.

The MCP server needs an initialized project. If there’s no .archcore/ directory in the current project root, the server has nothing to serve.

Check:

Terminal window
ls .archcore/

Fix:

Terminal window
archcore init

This creates the .archcore/ directory, writes settings.json, and configures MCP and hooks for your detected agents — all in one step.

When you’re not sure what’s wrong, archcore doctor checks everything at once:

Terminal window
archcore doctor

It verifies:

  • settings.json exists and is valid
  • Document structure and naming
  • MCP configuration for detected agents
  • Server reachability (if a server URL is configured)

The output tells you what passed, what failed, and what to do about it.