Λογότυπο WaveScope MCP

WaveScope MCP

Κοινότητα
yogthos

Wavelet-based multi-resolution context management for LLMs via MCP

Εκδότηςyogthos
Αποθετήριοwavescope-mcp
ΓλώσσαTypeScript
Forks
5
Αστέρια
45
Διαθέσιμα εργαλεία
0
Τύπος μεταφοράςstdio
Κατηγορίες
Σύνδεσμοι
  • Συνδέστε εργαλεία σε ροές εργασίας AI

    Το WaveScope MCP παρέχει δυνατότητες MCP που μπορούν να χρησιμοποιηθούν από συμβατές εφαρμογές-πελάτες AI και πράκτορες AI.

  • 0 διαθέσιμα εργαλεία

    Περιηγηθείτε παρακάτω στις ενέργειες που μπορούν να κληθούν, μαζί με τα ονόματα και τις περιγραφές τους, όταν παρέχονται από τον διακομιστή.

  • Ρυθμίσεις έτοιμες για αντιγραφή

    Χρησιμοποιήστε τα αποσπάσματα εγκατάστασης για να ρυθμίσετε αυτόν τον διακομιστή στην εφαρμογή-πελάτη MCP που προτιμάτε.

  • Δείκτες ενδιαφέροντος για τον ανοιχτό κώδικα

    45 αστέρια και 5 διακλαδώσεις στο συνδεδεμένο αποθετήριο.

WaveScope MCP

SafeSkill 89/100 Wavelet-based multi-resolution context management for LLMs via MCP.

Provides a zoomable view of code files — the model can look at high-level structure, then drill down to specific regions as needed, without loading entire files into context.

How it works

  1. Structural signal — each line gets an importance score from the keywords it declares (class, def, export, etc.), with comments and blank lines scoring zero. Indentation attenuates the score rather than adding to it: a line nested eight levels deep is less of a landmark than a top-level declaration, and a line that declares nothing stays near zero at any depth.

  2. Ricker wavelet transform — the signal is convolved with Ricker (Mexican hat) wavelets at 8 scales (1–128), detecting structural boundaries at multiple resolutions.

  3. Multi-scale peaks — coefficient maxima are extracted and sorted by magnitude, identifying the most important structural transitions. A coefficient is an integral over a window, so its maximum often falls between two declarations rather than on either; reported positions are snapped to the nearest line that is both a local signal maximum and a meaningful share of the structure around it, so they land on code you can navigate to rather than on a blank line or a stray }.

  4. Band assembly — three zoom levels, sized as a fraction of the query radius (default 300):

    • Fine (scales 1–2): raw lines in ±radius/5 (≥10 lines)
    • Medium (scales 4–16): function/class signatures in ±radius/2
    • Coarse (scales 32–128): section-level structural summary across ±radius

See here for a more detailed explanation.

Installation

From npm (recommended)

bash
npm install -g wavescope-mcp
# or locally in a project:
npm install wavescope-mcp

From source

bash
git clone <repo-url>
cd wavescope-mcp
pnpm install    # auto-builds dist/ via prepare script

Usage

Running as MCP server

After global install, just use the binary name:

json
{
  "mcpServers": {
    "wavescope": {
      "command": "wavescope-mcp"
    }
  }
}

With a local install, use npx:

json
{
  "mcpServers": {
    "wavescope": {
      "command": "npx",
      "args": ["wavescope-mcp"]
    }
  }
}

Tools

query_wavelet_context

Multi-resolution view around a position.

  • file — absolute path to the file
  • center — line number (0-indexed)
  • radius — total range to consider, 10–2000 (default 300)

Returns center, clamped (and clampedFrom when out of range was clamped), three fine/medium/coarse bands, and detected wavelet peaks.

get_important_positions

Find structural boundaries (class/function defs, imports, etc.).

  • exactly one of file (single file path) or directory (project-wide search)
  • min_coefficient — raw wavelet coefficient threshold, 0–20 (default 0.3). Same semantics in both single-file and project mode. Typical useful range is 0.1–3; the upper bound is generous because CWT coefficients can exceed 2 at large scales.
  • limit — max results, 1–100 (default 20)

get_wavelet_coefficients

Raw wavelet coefficients for custom analysis.

  • file, start, end, scale (required, 1–128)

Returned object includes scale (the actual scale used) and requestedScale (the original scale you asked for) — they differ when the requested scale isn't in the index and the nearest available one is substituted. The result also carries clamped (true if the requested start/end were adjusted to fit the valid coefficient range) and clampedFrom: {start, end} (the original values, present only when clamped is true). A range entirely outside the file returns coefficients: [] with clamped: true rather than fabricating a boundary value.

get_summary_at_scale

Compressed view of a region using specified scale peaks.

  • file, start, end, scale (optional — auto-selected based on region size if omitted: ≤50 lines → 2, ≤200 → 8, ≤800 → 32, >800 → 128)

diff_wavelet_context

Compare structural wavelet peak profiles of a file between two git revisions. Shows which structural boundaries (function/class definitions, imports, etc.) were added, removed, shifted, or changed in magnitude.

  • file — absolute path to the file
  • baseRef — base git ref (e.g. "HEAD~1", "main", a commit SHA)
  • targetRef — target git ref (optional; omit to compare against the current working tree)
  • minCoefficient — minimum wavelet coefficient threshold, 0–20 (default 0.3)
  • limit — max peaks per revision, 1–500 (default 100)
  • window — max line distance for matching peaks as "shifted", 1–50 (default 2). Higher values treat larger moves as shifts rather than remove+add.

Returns { beforeLineCount, afterLineCount, diff: { changes, summary } } where each change has kind (one of added, removed, shifted, magnitudeChanged, unchanged), before (the old peak, null for added), and after (the new peak, null for removed). The summary tallies counts for each kind.

Requires the file to be inside a git repository. A file that does not exist on one side (e.g. newly added so it is missing at baseRef, or deleted in the working tree when targetRef is omitted) is treated as empty — its peaks all show up as added or removed. An error is returned only when the file is missing on both sides.

update_cursor_position

Notify the server of the editor's current cursor position. The server precomputes wavelet context around the cursor so that subsequent get_cursor_context calls return instantly. Call this whenever the cursor moves significantly.

  • file — absolute path to the file
  • line — cursor line (0-indexed)
  • column — cursor column (0-indexed)

Returns { acknowledged: true }.

get_cursor_context

Get the precomputed multi-resolution wavelet context around the editor's last known cursor position. Returns the cached result from update_cursor_position without recomputation. Returns an error if no cursor has been registered for the file.

  • file — absolute path to the file

Return shape matches query_wavelet_context: center, clamped, bands (fine/medium/coarse), and waveletPeaks.

get_cursor_important_positions

Get structurally important positions near the current cursor, sorted by a combination of proximity and structural significance. Returns an error if no cursor has been registered for the file.

  • file — absolute path to the file
  • limit — max positions to return, 1–50 (default 10)

Returns an array of { position, coefficient, scale, label } objects, sorted closest-to-cursor first.

stream_start

Start a streaming project-wide query. Returns a stream_id immediately while results are computed in the background. Use stream_poll to fetch batches incrementally and stream_close to cancel.

  • directory — absolute path to the project directory
  • min_coefficient — minimum wavelet coefficient threshold, 0–20 (default 0.3)
  • limit — maximum total results across all batches, 1–100 (default 20)
  • batch_size — peaks per batch, 10–500 (default 50)

Returns { stream_id: "<uuid>" }.

stream_poll

Fetch the next batch of results from a streaming operation.

  • stream_id — the ID returned by stream_start

Returns { peaks, more, complete } where more indicates further batches are queued and complete means the operation has finished. Returns an error for unknown/expired stream IDs. If the producer encountered an error, returns { error, complete: true }.

stream_close

Cancel a streaming operation and free its resources.

  • stream_id — the ID returned by stream_start

Returns { acknowledged: true }. Idempotent for unknown IDs.

get_entropy_bands

Analyze the wavelet coefficient bands of a file for entropy using libwce bit-cost estimation. For each scale in the Ricker CWT, coefficients are quantized to integers, their Bit-Plane Counts are computed, and the encoding bit cost is estimated. Higher bit cost = more structural irregularity at that scale — a language-agnostic measure of local code complexity.

  • file — absolute path to the file
  • lossy_bits — LSBs to drop before BPC computation, 0–8 (default 0; higher is coarser)

Returns { bands, totalBitCost, meanBitCost } where each band carries its scale, bitCost, riceK, predictor, sparseFlag, and numGroups.

get_complexity_heatmap

Compute a multi-scale complexity heatmap for a file using a Haar DWT plus libwce. The per-line structural signal is decomposed, the encoding bit cost is estimated per detail band, and per-line irregularity scores are returned. Higher scores mark structurally dense/irregular regions — useful for review prioritization, context budgeting (keep irregular, summarize boilerplate), and navigation.

  • file — absolute path to the file
  • lossy_bits — LSBs to drop before BPC computation, 0–8 (default 0)

Returns { bands, totalEntropy, perLineIrregularity } where each band carries its level, span, bitCost, riceK, predictor, and sparseFlag.

Development

bash
pnpm install         # Install dependencies + auto-build dist/
pnpm dev             # Run with tsx (live TypeScript)
pnpm test            # Watch mode
pnpm test:run        # Run tests once
pnpm test:coverage   # Run with coverage
pnpm typecheck       # Type check only

pnpm install runs the prepare script, which builds dist/ automatically. For a manual build, run pnpm build.

Supported languages

Python (.py, .pyi, .pyx), TypeScript (.ts, .tsx, .mts, .cts), JavaScript (.js, .jsx, .mjs, .cjs), Go, Rust, Java, Ruby (incl. Rakefile, Gemfile), PHP, Swift, Kotlin, Scala, Clojure (.clj, .cljs, .cljc, .edn), Scheme and Racket (.scm, .ss, .sld, .sls, .sps, .rkt), Common Lisp (.lisp, .lsp, .cl, .asd), Emacs Lisp (.el).

The Lisp-family configs share reader conventions: ; line comments, #| ... |# nested block comments (Scheme / Common Lisp), Clojure (comment ...) forms, '/backtick treated as quote rather than string delimiters, and \x / #\x / ?\x character literals.

Single-file tools (query_wavelet_context, get_important_positions with file, get_summary_at_scale, etc.) fall back to a minimal generic configuration for any extension not listed above.

Project-wide indexing (get_important_positions with directory, stream_start) is restricted to the listed extensions and known filenames (Rakefile, Gemfile) — unknown extensions are skipped to avoid burning budget on .md/.json/.csv/etc. that have little structural signal.

Project-wide indexing limits

When get_important_positions is called with directory, the indexer:

  • honors a root-level .gitignore, including ! negation patterns (last-match-wins semantics, matching git's behavior); nested .gitignore files are not consulted;
  • skips files larger than 2 MB and binary files (NUL byte sniff in first 4 KB);
  • caps discovery at 5000 files (a truncated flag is set if exceeded);
  • follows symlinks once via realpath, refusing any that escape the project root.

Εγκατάσταση

TypingMind
{
  "mcpServers": {
    "wavescope-mcp": {
      "command": "node",
      "args": [
        "/path/to/wavescope-mcp/dist/index.js"
      ]
    }
  }
}

Χρησιμοποιήστε το MCP WaveScope MCP με πολλά μοντέλα AI

Το TypingMind συνδέει τα εργαλεία MCP σε επίπεδο χώρου εργασίας. Έτσι, μόλις συνδεθεί το WaveScope MCP, μπορείτε να το χρησιμοποιείτε με διαφορετικά μοντέλα AI στο TypingMind, αντί να το ρυθμίζετε ξεχωριστά για κάθε μοντέλο. Αυτή η ενσωμάτωση MCP εκτελείται τοπικά στη συσκευή σας μέσω του συνδέσμου MCP του TypingMind.

Οδηγός ρύθμισης για τη χρήση του τοπικού συνδέσμου

Επιλέξτε αυτή τη μέθοδο όταν ο διακομιστής MCP χρειάζεται πρόσβαση σε τοπικά αρχεία, εφαρμογές ή ιδιωτικούς πόρους στον υπολογιστή σας.

1

Ανοίξτε τις ρυθμίσεις MCP

Στο TypingMind, μεταβείτε στις «Ρυθμίσεις», έπειτα στις «Σύνθετες ρυθμίσεις» και στο «Model Context Protocol» και επιλέξτε «Ρύθμιση συνδέσμου».

  1. Ανοίξτε το TypingMind στο πρόγραμμα περιήγησής σας.
  2. Κάντε κλικ στο εικονίδιο «Ρυθμίσεις».
  3. Μεταβείτε στις «Σύνθετες ρυθμίσεις».
  4. Ανοίξτε την ενότητα Model Context Protocol.
  5. Κάντε κλικ στην επιλογή «Ρύθμιση συνδέσμου» και επιλέξτε «Αυτή η συσκευή».
Οθόνη ρύθμισης συνδέσμου MCP του TypingMind με επιλεγμένη την επιλογή «Αυτή η συσκευή»
2

Εκτελέστε την εντολή του συνδέσμου

Επιλέξτε «Αυτή η συσκευή», αντιγράψτε την εντολή από το TypingMind και εκτελέστε την στο Τερματικό. Διατηρήστε τη διεργασία σε λειτουργία όσο χρησιμοποιείτε το MCP.

  1. Αντιγράψτε την εντολή ρύθμισης που εμφανίζεται στο TypingMind.
  2. Ανοίξτε το Τερματικό στο macOS ή το Windows Terminal στα Windows.
  3. Επικολλήστε και εκτελέστε την εντολή.
  4. Εγκρίνετε την εγκατάσταση του πακέτου, αν το Τερματικό σάς ζητήσει επιβεβαίωση για να συνεχίσει.
  5. Διατηρήστε ανοιχτό το παράθυρο του Τερματικού και τη διεργασία σε λειτουργία όσο χρησιμοποιείτε εργαλεία MCP.
3

Προσθέστε το WaveScope MCP ως διακομιστή

Όταν η κατάσταση του συνδέσμου είναι «Έτοιμος», κάντε κλικ στο «Αλλαγή servers» και επικολλήστε τις ρυθμίσεις του διακομιστή MCP.

  1. Περιμένετε μέχρι η κατάσταση του συνδέσμου να εμφανιστεί ως «Έτοιμος».
  2. Κάντε κλικ στο «Αλλαγή servers».
  3. Επικολλήστε τις ρυθμίσεις του διακομιστή MCP WaveScope MCP.
  4. Αποθηκεύστε τη λίστα διακομιστών.
  5. Κάντε ανανέωση αν θέλετε να επιβεβαιώσετε ότι ο σύνδεσμος παραμένει έτοιμος για χρήση.
Ρυθμίσεις MCP του TypingMind με ενεργό διακομιστή και το κουμπί «Αλλαγή servers»
{
  "mcpServers": {
    "wavescope-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wavescope-mcp"
      ]
    }
  }
}
4

Χρησιμοποιήστε τη σύνδεση με διαφορετικά μοντέλα

Αποθηκεύστε τη λίστα διακομιστών, ανοίξτε τα «Πρόσθετα», ενεργοποιήστε τα εργαλεία MCP του WaveScope MCP και έπειτα επιλέξτε οποιοδήποτε υποστηριζόμενο μοντέλο AI στο TypingMind. Χρησιμοποιήστε τα εργαλεία στη συνομιλία ή αναθέστε τα σε έναν πράκτορα AI.

  1. Ανοίξτε τη σελίδα «Πρόσθετα» στο TypingMind.
  2. Ενεργοποιήστε τα εργαλεία MCP του WaveScope MCP.
  3. Ξεκινήστε μια συνομιλία και επιλέξτε το μοντέλο AI που θέλετε να χρησιμοποιήσετε.
  4. Χρησιμοποιήστε τα εργαλεία MCP στη συνομιλία ή αντιστοιχίστε τα σε έναν πράκτορα AI.
  5. Μεταβείτε σε άλλο μοντέλο AI όποτε χρειάζεται, χωρίς να συνδέσετε ξανά το MCP.
Συνομιλία στο TypingMind με ενεργοποιημένα εργαλεία MCP και επιλεγμένο μοντέλο AI
Θα με βοηθήσετε σε αυτό μέσω WaveScope MCP;
WaveScope MCP
Βεβαίως. Το διάβασα.
Δείτε τι βρήκα μέσω του WaveScope MCP.

Συχνές ερωτήσεις

Σε τι χρησιμεύει ο διακομιστής MCP WaveScope MCP;

Το WaveScope MCP είναι ένας διακομιστής MCP που επιτρέπει σε συμβατές εφαρμογές AI να συνδέονται με εξωτερικά εργαλεία και πληροφορίες πλαισίου. Στο TypingMind, μπορείτε να προσθέσετε αυτόν τον διακομιστή MCP μία φορά και να κάνετε τα εργαλεία του διαθέσιμα στον χώρο εργασίας AI σας.

Μπορώ να χρησιμοποιήσω το WaveScope MCP MCP με πολλά μοντέλα AI στο TypingMind;

Ναι. Το TypingMind συνδέει τα εργαλεία MCP σε επίπεδο χώρου εργασίας, ώστε να μπορείτε να χρησιμοποιείτε το WaveScope MCP με διαφορετικά μοντέλα AI, όπως τα Claude, ChatGPT, Gemini ή άλλα μοντέλα που έχετε ρυθμίσει στο TypingMind, χωρίς να ρυθμίζετε τον διακομιστή MCP ξεχωριστά για κάθε μοντέλο.

Γιατί να χρησιμοποιήσετε τον σύνδεσμο MCP WaveScope MCP με το TypingMind;

Το TypingMind είναι ένα από τα καλύτερα περιβάλλοντα συνομιλίας με μεγάλα γλωσσικά μοντέλα, καθώς συγκεντρώνει πολλά μοντέλα AI, προτροπές, πρόσθετα, πράκτορες AI, κλειδιά API και εργαλεία MCP σε έναν χώρο εργασίας. Συνδέοντας το WaveScope MCP, μπορείτε να χρησιμοποιείτε τα εργαλεία MCP του με τα μοντέλα που προτιμάτε, διατηρώντας οργανωμένη τη ροή εργασίας των συνομιλιών σας στο TypingMind.

Πώς συνδέω το WaveScope MCP MCP στο TypingMind;

Το WaveScope MCP λειτουργεί μέσω του τοπικού συνδέσμου MCP του TypingMind. Αυτή είναι η καλύτερη επιλογή όταν ο διακομιστής MCP χρειάζεται πρόσβαση σε τοπικά αρχεία, εφαρμογές υπολογιστή, εργαλεία γραμμής εντολών ή ιδιωτικούς πόρους στον υπολογιστή σας.

Ποια εργαλεία παρέχει το WaveScope MCP MCP στο TypingMind;

Το WaveScope MCP διαθέτει δυνατότητες MCP που μπορείτε να ενεργοποιήσετε από τη σελίδα Πρόσθετα του TypingMind και να χρησιμοποιήσετε σε συνομιλίες ή να αναθέσετε σε πράκτορες AI.

Χρειάζεται να κοινοποιήσω τα κλειδιά API μου στο TypingMind για να χρησιμοποιήσω το WaveScope MCP MCP;

Όχι. Το TypingMind δίνει προτεραιότητα στην τοπική λειτουργία και σας επιτρέπει να διατηρείτε τον έλεγχο των παρόχων μοντέλων, των κλειδιών API, των προτροπών και των ρυθμίσεων MCP σας. Αν το WaveScope MCP απαιτεί έλεγχο ταυτότητας, προσθέστε τις απαιτούμενες κεφαλίδες, τις ρυθμίσεις OAuth ή τις τοπικές ρυθμίσεις για τον συγκεκριμένο διακομιστή MCP κατά τη δημιουργία της σύνδεσης.

Σχετικοί διακομιστές MCP

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇