How to install this repo?
- User
How to install this repo?
Assistant
Based on the repository documentation, there are two ways to install the ATLAS MCP Server:
- Recommended Method - Using npm:
bashnpm i atlas-mcp-server- Manual Installation from Source:
- Clone the repository:
bashgit clone https://github.com/cyanheads/atlas-mcp-server.git cd atlas-mcp-server- Install dependencies:
bashnpm install- Build the project:
bashnpm run buildImportant System Requirements:
- Node.js version >= 20.0.0 is required (as specified in package.json)
After installation, you'll need to configure the MCP client settings as detailed in the documentation. The server can then be started using:
bashnpm startNote that the project uses TypeScript and includes several build scripts that handle:
- Post-installation setup
- Pre-start validation
- Build file permission management
- Development mode with watch functionality
For development purposes, you can also use:
bashnpm run devThis will run the TypeScript compiler in watch mode alongside the server.
- User
if I had already installed but the repo was updated, how can I update?
Assistant
To update an already installed ATLAS MCP Server, you have two options depending on how you originally installed it:
- If you installed via npm:
bashnpm update atlas-mcp-serveror to force the latest version:
bashnpm install atlas-mcp-server@latest- If you installed from source:
bash# Navigate to your atlas-mcp-server directory cd atlas-mcp-server # Pull the latest changes git pull # Install any new dependencies npm install # Rebuild the project npm run buildAfter updating, it's recommended to:
- Clean the build artifacts first:
bashnpm run clean- Then rebuild:
bashnpm run buildFrom the package.json and build scripts provided, we can see that the update process will trigger:
- User
error: The following untracked working tree files would be overwritten by merge: package-lock.json Please move or remove them before you merge. Aborting
Assistant
This error occurs when you have local changes to package-lock.json that would be overwritten by the update. Here's how to handle this situation:
- Safe Approach (Recommended): First, backup your package-lock.json in case you need it:
bashcp package-lock.json package-lock.json.backupThen remove the conflicting file:
bashrm package-lock.jsonNow you can proceed with the update:
bashgit pull npm install npm run build- Force Approach (Use with caution): If you're sure you don't need your local changes:
bashgit fetch origin git reset --hard origin/main # or whatever your main branch is named npm install npm run build- If you want to keep your local changes but still update:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.