Usa Opik MCP con Sokko.
Conecta Opik MCP y dile a Sokko qué hacer. Ejecuta las acciones que pides y reacciona a lo que ocurre, sin workflows ni código.
Funciona con más de 1.000 herramientas · Sin código
Acciones
Todo lo que Sokko puede hacer en Opik MCP
Cada acción de Opik MCP que Sokko puede ejecutar. Pídela en una frase y listo.
List
List Opik entities with optional filters and pagination.
Output is a pipe-delimited table with id, name, and a few entity-specific
columns, plus a pagination footer when more pages exist. When filters
apply, the first line echoes what was applied. Use read() to get full
details on any specific item.
Project-scoped types require their parent:
- trace: project_id or project_name
- span: project_id or project_name (searches spans across the project)
- thread: project_id or project_name
- agent_insights_issue: project_id or project_name (Diagnostics issues,
open ones by default; columns: severity, status, total_occurrences,
latest_count, last_seen)
- score_name: project_id or project_name (the project's feedback score
names — trace, span and thread scores together, paged, no id)
- online_rule: project_id or project_name (the automation rules scoring
this project's traces)
- annotation_queue: project_id or project_name; takes `name`, `filters`, `sort`
- project_metric: project_id or project_name, plus metric_type — one
metric over time. Rows are time buckets, so page/size/sort are refused.
- dataset_item: dataset_id, or experiment_ids to compare runs case by case.
Filter the dataset's own cases on data.<key>, full_data, tags, source,
trace_id (no sort); read('dataset_item', id) is one case whole
- prompt_version: prompt_id
Workspace-wide types (project, experiment, prompt, dataset) accept
an optional `name` substring filter. trace, span, thread, experiment and
dataset_item accept an OQL `filters` string; all but dataset_item also
take a `sort`, and trace, span, thread take a `since`/`until` window and
free-text `search`.
Read
Read any Opik entity by ID, name, or opik:// URI.
A UUID `id` costs one API call. A name also works for project,
experiment, prompt, dataset and annotation_queue: two calls, and a name
several records share returns them as candidates to retry by id.
Special shapes:
- project: returns {project, summary, vocabulary, contains, url} — the
week's figures against the 7 days before (SDK traffic only, as the Logs
cards show, though the UI opens on 30 days), the score names and usage
keys to filter on, and the freshest experiment / dataset / prompt version
/ run. `since`/`until` move the summary's window; the rest is current.
- trace: returns {trace, spans, spansTruncated} with up to 200 spans
inlined, their bodies slim, and spanBodies saying what the cut took.
- prompt: returns {prompt, versions, versionsTruncated} with up to 100 versions.
- annotation_queue: annotator_view.html comes back as html_chars, with the
fields=['annotator_view.html'] call that returns it whole.
- thread: returns {thread, messages, messagesTruncated, messageBodies} —
each message is one turn's trace input/output + a trace_id to
read('trace', id). Bodies are slim, the thread's own first/last message
included, since those are copies of the first and last turn. Needs
project scope: pass a thread link/URI, or project_id/project_name.
- An inlined collection longer than what fits sets its …Truncated flag and
adds moreSpans / moreMessages / moreVersions: the count, and the exact
list(...) call that continues from where the inlined part stopped.
- agent_insights_issue: returns {issue, example_trace_ids, details, url,
trace_url_template} — the Diagnostics issue with cause and suggested fix,
the deduped ids of traces that exhibit it (open one with read('trace', id)),
the per-day breakdown, the issue's Diagnostics page link, and a template
for linking any example trace (both links omitted when the Opik URL or
the session's workspace is unknown). Needs project scope like thread.
- All others: the flat record from /v1/private/{entity}/{id}.
Output is a one-line `[read: …]` header (entity_type, id, size in
tokens) followed by the record as compact JSON. The record you asked for
is never truncated: a large answer is large, and narrowing is done by
asking a narrower question — `fields` to name the paths you want back, a
span rather than its trace, a filtered `list` rather than a composite
read. A `fields` answer says in its header that it was projected.
The children a composite read inlines are the exception. Their bodies come
back slim: a field over ~10 KB is cut and base64 images are replaced with
"[image]", which is what keeps one attachment from costing more than the
other 199 spans together. The read says so in `spanBodies` /
`messageBodies`, and the named child is whole again through its own
read('span', id) or read('trace', trace_id).
Read skill
Load one Opik agent skill — the same skills Opik publishes for coding agents. Use it when the skill you need is not already in your context.
WHEN TO CALL: before instrumenting, evaluating, or debugging with Opik — no local copy in the project, nothing fetched earlier this session.
Match the user's task to a skill:
- opik: "why aren't my traces showing up", "how do I add metadata to a span", "how do I version a prompt" — any SDK lookup. To instrument, use opik-instrument.
- opik-annotate: "build a custom annotator view", "set up an annotation queue".
- opik-compare: "did my fix work", "compare against the baseline", "run the regression suite", "why did quality drop", "which cases regressed", "compare these two experiments".
- opik-diagnose: "what is broken in production", "which traces need attention", "find failing or slow traces", "triage my agent".
- opik-evaluate: "evaluate my agent", "measure quality", "build an eval", "write an LLM judge", "how good is my RAG" — a first experiment with scores.
- opik-explain: "why did this trace fail", "explain this trace", "debug this trace", "why is my agent slow or wrong".
- opik-instrument: "instrument my code", "add opik tracing", "add observability", "trace my agent".
- opik-online-eval: "score production traces", "monitor hallucinations in prod", "take this judge live", "set up an online evaluation rule".
- opik-optimize: "optimize this prompt", "improve my system prompt", "tune the prompt against my dataset", "run the prompt optimizer".
- opik-test: "turn this into a test", "add a regression case for this trace", "make sure this doesn't happen again", "capture this failure".
- opik-verify: "is this safe to ship", "can I merge this", "go/no-go on this change", "gate this release" — a ship/hold verdict against a release policy.
`skill_name` accepts any of these forms:
- `opik` — the skill itself
- `<skill>/references/<file>.md` — one document inside a skill; a SKILL.md ends with the list of its references
Schema
Return the JSON Schema, OAuth scope, and one validated example for a write operation's `data` payload, or — for `list.trace` / `list.span` / `list.thread` / `list.experiment` — the list tool's filterable fields with their operators and its sortable fields. Pure lookup — no backend call.
Send feedback
Send feedback about this MCP server (opik-mcp) to the Opik team at Comet. It is not for the user's Opik data. Call it when an opik-mcp tool failed, gave a wrong or confusing result, or cannot do what the user needs, or when the user asks to send feedback. Do not call it when the task went well, to report progress, or as a test. Send at most one report per task. Describe the problem in general terms: no trace content, names, IDs or secrets from the user's data. The report carries the workspace name and the user's Comet login.
Write
Create, update, or annotate Opik entities. The `operation` field selects which entity/verb pair to invoke; `data` carries the payload for that operation (single object, or array up to 1000 for batch).
Operations:
- trace.create: Log a single trace (or a batch). Sets up the parent for spans/scores/comments. (batch ok)
- trace.update: Finalize or amend an existing trace by id. (batch ok)
- span.create: Log a single span on an existing trace (or a batch).; required: trace_id (batch ok)
- score.create: Attach a numeric feedback score to a trace, span, or thread.; required: target, target_id (batch ok)
- comment.create: Attach a free-text comment to a trace, span, or thread.; required: target, target_id
- prompt_version.save: Save a new prompt version. Creates the prompt by name if missing; BE auto-assigns the commit when omitted.
- dataset.create: Create a dataset. Pass type='test_suite' for an evaluation suite (items carry assertions and run as tests); default is a plain dataset.
- dataset_item.upsert: Upsert items into a dataset or test suite; data is the envelope {dataset_name|dataset_id, items: [...]}.; required: dataset_name, dataset_id
- experiment.create: Create an experiment scoped to a dataset or test suite.; required: dataset_name, dataset_id
- experiment_item.create: Attach trace + dataset_item rows to an experiment. Always the array envelope.; required: experiment_id, dataset_item_id, trace_id (batch ok)
- thread.close: Close a thread (mark it inactive/done). Pass thread_id + project (project_name or project_id).
- thread.open: Reopen a previously closed thread (mark it active). Pass thread_id + project (project_name or project_id).
- agent_insights_issue.resolve: Mark a Diagnostics (Agent Insights) issue resolved — the failure it groups has been dealt with. It leaves the default issue list and shows under status='resolved'. Pass issue_id + project_id or project_name. Do this only when the user asks: whether a failure is fixed is their call, not an inference from the traces.
- agent_insights_issue.close: Mark a Diagnostics (Agent Insights) issue closed — not worth acting on, as opposed to fixed. It leaves the default issue list and shows under status='closed'. Pass issue_id + project_id or project_name. Do this only when the user asks.
- agent_insights_issue.reopen: Put a resolved or closed Diagnostics (Agent Insights) issue back on the open list, for a failure that came back or was closed too early. Pass issue_id + project_id or project_name.
- agent_insights_job.enable: Turn Diagnostics (Agent Insights) on for a project: it then scans daily and groups recurring failures into issues you can read with list('agent_insights_issue', …). Pass project_id or project_name. Idempotent — an existing job is switched back on. Pair it with agent_insights_job.trigger to scan now instead of waiting for the nightly run. Refused when the deployment has no Diagnostics.
- agent_insights_job.trigger: Run a Diagnostics (Agent Insights) scan for a project now, over the last 24 hours, instead of waiting for the nightly run. Fire and forget: the response says where to watch it, and issues appear in list('agent_insights_issue', …) once the run finishes (minutes). Needs Diagnostics enabled for the project — see agent_insights_job.enable.
- annotation_queue.create: Create a project's annotation queue of traces or threads to review; annotator_view sets a custom HTML view, read_skill('opik-annotate') first.
- annotation_queue.update: Change an annotation queue by id; only the fields passed change. clear_annotator_view removes its custom view.
Notes:
- `data` shape: object for single, array for batch (where supported). Always-envelope ops (dataset_item.upsert, experiment_item.create) take their list inside the envelope, not at the top level.
- `dry_run=true`: validate + check authorization without calling the backend. Returns {dry_run, would_call: {method, path, body_size}}.
- A schema mismatch returns `validation_failed` with the issues and one corrected example; `schema(operation)` returns the JSON Schema.
Conéctate
Añade Opik MCP a tu Slack en dos minutos.
Sin flujos que configurar. Activa las herramientas que ya usas y tu agente se pone a trabajar.
Añadir a Slack
1
Añade Sokko a Slack
Un clic desde el marketplace de Slack. Todo tu equipo tiene Sokko de una vez.
2
Conecta tus herramientas
Sokko funciona con más de 1000 apps y cualquier servidor MCP.
Martin
9:53 AM
@Sokko
¿Qué puedes hacer con Opik MCP?
3
Pon a Sokko a trabajar
@menciona a Sokko en cualquier canal y arranca. Minutos, no un fin de semana.
Preguntas, respondidas.
Sokko es un asistente de IA que vive en tu Slack. Conecta tus apps, pide lo que necesitas en lenguaje natural y Sokko se encarga del trabajo por ti.
Regístrate en Sokko, pídele a Sokko que se conecte a Opik MCP y aprueba la conexión cuando se te solicite. A partir de ahí puedes pedirle a Sokko que haga cosas en Opik MCP cuando quieras.
No. No hay nada que crear ni configurar. Le pides a Sokko en Slack igual que se lo pedirías a un colega, y Sokko se encarga del resto.
Sí. Pídelo una vez y dile a Sokko cuándo repetirlo, como cada lunes a las 9 h, y se convierte en una rutina que se ejecuta sin ti.
Leer y actuar sobre los datos de Opik MCP, y lanzar workflows cuando algo cambia. Dile a Sokko el resultado que quieres y se encarga del resto.
Sí. Sokko se conecta a más de 1.000 apps y a cualquier servidor MCP, así que puedes pedir tareas que abarquen Opik MCP y el resto de tu stack en una sola petición.