Index Code
index_codeChunk and embed repository files into a semantic code search index, making them searchable by repoId. Free and unauthenticated.
Instructions
Index a repo's files into the live x402-codesearch Worker (https://x402-codesearch-poc.theliminalguy.workers.dev) so they become semantically searchable: each file is chunked, embedded via Workers AI, and upserted into that repoId's Vectorize index. Free, unauthenticated MCP tool — no payment required to index. IMPORTANT: this tool only calls the free POST /index endpoint. The matching semantic search step (POST /search on the same Worker) is real but x402-gated at $0.01 USDC on Base per query, and depends on Cloudflare Vectorize + Workers AI bindings that have no free or local equivalent — so it is NOT exposed here. To actually search a repo you've indexed with this tool, call POST https://x402-codesearch-poc.theliminalguy.workers.dev/search directly with an x402-aware HTTP client (e.g. x402-fetch / x402-axios) and a funded Base wallet, passing { repoId, query }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | One or more files to index for this repoId | |
| repoId | Yes | Identifier to group this repo's indexed chunks under, e.g. "my-repo" or "owner/repo" |