Navigation
Opik Mcp: MCP-Driven IDE & Unified AI Workflows - MCP Implementation

Opik Mcp: MCP-Driven IDE & Unified AI Workflows

Opik Mcp streamlines AI workflows with MCP-driven IDE integration, unifying access to prompts, projects, traces, and metrics for seamless development and collaboration.

Research And Data
4.7(117 reviews)
175 saves
81 comments

Users create an average of 41 projects per month with this tool

About Opik Mcp

Opik Mcp Features

好的,我需要根据用户提供的原始内容生成一个全新的HTML页面主体代码。用户要求不要页头页尾,所有外链的a标签都要加上nofollow。主题需要从原始文本中总结,生成五个h2标题,分别是: 1. What is Opik Mcp: MCP-Driven IDE & Unified AI Workflows? 2. How to use Opik Mcp: MCP-Driven IDE & Unified AI Workflows? 3. Key Features of Opik Mcp: MCP-Driven IDE & Unified AI Workflows? 4. Use cases of Opik Mcp: MCP-Driven IDE & Unified AI Workflows? 5. FAQ from Opik Mcp: MCP-Driven IDE & Unified AI Workflows? 用户强调不要直接复制原始内容,要像专业技术人员写的,避免AI生成的痕迹。同时要使用交替的句式长度,偶尔有口语化表达和过渡词,并保留一些思考痕迹。 首先,我需要仔细阅读原始文本,理解其核心内容。原始内容介绍了Opik MCP作为一个模型上下文协议的实现,支持多种传输机制,集成到IDE,提供统一接口。包括安装、配置、IDE集成(如Cursor)、运输选项、开发和文档等部分。 接下来,我需要将这些信息重新组织到五个h2标题下。每个标题下的内容需要总结原始文本中的关键点,但用不同的表达方式。 对于第一个h2,"What is...",需要简要介绍Opik MCP是什么,它的核心功能和目的。原始文本中的第一段和项目符号可以作为基础,但需要更简洁。 第二个h2,“How to use”需要指导用户如何开始使用,包括安装步骤、配置、IDE集成步骤等。要简化原始中的安装和配置步骤,可能分点说明。 第三个h2,“Key Features”应该列出主要功能,比如传输选项、集成能力、实验性功能等。原始中的Features部分和Transport Options可以整合。 第四个h2,“Use cases”需要说明实际应用场景,比如本地开发、远程协作、自动化工作流等,可能来自原始文本的Use cases或示例。 第五个h2,“FAQ”需要根据常见问题生成,比如运输选项的区别、兼容性、API密钥获取、错误处理等,可能需要推测用户可能的问题,但基于原始内容中的注意事项,如SSE的实验性。 同时,所有外部链接必须添加rel="nofollow",需要检查原始文本中的链接并添加。 需要注意避免直接复制,比如原始中的安装步骤可能需要重新措辞,比如用“Navigate to the project directory”代替“Replace paths...”。 另外,用户要求html格式,不要页头页尾,所以直接写body内的内容,使用div或section结构。可能需要使用ul、ol、code标签来格式化命令和配置示例。 现在开始组织每个部分: 1. What is Opik MCP: - 定义为模型上下文协议的实现,支持多种传输机制,集成IDE,统一接口。 - 目标是简化AI工作流,本地或远程使用。 2. How to Use: - 安装步骤:克隆仓库,安装依赖。 - 配置:设置API密钥、工作区。 - 集成到Cursor:提供配置示例,替换路径和API密钥。 - 启动传输选项:stdio和SSE的命令。 3. Key Features: - 多种传输机制(stdio和SSE,实验性) - IDE无缝集成(Cursor支持) - API驱动的工作流管理 - 调试和日志选项 4. Use Cases: - 本地开发环境中的实时模型交互 - 远程服务器上的模型协调 - 自动化流水线的集成 - 跨团队协作(通过SSE) 5. FAQ: - 运输选项的比较(stdio vs SSE) - 兼容的IDE版本(Cursor的版本) - 如何获取API密钥(指向文档) - SSE的稳定性(实验性,查看文档) - 错误处理(检查日志和文档) 检查是否所有关键点都被涵盖,没有遗漏重要信息。确保链接正确添加nofollow。例如,原始中的文档链接需要添加rel="nofollow"。 现在开始转换为HTML结构: 使用div包裹每个h2部分,可能用section或article。每个部分下的内容用段落、列表或代码块。 注意命令行指令用code或pre标签,配置示例用pre或blockquotes。 确保所有外链都有nofollow,比如原始中的文档链接: 例如: SSE Transport documentation 但要注意原始中的链接是否是外链,比如文档链接可能是本地路径,可能不需要nofollow。但用户要求是外链要加,可能需要明确。比如,原始中的链接如"https://www.comet.com/opik/api"是外链,需要加nofollow。而文档链接如"docs/sse-transport.md"可能是内部的,可能不需要。但用户可能希望所有a标签都加,不管内外?需要确认。用户说“外链”,所以内部文档链接可能不需要。但可能用户要保险起见,所有a标签都加。可能需要按用户要求,所有外链都要加。所以需要判断哪些链接是外部的。例如: 在FAQ部分,如果指向外部资源,如问题中的文档链接如果是外部的,需加。但原始中的链接如"https://www.comet.com/opik/api"是外部,所以需要加nofollow。 在配置示例中的API URL也是外部链接,需要加。 在FAQ中的链接到文档可能内部,但用户可能希望所有外链都加,所以需要判断。 可能用户希望所有a标签不管内外都加,但根据用户指令,是“外链”,即外部网站的链接。所以需要识别外部链接。 现在生成HTML代码: 确保每个部分正确,比如: 在How to Use里,安装步骤: npm install 配置部分: npm run build 在配置Cursor的示例中,使用
包裹JSON配置。

在FAQ中的链接如指向文档:

例如:“Refer to the SSE Transport documentation for details.”

但如果是内部文档链接,可能不需要nofollow,但用户可能希望所有a标签都加,所以可能需要加。用户可能希望所有链接都加,所以遵循严格,添加。

现在编写完整的HTML结构:

Opik Mcp FAQ

What is Opik MCP...

... content ... ...

Content

Comet Opik logo
Opik MCP Server
(Model Context Protocol)

A Model Context Protocol (MCP) implementation for the Opik platform with support for multiple transport mechanisms, enabling seamless integration with IDEs and providing a unified interface for Opik's capabilities.

License Node.js Version TypeScript

WebsiteSlack communityTwitterDocumentation

⚠️ Notice: SSE (Server-Sent Events) transport support is currently experimental and untested. For production use, we recommend using the direct process execution approach shown in the IDE integration examples.

🚀 What is Opik MCP Server?

Opik MCP Server is an open-source implementation of the Model Context Protocol for the Opik platform. It provides a unified interface for interacting with Opik's capabilities, supporting multiple transport mechanisms for flexible integration into various environments.


You can use Opik MCP Server for:

  • IDE Integration:

    • Seamlessly integrate with Cursor and other compatible IDEs
    • Provide direct access to Opik's capabilities from your development environment
  • Unified API Access:

    • Access all Opik features through a standardized protocol
    • Leverage multiple transport options (stdio, SSE) for different integration scenarios
  • Platform Management:

    • Manage prompts, projects, traces, and metrics through a consistent interface
    • Organize and monitor your LLM applications efficiently

Features

  • Prompts Management : Create, list, update, and delete prompts
  • Projects/Workspaces Management : Organize and manage projects
  • Traces : Track and analyze trace data
  • Metrics : Gather and query metrics data

Quick Start

Installation

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

To integrate with Cursor IDE, 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. Also replace YOUR_API_KEY with your actual Opik API key.

Available Commands

The project includes a Makefile for common operations:

# 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

Transport Options

Standard Input/Output

Ideal for local integration where the client and server run on the same machine.

make start-stdio

Server-Sent Events (SSE)

Enables remote access and multiple simultaneous clients over HTTP. Note that this transport option is experimental.

make start-sse

For detailed information about the SSE transport, see docs/sse-transport.md.

Development

Testing

# Run all tests
npm test

# Run specific test suite
npm test -- tests/transports/sse-transport.test.ts

Pre-commit Hooks

This project uses pre-commit hooks to ensure code quality:

# Run pre-commit checks manually
make precommit

Documentation

License

Apache 2.0

Related MCP Servers & Clients