Quick StartInstallation
Manual Installation
-
Clone the repository:
git clone https://github.com/comet-ml/opik-mcp.git
cd opik-mcp
-
Install dependencies and build:
npm install
npm run build
Configuration
-
Create a .env file based on the example:
cp .env.example .env
-
Edit .env with your specific configuration.
Starting the Server
-
Start with stdio transport (default):
npm run start:stdio
-
Start with SSE transport for network access (experimental):
npm run start:sse
IDE Integration
Cursor Integration
-
Create a .cursor/mcp.json file in your project directory with the following configuration:
{
"mcpServers": {
"opik": {
"command": "/path/to/node",
"args": [
"/path/to/opik-mcp/build/index.js",
"--apiUrl",
"https://www.comet.com/opik/api",
"--apiKey",
"YOUR_API_KEY",
"--workspace",
"default",
"--debug",
"true"
],
"env": {
"OPIK_API_BASE_URL": "https://www.comet.com/opik/api",
"OPIK_API_KEY": "YOUR_API_KEY",
"OPIK_WORKSPACE_NAME": "default"
}
}
}
}
-
Replace /path/to/node with the path to your Node.js executable and /path/to/opik-mcp with the path to your opik-mcp installation.
-
Replace YOUR_API_KEY with your actual Opik API key.
Available Commands
-
Display all available commands:
make help
-
Run tests:
make test
-
Run transport-specific tests:
make test-transport
-
Start the server with SSE transport (experimental):
make start-sse
-
Start the server with stdio transport:
make start-stdio
Development
Testing
-
Run all tests:
npm test
-
Run specific test suite:
npm test -- tests/transports/sse-transport.test.ts
Pre-commit Hooks
- Run pre-commit checks manually:
make precommit
License
Clone the repository:
git clone https://github.com/comet-ml/opik-mcp.git
cd opik-mcp
Install dependencies and build:
npm install
npm run build
Create a .env file based on the example:
cp .env.example .env
Edit .env with your specific configuration.
Start with stdio transport (default):
npm run start:stdio
Start with SSE transport for network access (experimental):
npm run start:sse
Create a .cursor/mcp.json file in your project directory with the following configuration:
{
"mcpServers": {
"opik": {
"command": "/path/to/node",
"args": [
"/path/to/opik-mcp/build/index.js",
"--apiUrl",
"https://www.comet.com/opik/api",
"--apiKey",
"YOUR_API_KEY",
"--workspace",
"default",
"--debug",
"true"
],
"env": {
"OPIK_API_BASE_URL": "https://www.comet.com/opik/api",
"OPIK_API_KEY": "YOUR_API_KEY",
"OPIK_WORKSPACE_NAME": "default"
}
}
}
}
Replace /path/to/node with the path to your Node.js executable and /path/to/opik-mcp with the path to your opik-mcp installation.
Replace YOUR_API_KEY with your actual Opik API key.
Display all available commands:
make help
Run tests:
make test
Run transport-specific tests:
make test-transport
Start the server with SSE transport (experimental):
make start-sse
Start the server with stdio transport:
make start-stdio
Run all tests:
npm test
Run specific test suite:
npm test -- tests/transports/sse-transport.test.ts
make precommit
Apache 2.0