Logo von Context Sherpa

Context Sherpa

Organisation
hackafterdark

Context Sherpa MCP server provides code mapping, deterministic feedback loops, and tiered inference for AI coding agents to increase accuracy and optimize token usage.

Herausgeberhackafterdark
Repositorycontext-sherpa
SpracheGo
Forks
3
Sterne
27
Verfügbare Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Links
  • Tools mit KI-Workflows verbinden

    Context Sherpa stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 0 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    27 Sterne und 3 Forks im verlinkten Repository.

Context Sherpa Context Sherpa

Context Sherpa is a specialized platform for Context Engineering. It bridges the gap between developers and AI coding agents by providing LLMs with the precise, high-fidelity signals they need to operate with expert-level accuracy while dramatically reducing token consumption.

Code View

Why Context Engineering?

Agentic coding tools often struggle with either "hallucinating" codebase relationships or overwhelming their context windows with irrelevant files. Context Sherpa solves this through two primary goals:

  1. Increase Accuracy: Provide AI agents with strong, symbolic signals (definitions, references, and impact analysis) to ensure code changes are correct and idiomatic.
  2. Optimize Context: Using SCIP-based indexing and structural analysis, Context Sherpa allows agents to pinpoint exactly what they need, often reducing the tokens required for a task by up to 90% compared to raw file-searching.

An Optimized Alternative

Traditional tools like grep are fast but lack symbol awareness, while semantic search often returns noisy, over-processed results. Context Sherpa's tool suite is designed as a high-fidelity alternative:

  • vs. Grep: SCIP indexing provides precise symbol-resolution (definitions vs. references), eliminating the guesswork of text-based search.
  • vs. Semantic Search: Where vectors often fail to distinguish between similar-looking code, our Structural Analysis (ast-grep) uses the code's abstract syntax tree for exact pattern matching—no vector databases or text embeddings required.
  • vs. Indexing: Unlike massive, centralized indexing services, Context Sherpa is local-first, lightweight, and requires zero cloud configuration or complex RAG infrastructure.

Of course the benefit of text embeddings in a vector database and other traditional methods is that they are more of a one size fits all solution. They can be used for many programming languages and even non-code files. Remember that a different SCIP tool must be used for each programming language. Lucky for you, you can use both. Context Sherpa will add SCIP tools for more languages in the future.

Context Sherpa Scan Results


Core Capabilities

  • Code Atlas Explorer: A premium GUI to visualize and inspect your codebase relationships.
  • Agent Rule Management: Dynamically manage project-specific standards using ast-grep and natural language feedback.
  • Integrated Local Reasoning: Connect to local providers (Ollama, LM Studio) to enable Tiered Inference. This architecture utilizes local models for high-frequency context distillation and semantic triage, drastically reducing the token noise and costs associated with sending raw source code to frontier models.
  • Universal MCP Server: A high-performance "headless" mode that integrates directly with tools like Cursor, Cline, and Roo Code.
  • 🤖 Agent Intelligence: A built-in framework of Skills and Workflows designed to guide AI agents toward higher accuracy and token efficiency.

🤖 Agent Intelligence

Context Sherpa is not just a toolset; it's an intelligent environment. There are some specialized resources for AI agents found in the .agents/ directory:

For a deep dive into best practices, see our Agent Guidelines for Context Engineering.

🎮 GUI vs. 🖥️ Headless Mode

Context Sherpa is a single executable that adapts to your needs:

FeatureGUI ModeHeadless (MCP) Mode
Code Atlas Explorer✅ Yes❌ No
Rule Visualizer/Editor✅ Yes❌ API only
Dependency Manager✅ Yes❌ Manual
MCP Tool Access✅ Directly via Agent✅ Directly via Agent
Resource UsageStandard AppUltra Lightweight

⚡ Quick Start

Installation

Download the latest version for your platform from GitHub Releases.

  • Windows: Download the .exe and run it.
  • macOS: Download the app, move to /Applications, and clear quarantine if necessary:
    bash
    xattr -d com.apple.quarantine /Applications/Context-Sherpa.app
  • Linux: Download the binary and provide execution permissions (chmod +x).

[!IMPORTANT] Security Notice: Pre-built binaries are currently not signed. When running the application for the first time, you may encounter OS security warnings (e.g., Windows SmartScreen or macOS Gatekeeper). You will need to manually allow the application to run.

This is a known limitation of the current release process. Future pre-built binaries will undergo formal code signing for convenience. Building from source (instructions below) avoids these security warnings.

Building from Source

Context Sherpa is built with Go and Wails. For detailed building instructions, please see BUILDING.md.

  1. Build the Frontend:
    bash
    cd frontend && npm install && npm run build && cd ..
  2. Build the GUI:
    bash
    # Install Wails CLI if not already present
    go install github.com/wailsapp/wails/v2/cmd/wails@latest
    
    # Build the binary
    wails build

🛠️ MCP Toolchain

AI agents connected to Context Sherpa gain access to a powerful set of tools for structural, symbolic, and semantic analysis.

For a full list of available tools and their parameters, see TOOLS.md.

Configuration Example

Add Context Sherpa to your AI agent's mcp_settings.json:

json
{
  "mcpServers": {
    "context-sherpa": {
      "command": "context-sherpa",
      "args": ["--projectRoot", "/path/to/your/project"]
    }
  }
}

🏔️ The Tiered Inference Framework

Context Sherpa is built on a three-layer "Tiered Inference" strategy that balances speed, cost, and intelligence:

  • Tier 1: Deterministic Logic (SCIP / ast-grep): Instant, 0-token cost structural mapping. Precise symbolic analysis that provides the ground truth for your codebase.
  • Tier 2: Integrated Local Reasoning (Ollama / LM Studio): local distillation and semantic triage on your own hardware. This layer offsets costs and drastically reduces the token burden on Tier 3 frontier models.
  • Tier 3: Strategic Frontier Intelligence (Claude / Gemini): High-level architectural planning and complex refactoring directed by the "Big Brain" (your primary agent).

By offloading Tier 1 and Tier 2 tasks to Context Sherpa, you save up to 90% in token costs while significantly increasing the accuracy of Tier 3 strategic work.


📦 Setting Up Dependencies

Context Sherpa uses 3rd party tools to provide high-fidelity intelligence. These can be managed directly in the GUI Settings area:

  1. ast-grep: The core structural analysis engine.
  2. SCIP Indexers: Language-specific indexers for Go, TypeScript, and Python.
  3. Inference Engines: Connect to Ollama or LM Studio to enable semantic reasoning tools.

📚 Documentation


Acknowledgments

Context Sherpa leverages several incredible open-source projects:

  • ast-grep: The core engine for high-performance structural code analysis.
  • Wails: The framework powering our cross-platform desktop experience.
  • Sourcegraph SCIP: Providing the foundation for precise symbolic code intelligence via scip-go, scip-typescript, and scip-python.
  • Local Inference: We are grateful to the communities behind Ollama and LM Studio for providing the infrastructure that powers our tiered semantic inference.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Installation

TypingMind
Voraussetzungen:

Node.js 18+

{
  "mcpServers": {
    "hackafterdark-context-sherpa": {
      "command": "npx",
      "args": [
        "-y",
        "context-sherpa"
      ]
    }
  }
}

Context Sherpa MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald Context Sherpa verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor-Setup“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Optionen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor-Setup“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie unter macOS Terminal bzw. unter Windows Windows Terminal.
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

Context Sherpa als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server ändern“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server ändern“.
  3. Fügen Sie die MCP-Server-Konfiguration für Context Sherpa ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server ändern“
{
  "mcpServers": {
    "hackafterdark-context-sherpa": {
      "command": "npx",
      "args": [
        "-y",
        "context-sherpa"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von Context Sherpa. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von Context Sherpa.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit Context Sherpa bei dieser Aufgabe helfen?
Context Sherpa
Gerne. Ich habe es gelesen.
Das habe ich mit Context Sherpa gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server Context Sherpa verwendet?

Context Sherpa ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich Context Sherpa MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie Context Sherpa mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum Context Sherpa MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald Context Sherpa verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich Context Sherpa MCP mit TypingMind?

Context Sherpa wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt Context Sherpa MCP in TypingMind bereit?

Context Sherpa stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um Context Sherpa MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls Context Sherpa eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇