/ Diretório / Playground / cocoindex-claude
● Comunidade cocoindex-io ⚡ Instantâneo

cocoindex-claude

por cocoindex-io · cocoindex-io/cocoindex-claude

Teaches Claude Code how to build CocoIndex data-transformation pipelines — real-time incremental processing for vector DBs and knowledge graphs.

CocoIndex is a real-time data transformation framework for AI pipelines (source → transform → vector DB / knowledge graph). This skill loads its conventions into Claude Code so the model writes idiomatic CocoIndex flows, custom functions, and CLI/API commands instead of guessing at an unfamiliar library.

Por que usar

Principais recursos

Demo ao vivo

Como fica na prática

cocoindex-claude-skill.replay ▶ pronto
0/0

Instalar

Escolha seu cliente

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "cocoindex-claude-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/cocoindex-io/cocoindex-claude",
        "~/.claude/skills/cocoindex-claude"
      ],
      "_inferred": true
    }
  }
}

Abra Claude Desktop → Settings → Developer → Edit Config. Reinicie após salvar.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "cocoindex-claude-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/cocoindex-io/cocoindex-claude",
        "~/.claude/skills/cocoindex-claude"
      ],
      "_inferred": true
    }
  }
}

Cursor usa o mesmo esquema mcpServers que o Claude Desktop. Config de projeto vence a global.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "cocoindex-claude-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/cocoindex-io/cocoindex-claude",
        "~/.claude/skills/cocoindex-claude"
      ],
      "_inferred": true
    }
  }
}

Clique no ícone MCP Servers na barra lateral do Cline, depois "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "cocoindex-claude-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/cocoindex-io/cocoindex-claude",
        "~/.claude/skills/cocoindex-claude"
      ],
      "_inferred": true
    }
  }
}

Mesmo formato do Claude Desktop. Reinicie o Windsurf para aplicar.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "cocoindex-claude-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/cocoindex-io/cocoindex-claude",
        "~/.claude/skills/cocoindex-claude"
      ]
    }
  ]
}

O Continue usa um array de objetos de servidor em vez de um map.

~/.config/zed/settings.json
{
  "context_servers": {
    "cocoindex-claude-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/cocoindex-io/cocoindex-claude",
          "~/.claude/skills/cocoindex-claude"
        ]
      }
    }
  }
}

Adicione em context_servers. Zed recarrega automaticamente ao salvar.

claude mcp add cocoindex-claude-skill -- git clone https://github.com/cocoindex-io/cocoindex-claude ~/.claude/skills/cocoindex-claude

Uma linha só. Verifique com claude mcp list. Remova com claude mcp remove.

Casos de uso

Usos do mundo real: cocoindex-claude

Build your first CocoIndex pipeline from a local folder into a vector DB

👤 Developers evaluating CocoIndex for a RAG use case ⏱ ~30 min intermediate

Quando usar: You've read the CocoIndex homepage and want Claude to scaffold a working flow instead of copy-pasting tutorials.

Pré-requisitos
  • Skill cloned to ~/.claude/skills/cocoindex-claude — git clone https://github.com/cocoindex-io/cocoindex-claude ~/.claude/skills/cocoindex-claude
  • cocoindex Python package installed — pip install cocoindex
Fluxo
  1. Describe the pipeline
    Use the cocoindex skill — scaffold a flow that watches ./docs, chunks markdown, embeds with OpenAI, writes to Qdrant.✓ Copiado
    → Claude generates a flow.py with @cocoindex.flow_def and the right source/transform/export calls
  2. Run and verify
    Now show me the exact CLI commands to build, run, and incrementally update this flow.✓ Copiado
    → cocoindex setup / update / eval commands in the correct order

Resultado: A working flow.py plus the commands to run it — no more guessing at the CocoIndex decorator surface.

Armadilhas
  • Claude invents APIs that don't exist in CocoIndex — Explicitly prompt 'use only APIs documented in the cocoindex skill' — hallucination drops when the skill is in scope
Combine com: filesystem

Write a custom CocoIndex transform function

👤 Engineers extending an existing CocoIndex flow ⏱ ~25 min intermediate

Quando usar: Built-in transforms don't cover your parsing / enrichment step.

Fluxo
  1. Describe the transform
    With the cocoindex skill — write a @cocoindex.op.function that takes a PDF path, extracts tables, returns structured rows.✓ Copiado
    → Idiomatic function signature with correct typed inputs/outputs
  2. Wire it into the flow
    Now plug this into my existing flow at the chunking stage.✓ Copiado
    → Diff against current flow.py with the new op in place

Resultado: A custom transform that obeys CocoIndex's incremental semantics.

Armadilhas
  • Function returns non-deterministic output, breaking incremental processing — Skill reminds Claude that transforms must be pure — if you hit this, re-read the incremental section

Combinações

Combine com outros MCPs para 10× de alavancagem

cocoindex-claude-skill + filesystem

Let Claude actually write the flow.py file to disk, not just print it in chat

Scaffold the CocoIndex flow and save it to ./pipelines/docs_to_qdrant.py.✓ Copiado
cocoindex-claude-skill + postgres

Pipe CocoIndex output into a Postgres vector store and query it from the same session

Build the flow targeting pgvector, then run a retrieval query against it.✓ Copiado

Ferramentas

O que este MCP expõe

FerramentaEntradasQuando chamarCusto
scaffold_flow source type + sink type + transform steps Starting a new pipeline 0
write_custom_op function intent + input/output types Built-in transforms aren't enough 0
cli_guidance task (setup / update / eval / drop) You're unsure whether to rebuild or incrementally update 0

Custo e limites

O que custa rodar

Cota de API
None
Tokens por chamada
Modest — skill loads reference material only when relevant
Monetário
Free — skills are local files
Dica
CocoIndex itself is free; costs come from your embedding model and vector DB, not this skill.

Segurança

Permissões, segredos, alcance

Armazenamento de credenciais: No credentials — pure prompts
Saída de dados: None from the skill itself. Your pipeline calls whichever embedding / DB services you configure.

Solução de problemas

Erros comuns e correções

Skill not invoked when you ask about CocoIndex

Say 'use the cocoindex skill' explicitly, or check it's installed at ~/.claude/skills/cocoindex-claude.

Verificar: ls ~/.claude/skills/cocoindex-claude/SKILL.md
SKILL.md frontmatter wrong

Open the file and verify name / description are populated. Re-clone if partial.

Verificar: head ~/.claude/skills/cocoindex-claude/SKILL.md
Wrong trigger keywords — Claude writes generic Python instead of CocoIndex

Mention CocoIndex explicitly, or say 'scaffold a cocoindex flow_def'.

Alternativas

cocoindex-claude vs. outros

AlternativaQuando usarTroca
LlamaIndex skillsYou want LlamaIndex's retrieval abstractions instead of CocoIndex's transform-centric modelDifferent mental model — LlamaIndex is retrieval-first, CocoIndex is pipeline-first
Hand-written PythonYou need one-off processing and don't want incremental stateNo incremental rebuilds, no framework conventions

Mais

Recursos

📖 Leia o README oficial no GitHub

🐙 Ver issues abertas

🔍 Ver todos os 400+ servidores MCP e Skills