Aidex

Created By
CSCSoftware4 months ago
MCP Server that gives AI coding assistants instant access to your entire codebase through a persistent Tree-sitter index. Instead of grep flooding your context with 2000+ tokens per search, AiDex returns precise identifier matches in ~50 tokens. Supports 11 languages: C#, TypeScript, JavaScript, Rust, Python, C, C++, Java, Go, PHP, Ruby. Features include method signatures, cross-project search, time-based filtering, session notes, and an interactive browser-based viewer.
Overview

Stop wasting 80% of your AI's context window on code searches.

AiDex indexes your codebase once using Tree-sitter and gives AI assistants instant access to every function, class, and method signature.

The Problem

Every time your AI assistant searches for code, it:

  • Greps through thousands of files → hundreds of results flood the context
  • Reads file after file to understand the structure → more context consumed
  • Forgets everything when the session ends → repeat from scratch

A single "Where is X defined?" question can eat 2,000+ tokens. Do that 10 times and you've burned half your context on navigation alone.

The Solution

Index once, query forever:

Before (grep): grep "PlayerHealth" → 200 hits in 40 files → 2000+ tokens consumed, 5+ tool calls

After (AiDex): aidex_query({ term: "PlayerHealth" }) → Engine.cs:45, Player.cs:23, UI.cs:156 → ~50 tokens, 1 tool call

Why Not Just Grep?

Grep/RipgrepAiDex
Context usage2000+ tokens per search~50 tokens
ResultsAll text matchesOnly identifiers
Precisionlog matches catalog, logarithmlog finds only log
PersistenceStarts fresh every timeIndex survives sessions
StructureFlat text searchKnows methods, classes, types

Features

  • Smart Extraction: Uses Tree-sitter to parse code properly — indexes identifiers, not keywords
  • Method Signatures: Get function prototypes without reading implementations
  • Project Summary: Auto-detected entry points, main classes, language breakdown
  • Incremental Updates: Re-index single files after changes
  • Cross-Project Links: Query across multiple related projects
  • Time-based Filtering: Find what changed in the last hour, day, or week
  • Session Notes: Leave reminders for the next session — persists in the database
  • Interactive Viewer: Browser-based project explorer with live reload

Supported Languages

C#, TypeScript, JavaScript, Rust, Python, C, C++, Java, Go, PHP, Ruby

Quick Start

npm install -g aidex-mcp
aidex setup

aidex setup automatically detects and registers AiDex with your installed AI clients (Claude Code, Claude Desktop, Cursor, Windsurf, Gemini CLI, VS Code Copilot).

Technology

  • Parser: Tree-sitter — Real parsing, not regex
  • Database: SQLite with WAL mode — Fast, single file, zero config
  • Protocol: MCP — Works with any compatible AI assistant

Server Config

{
  "mcpServers": {
    "aidex": {
      "command": "aidex",
      "args": []
    }
  }
}
Project Info
Created At
4 months ago
Updated At
4 months ago
Author Name
CSCSoftware
Star
-
Language
-
License
-
Category

Recommend Servers

View All
Payai X402 Tools

2 hours ago
Payai X402 Tools

2 hours ago
AI Work Market — USDC settlement rails for AI labor on Base Mainnet)
@Dario (DME)

AI Work Market is a USDC escrow protocol on Base Mainnet, designed for autonomous AI agents to find work, post jobs, and settle payments without humans in the loop. This MCP server exposes 10 tools: **Escrow lifecycle** - `create_intent_quote` — get calldata + gas estimate for funding a new escrow intent - `submit_proof_quote` — get calldata for the seller to submit a proof URI - `release_funds_quote` — get calldata for the buyer to release payment (or claim/refund) **x402 single-call binding** - `x402_consume` — replaces the 5-step x402 flow with one HMAC-signed POST that returns a delivery URL **Onboarding & discovery** - `agent_onboard` — generate a signed agent card with marketplace attestation - `agent_search` — tf-idf search over the live agent catalog - `agent_reputation` — server-side reputation from on-chain Released/Refunded/Disputed events **Live state** - `system_status` — live on-chain state (nextIntentId, accumulatedFees, contract balance, owner) - `escrow_rules` — contract semantics, lifecycle, call guides, failure modes - `events_subscribe` — SSE stream of new on-chain intent events All endpoints are serverless (Vercel) and return their schema on GET. No browser, no wallet UI required for an agent to integrate. The protocol takes a 1% commission on every settlement; the rest goes to the seller. The full AgentCard is at `/.well-known/agent-card.json` (A2A-compatible). The OpenAPI 3.0.3 spec is at `/.well-known/openapi.json` with `components.securitySchemes` (none, hmacX402). `robots.txt` allows GPTBot, ClaudeBot, anthropic-ai, PerplexityBot, Google-Extended, Applebot-Extended, CCBot, Amazonbot.

a day ago