This guide provides the fastest path to get a complete MCIP stack running locally using the recommended Docker Compose setup.
Before you begin, ensure you have the following installed and configured:
First, set up your project directory and configuration file.
Now, populate your .env file with the necessary credentials.
| Service | Configuration Steps |
|---|---|
| OpenAI | 1. Generate an API key from your OpenAI dashboard. <br> 2. Add the key to your .env file. MCIP defaults to the text-embedding-3-small model. |
| Pinecone | 1. Create a new index in your Pinecone account. <br> 2. Configure the index for 512 dimensions and use the cosine similarity metric. <br> 3. Add your Pinecone index name and environment to your .env file. |
| Redis | No action needed. For local development, the Docker Compose setup "handles everything automatically". |
MCIP provides deep integration with Vendure. To get started quickly, connect your Vendure instance: 1.Find your Vendure GraphQL endpoint and authentication credentials. 2. Add this information to your .env configuration file. Note: If you are using a different platform, you will need to build an adapter, which is a more advanced process.
With your configuration complete, you can launch the entire MCIP stack. The Docker Compose configuration "sets up the entire stack with a single command".
Run the following command in your project's root directory:
docker-compose upThis command ensures all components (the MCIP server, Redis, etc.) are correctly configured and networked together.
Once the stack is running, you can connect and send your first query.