Skip to main content
Glama

Opik MCP Server

by comet-ml
cli.ts924 B
#!/usr/bin/env node import yargs from 'yargs'; import { hideBin } from 'yargs/helpers'; import configImport from './config.js'; // Parse command line arguments const argv = yargs(hideBin(process.argv)) .scriptName('opik-mcp') .usage('$0 [args]') .option('transport', { alias: 't', description: 'Transport to use (stdio or sse)', type: 'string', default: 'stdio', choices: ['stdio', 'sse'], }) .option('port', { alias: 'p', description: 'Port to listen on (for sse transport)', type: 'number', default: 3001, }) .help() .alias('help', 'h') .strict(false) // Allow unknown options .parseSync(); // Update config based on CLI arguments configImport.transport = argv.transport as 'stdio' | 'sse'; if (argv.transport === 'sse') { configImport.ssePort = argv.port as number; } // Import and start the server (index.js will handle the main() call) import './index.js';

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/comet-ml/opik-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server