New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@coctostan/kotadb

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coctostan/kotadb

Local-only code intelligence tool for CLI agents. SQLite-backed repository indexing and code search via MCP.

latest
Source
npmnpm
Version
2.2.1
Version published
Maintainers
1
Created
Source

KotaDB Application Layer

This directory contains the TypeScript/Bun HTTP API service for indexing and searching code repositories.

Quick Start

Prerequisites

  • Bun v1.1+

Install Dependencies

bun install

Run the Server

# Development mode with watch
bun --watch src/index.ts

# Production mode
bun run src/index.ts

# Custom port
PORT=4000 bun run src/index.ts

The server will start on port 3000 by default. Data is stored in .kotadb/kota.db within your project directory.

Development Commands

Type Checking and Linting

bunx tsc --noEmit    # Type-check without emitting files
bun run lint         # Biome linting

Testing

# Run tests
bun test

Project Structure

src/
  api/          # HTTP routes and database queries
  db/           # SQLite client and database utilities
  indexer/      # Git repository indexing logic
  mcp/          # Model Context Protocol implementation
  types/        # Shared TypeScript types

tests/          # Test suite
  api/          # API endpoint tests
  indexer/      # Indexer tests
  mcp/          # MCP protocol tests
  helpers/      # Test utilities

scripts/        # Bash scripts for development

API Endpoints

  • GET /health - Health check
  • POST /index - Index a repository
  • GET /search?term=query - Search indexed files
  • GET /files/recent - List recently indexed files
  • POST /mcp - Model Context Protocol endpoint

Learn More

Keywords

mcp

FAQs

Package last updated on 01 Mar 2026

Related posts