opik-mcp 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
  <div>
3
3
  <a href="https://www.comet.com/site/products/opik/?from=llm&utm_source=opik&utm_medium=github&utm_content=header_img&utm_campaign=opik-mcp">
4
4
  <picture>
5
- <source media="(prefers-color-scheme: dark)" srcset="docs/assets/logo-dark-mode.svg">
6
- <source media="(prefers-color-scheme: light)" srcset="docs/assets/logo-light-mode.svg">
7
- <img alt="Comet Opik logo" src="docs/assets/logo-light-mode.svg" width="200" />
5
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/comet-ml/opik-mcp/refs/heads/main/docs/assets/logo-dark-mode.svg">
6
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/comet-ml/opik-mcp/refs/heads/main/docs/assets/logo-light-mode.svg">
7
+ <img alt="Comet Opik logo" src="https://raw.githubusercontent.com/comet-ml/opik-mcp/refs/heads/main/docs/assets/logo-light-mode.svg" width="200" />
8
8
  </picture>
9
9
  </a>
10
10
  <br>
package/build/cli.js CHANGED
@@ -3,6 +3,7 @@ import yargs from 'yargs';
3
3
  import { hideBin } from 'yargs/helpers';
4
4
  import { main } from './index.js';
5
5
  import configImport from './config.js';
6
+ const config = configImport;
6
7
  // Parse command line arguments
7
8
  const argv = yargs(hideBin(process.argv))
8
9
  .scriptName('opik-mcp')
package/build/config.js CHANGED
@@ -124,7 +124,7 @@ function parseCommandLineArgs() {
124
124
  /**
125
125
  * Load environment variables with fallbacks
126
126
  */
127
- function loadConfig() {
127
+ export function loadConfig() {
128
128
  // Parse command-line arguments first
129
129
  const args = parseCommandLineArgs();
130
130
  // Try to load from process.env and command-line args, with command-line taking precedence
package/build/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import fs from 'fs';
2
+ import fetch from 'node-fetch';
2
3
  // Import other modules
3
4
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
4
5
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
@@ -10,8 +11,9 @@ import './utils/env.js';
10
11
  // Setup file-based logging
11
12
  const logFile = '/tmp/opik-mcp.log';
12
13
  // Import configuration
13
- import configImport from './config.js';
14
- const config = configImport;
14
+ import { loadConfig } from './config.js';
15
+ const config = loadConfig();
16
+ console.log(config);
15
17
  // Define logging functions
16
18
  function logToFile(message) {
17
19
  // Only log if debug mode is enabled
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opik-mcp",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "MCP server to interact with Opik - Enables automated prompt optimization",
5
5
  "type": "module",
6
6
  "bin": {
@@ -31,28 +31,29 @@
31
31
  "author": "Opik",
32
32
  "license": "Apache-2.0",
33
33
  "dependencies": {
34
+ "cors": "^2.8.5",
34
35
  "dotenv": "^16.4.5",
36
+ "express": "^5.0.1",
37
+ "node-fetch": "^3.3.2",
35
38
  "opik": "^1.6.8",
36
39
  "yargs": "^17.7.2",
37
- "zod": "^3.24.2"
40
+ "zod": "^3.24.2",
41
+ "@modelcontextprotocol/sdk": "^1.6.1"
38
42
  },
39
43
  "devDependencies": {
40
44
  "@jest/globals": "^29.7.0",
41
- "@modelcontextprotocol/sdk": "^1.6.1",
45
+
42
46
  "@types/cors": "^2.8.17",
43
47
  "@types/express": "^5.0.0",
44
48
  "@types/jest": "^29.5.12",
45
49
  "@types/node": "^22.13.9",
46
50
  "@typescript-eslint/eslint-plugin": "^7.4.0",
47
51
  "@typescript-eslint/parser": "^7.4.0",
48
- "cors": "^2.8.5",
49
52
  "eslint": "^8.57.0",
50
53
  "eslint-config-prettier": "^9.1.0",
51
54
  "eslint-plugin-prettier": "^5.1.3",
52
- "express": "^5.0.1",
53
55
  "jest": "^29.7.0",
54
56
  "jest-environment-jsdom": "^29.7.0",
55
- "node-fetch": "^3.3.2",
56
57
  "pre-commit": "^1.2.2",
57
58
  "prettier": "^3.2.5",
58
59
  "shx": "^0.3.4",