Skip to content
Back to skills

Quickstart

ASecurity

Install cocoindex-code, auto-register MCP via supercli plugin install, then prefer the fast direct search capability for repository search; keep MCP search for MCP-native flows.

  • 54 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 6, 2026
ai-agentstypescriptbashdatabase

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned September 6, 2026

npx -y skills add javimosch/supercli --skill quickstart --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Quickstart?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Quickstart
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/javimosch-quickstart-e7cb2c12/badge)](https://www.skillsdirectory.com/skills/javimosch-quickstart-e7cb2c12)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cocoindex-code.quickstart
description: Install cocoindex-code, auto-register MCP via supercli plugin install, then prefer the fast direct search capability for repository search; keep MCP search for MCP-native flows.
tags: cocoindex,mcp,semantic-search,code,agents
---

# cocoindex-code Quickstart

Use this when you need semantic code search over a repository via SuperCLI.

Prefer `supercli cocoindex code search` for normal bot and human usage. It is the easiest and fastest path.

## 1) Install upstream binary

```bash
pipx install cocoindex-code
# or
uv tool install --upgrade cocoindex-code --prerelease explicit --with "cocoindex>=1.0.0a24"
```

## 2) Install plugin (auto MCP registration)

```bash
supercli plugins learn cocoindex-code
supercli plugins install cocoindex-code --json
```

This creates MCP server `cocoindex-code` (if missing) and binds capabilities `cocoindex.code.search` and `cocoindex.mcp.search`.

## 3) Build index once (recommended)

```bash
supercli cocoindex index build --json
```

For small repos this is optional; indexing can happen on first search.

## 4) Preferred search flow (humans and bots)

```bash
supercli cocoindex code search --query "how are sessions stored" --limit 5 --json
supercli cocoindex code search --query "error handling middleware" --offset 5 --json
supercli cocoindex code search --query "entrypoint reads process.argv rawArgs and parses flags" --paths "cli/*" --limit 5 --json
```

`cocoindex code search` runs directly against the installed `cocoindex-code` package, so it avoids MCP server startup overhead and targets the current repo by default.

## 5) MCP-native search (optional)

```bash
supercli cocoindex mcp search --query "how are sessions stored" --limit 5 --json
```

Use this only when you explicitly need MCP-native execution.

## 6) Advanced search with language/path filters

```bash
supercli mcp call --mcp-server cocoindex-code --tool search --input-json '{"query":"database connection","languages":["typescript"],"paths":["src/*"],"limit":10}' --timeout-ms 180000 --json
```

## Optional Configuration

```bash
export COCOINDEX_CODE_ROOT_PATH=/path/to/repo
export COCOINDEX_CODE_EMBEDDING_MODEL=sbert/nomic-ai/CodeRankEmbed
```

`COCOINDEX_CODE_EXCLUDED_PATTERNS` expects a JSON array string, for example:

```bash
export COCOINDEX_CODE_EXCLUDED_PATTERNS='["**/generated/**","**/*.snap"]'
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…