~ / rigs / comet-ml / opik-mcp

comet-ml/opik-mcp

Model Context Protocol (MCP) server for Opik, the open-source LLM observability and evaluation platform, built by Comet. Read traces, log scores, and manage prompts from Claude Code, Cursor, or VS Code.

↗ GitHub ★ 225 Apache-2.0 updated 26d ago project Claude CodeCodex Claude plugin
share on X
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
CONTEXT TAX · EVERY TURN
up to ~5.1k tokens
Claude Code loads MCP tools on demand, so the real cost is usually lower.
Moderate · median rig: 2.3k · breakdown
GUARDRAILS
5/5
Blocks destructive commands · Protects secrets · Pre-tool screening hook · No YOLO mode · Sandbox or ask-first rules · details
Quality 32/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit comet-ml/opik-mcp/.claude ./rig-opik-mcp  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ npx degit comet-ml/opik-mcp/plugins/opik/skills/opik-compare .claude/skills/opik-compare
$ npx degit comet-ml/opik-mcp/plugins/opik/skills/opik-diagnose .claude/skills/opik-diagnose
$ npx degit comet-ml/opik-mcp/plugins/opik/skills/opik-evaluate .claude/skills/opik-evaluate
$ npx degit comet-ml/opik-mcp/plugins/opik/skills/opik-explain .claude/skills/opik-explain
$ npx degit comet-ml/opik-mcp/plugins/opik/skills/opik-instrument .claude/skills/opik-instrument
$ npx degit comet-ml/opik-mcp/plugins/opik/skills/opik-online-eval .claude/skills/opik-online-eval
$ npx degit comet-ml/opik-mcp/plugins/opik/skills/opik-optimize .claude/skills/opik-optimize
$ npx degit comet-ml/opik-mcp/plugins/opik/skills/opik-test .claude/skills/opik-test
$ npx degit comet-ml/opik-mcp/plugins/opik/skills/opik-verify .claude/skills/opik-verify
$ npx degit comet-ml/opik-mcp/plugins/opik/skills/opik .claude/skills/opik
$ curl -fsSL --create-dirs -o .claude/agents/code-reviewer.md https://raw.githubusercontent.com/comet-ml/opik-mcp/main/.claude/agents/code-reviewer.md
$ curl -fsSL --create-dirs -o .claude/agents/test-runner.md https://raw.githubusercontent.com/comet-ml/opik-mcp/main/.claude/agents/test-runner.md
$ curl -fsSL --create-dirs -o .claude/agents/understand.md https://raw.githubusercontent.com/comet-ml/opik-mcp/main/.claude/agents/understand.md

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "permissions": {
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)",
      "Read(~/.opik.config)",
      "Bash(git push --force*)",
      "Bash(git push -f*)",
      "Bash(git push * --force*)",
      "Bash(git push * -f*)",
      "Bash(git push * +*)",
      "Bash(git push * main)",
      "Bash(git push *:main)",
      "Edit(/.claude/skills/**)",
      "Edit(/.agents/skills/**)",
      "Edit(/src/opik_mcp/_version.py)",
      "Edit(/dist/**)",
      "Bash(git * --output*)",
      "Bash(git * --no-index*)",
      "Bash(git * --ext-diff*)",
      "Bash(git * --upload-pack*)",
      "Bash(git * --exec*)",
      "Bash(git difftool*)",
      "Bash(git push * main *)",
      "Bash(git push * refs/heads/main*)",
      "Bash(git -C * push*)"
    ],
    "ask": [
      "Bash(make live)",
      "Bash(make user-flows)",
      "Bash(make install-branch)",
      "Bash(make install-branch *)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Write|Edit|NotebookEdit",
        "hooks": [
          {
            "type": "command",
            "command": "python3 \"$CLAUDE_PROJECT_DIR/.claude/hooks/protect_paths.py\""
          }
        ]
      }
    ]
  }
}

MCP servers (1)

serversourceest. tokens
opik-mcp local / custom · remote 2.5k

Skills (10)

Subagents (3)

code-reviewer
model: opus
|
test-runner
model: haiku
|
understand
model: opus
|

Hooks (2)

eventmatcherruns
PreToolUseWrite|Edit|NotebookEditpython3 "$CLAUDE_PROJECT_DIR/.claude/hooks/protect_paths.py"
PostToolUseWrite|Editpython3 "$CLAUDE_PROJECT_DIR/.claude/hooks/format_python.py"

Slash commands (4)

/address-pr-comments/create-pr/dogfood/install-branch

Permissions

deny (23)
Read(./.env)
Read(./.env.*)
Read(~/.opik.config)
Bash(git push --force*)
Bash(git push -f*)
Bash(git push * --force*)
Bash(git push * -f*)
Bash(git push * +*)
Bash(git push * main)
Bash(git push *:main)
Edit(/.claude/skills/**)
Edit(/.agents/skills/**)
Edit(/src/opik_mcp/_version.py)
Edit(/dist/**)
Bash(git * --output*)
Bash(git * --no-index*)
Bash(git * --ext-diff*)
Bash(git * --upload-pack*)
Bash(git * --exec*)
Bash(git difftool*)
Bash(git push * main *)
Bash(git push * refs/heads/main*)
Bash(git -C * push*)
ask (4)
Bash(make live)
Bash(make user-flows)
Bash(make install-branch)
Bash(make install-branch *)
allow (29)
Bash(make check)
Bash(make test)
Bash(make lint)
Bash(make typecheck)
Bash(make format)
Bash(make conformance)
Bash(make hermetic)
Bash(make hermetic *)
Bash(make skills-verify-source)
Bash(uv run pytest)
Bash(uv run pytest *)
Bash(uv run ruff *)
Bash(uv run mypy)
Bash(uv run mypy *)
Bash(git status)
Bash(git status *)
Bash(git diff)
Bash(git diff *)
Bash(git log)
Bash(git log *)
Bash(git show *)
Bash(git worktree list)
Bash(git fetch origin main)
Bash(git fetch -q origin main)
Bash(gh pr view *)
Bash(gh pr list *)
Bash(gh pr checks *)
Bash(gh pr diff *)
Bash(gh run view *)

Similar rigs

copied ✓