c

codeweaver

@com.knitli/codeweaver
0 Stars 4 次浏览 com.knitli 更新于 2026-08-23

Semantic code search built for AI agents. Hybrid, AST-aware, context for 166 languages.

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "code-weaver": {
      "args": [
        "code-weaver@0.1.0a3"
      ],
      "command": "uvx"
    },
    "docker.io/knitli/codeweaver": {
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/knitli/codeweaver:0.1.0-alpha.3"
      ],
      "command": "docker"
    }
  }
}

可用工具 (5 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

tavily_search 14 个参数 需填 1 项

Search the web for current information on any topic. Use for news, facts, or data beyond your knowledge cutoff. Returns snippets and source URLs.

必填参数:query

tavily_extract 6 个参数 需填 1 项

Extract content from URLs. Returns raw page content in markdown or text format.

必填参数:urls

tavily_crawl 11 个参数 需填 1 项

Crawl a website starting from a URL. Extracts content from pages with configurable depth and breadth.

必填参数:url

tavily_map 8 个参数 需填 1 项

Map a website's structure. Returns a list of URLs found starting from the base URL.

必填参数:url

tavily_research 2 个参数 需填 1 项

Perform comprehensive research on a given topic or question. Use this tool when you need to gather information from multiple sources to answer a question or complete a task. Returns a detailed response based on the research findings.

必填参数:input

服务介绍

CodeWeaver

Semantic code search for Claude, Gemini, ChatGPT 鈥� across 166+ languages

Python Version
License
Alpha Release
MCP Compatible

Installation 鈥�
Features 鈥�
Comparison


What It Does

CodeWeaver gives Claude and other AI agents precise context from your codebase. Not keyword grep. Not whole-file dumps. Actual structural understanding through hybrid semantic search.

You, or Claude, or your intern, can ask questions like:

  • "Where do we handle OAuth tokens?"
  • "Find all API endpoint definitions"
  • "Show me error handling in the payment flow"

CodeWeaver returns the exact functions, classes, and code blocks 鈥� even in unfamiliar languages or massive repositories.

Example:

Without CodeWeaver:
  Claude: "Let me search for 'auth'... here are 50 files mentioning authentication"
  Result: Generic code, wrong context, wasted tokens

With CodeWeaver:
  You: "Where do we validate OAuth tokens?"
  Claude gets: The exact 3 functions across 2 files, with surrounding context
  Result: Precise answers, focused context, actual understanding

鈿狅笍 Alpha Release: This works, but it's early. Use it, break it, help shape it.


How CodeWeaver Stacks Up

Quick Reference Matrix

Feature CodeWeaver Serena Cursor Copilot Workspace Sourcegraph Cody Continue.dev Bloop Aider
Approach Semantic search Symbol lookup (LSP) Semantic Semantic Keyword Semantic Semantic Repo maps
Tool Count 1 20+ N/A N/A N/A N/A N/A N/A
Prompt Overhead ~500 tokens ~16,000 tokens N/A N/A N/A N/A N/A N/A
Search Speed Moderate (embeddings) Very fast (LSP) Moderate Server-side Fast Moderate Fast On-demand
Embedding Providers 17 0 (no embeddings) 1-2 1 0 (deprecated) 4-5 1 0
Language Support 166+ ~30 (LSP required) ~50-100 All (text) All ~165 Unknown ~165+
Requires Language Server 鉂� No 鉁� Yes 鉂� No 鉂� No 鉂� No 鉂� No 鉂� No 鉂� No
Symbol Precision 鈿狅笍 Semantic match 鉁� Exact symbols 鈿狅笍 Semantic 鈿狅笍 Semantic 鈿狅笍 Keyword 鈿狅笍 Semantic 鈿狅笍 Semantic 鉁� Exact
Concept Search 鉁� Yes 鉂� Symbols only 鉁� Yes 鉁� Yes 鈿狅笍 Limited 鉁� Yes 鉁� Yes 鉂� No
Editing Capabilities 鉂� No 鉁� Yes (9 tools) 鉁� Yes 鉁� Yes 鉁� Yes 鉁� Yes 鉂� No 鉁� Yes

Notes:

  • Serena tool count: Varies by context (20+ in claude-code, up to 35 total available)
  • Serena prompt overhead: Measured with 21 active tools in claude-code context (~16,000 tokens)
  • Language counts: CodeWeaver supports 166+ unique languages (27 with AST parsing, 139 with intelligent delimiter-based chunking)

馃搳 [See detailed competitive analysis 鈫抅competitive_analysis


馃殌 Getting Started

Quick Install

Using the CLI with uv:

# Add CodeWeaver to your project
uv add --prerelease allow --dev code-weaver

# Initialize config and MCP setup
cw init

# Verify setup
cw doctor

# Start the server
cw server

馃摑 Note: cw init defaults to CodeWeaver's recommended profile:

Want full offline? Use cw init --profile quickstart for local-only operation.

馃惓 Prefer Docker? [See Docker setup guide 鈫抅docker_guide

MCP Configuration

To watch and handle your files, CodeWeaver always runs an HTTP server. You can connect to that or use your typical stdio setup:

cw init adds CodeWeaver to your project's .mcp.json:

{
  "mcpServers": {
    "codeweaver": {
      "type": "stdio",
      "cmd": "uv",
      "args": ["run", "codeweaver", "server"],
      "env": {"VOYAGE_API_KEY": "your-key-here"}
    }
  }
}

or with http:

{
  "mcpServers": {
    "codeweaver": {
      "type": "http",
      "url": "http://127.0.0.1:9328"
    }
  }
}

鉁� Features

  • Hybrid search (sparse + dense vectors)
  • AST-level understanding (27 languages)
  • Semantic relationships
  • Language-aware chunking (166+ languages)

馃寪 Language Support

  • 27 languages with full AST/semantic parsing
  • 166+ languages with language-aware chunking
  • Cross-language normalization
  • Family heuristics for smart fallback

馃攧 Resilient & Offline

  • Full offline operation with local models
  • Automatic failover to backup vector store
  • Works airgapped (no cloud required)
  • Graceful degradation with health monitoring

馃攲 Provider Flexibility

  • 17 embedding providers
  • 50+ embedding models
  • Sparse & dense embedding model support
  • 5 reranking providers
  • [See full provider list 鈫抅providers_list

鈿欙笍 Configuration

  • ~15 config sources (TOML/YAML/JSON/ENV)
  • Cloud secret stores (AWS/Azure/GCP)
  • Hierarchical merging
  • Profiles for common setups

馃洜锔� Developer Experience

  • Live indexing with file watching
  • Move detection (no re-indexing duplicates)
  • Full CLI (cw / codeweaver)
  • Health & metrics endpoints

馃挱 Philosophy

The Bigger Picture

I started building CodeWeaver because I believe AI agents need better context infrastructure. Right now:

  • Agents re-read the same huge files repeatedly
  • They get shallow, text-based context instead of structural understanding
  • They are mostly given tools built for humans, not for how they actually work
  • You don't control what context they see or how they get it

CodeWeaver addresses this with one focused capability: structural + semantic code understanding that you control and can deploy however you want.

Is this solving a big problem? We think so. But we're in alpha; we're probably not there yet. We also need real-world usage to prove it. That's where you come in. Use it, make it better. Worst case -- it's a good tool, best case -- you get better results and cut costs on AI.

馃摉 [Read the detailed rationale 鈫抅why_codeweaver


Built with 鉂わ笍 by Knitli

猬� Back to top

相关 MCP 服务