Vs Token Safer logo

Vs Token Safer

by JSungMin

Token-capped semantic code search and symbol editing through language servers, tree-sitter, and local repository analysis.

Install Vs Token Safer

Run the project’s own setup commands, in order.

Setup steps from the project

JSungMin/vs-token-safer installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/JSungMin/vs-token-safer
    
  2. 2. Install
    npm install
    

Overview

JSungMin/vs-token-safer MCP server routes code navigation through language-server indexes such as clangd, Roslyn, tsserver, and pyright, with tree-sitter fallbacks for projects without a configured toolchain. Its MCP tools return compact file-and-line results, support symbol-scoped edits, and analyze references, definitions, diagnostics, and concepts without returning whole source files by default. A Claude Code plugin can rewrite Bash grep commands into indexed queries and compact editor or build output. Reach for it when large repositories make ordinary grep, full-file reads, or line-based edits expensive; processing stays local and does not require an IDE.

Use cases

  • Find every caller before changing a function or type
  • Navigate large repositories without loading whole files
  • Replace or rename declarations by symbol rather than line number
  • Search for an unfamiliar code flow from its behavior
  • Review diagnostics and change impact in compact output

Key features

  • Language-server-backed semantic navigation
  • Tree-sitter fallback indexing
  • Token-capped file and line results
  • Symbol-level rename and editing
  • Local concept search without embeddings
  • Claude Code grep-rewrite hook

Tools14

What Vs Token Safer lets your agent do. Expand a tool for its parameters.

Self-reported~517 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/24 checks healthy over the last 113d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars16Stargazers on the source repository.
Last commit6d agoMost recent push to the default branch.
Tools exposed14Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Vs Token Safer works

What JSungMin/vs-token-safer MCP server does

JSungMin/vs-token-safer turns repository navigation and several code-editing operations into MCP tools. It is designed to keep coding-agent context small: searches and diagnostics are capped to concise file:line or file:line:col records, while source retrieval is limited to a named declaration or another targeted span. The server works locally and uses headless indexing rather than an open editor.

For projects with a suitable language server, the semantic tier uses clangd for C and C++, Roslyn for C#, tsserver for JavaScript and TypeScript, and pyright for Python. JavaScript, TypeScript, and Python are described as requiring no manual setup; C++ and C# need their respective language servers. Tree-sitter provides declaration-aware fallback coverage when a language server is unavailable or still indexing.

How it works

The server selects among several lookup methods. Exact symbol operations use the language-server index when available. Tree-sitter supplies syntactic declarations without requiring a project toolchain, while concept_search builds a local dictionary from identifiers and comments to find code by an idea such as an authentication flow. Markdown and configuration files can be addressed by section heading.

A cold or unavailable language-server lookup can fall back to tree-sitter and later use the semantic index when it is ready. The repository index may be built in the background, and responses identify the tier used. Results remain token-capped rather than returning complete files. Concept search does not use an AI model or upload repository content.

Setup and configuration

Install the Claude Code plugin with:

text
/plugin marketplace add JSungMin/vs-token-safer
/plugin install vs-token-safer@vs-token-safer
/reload-plugins

Run /vs-token-safer:setup to detect the backend, choose the project path, and write configuration. Restart Claude Code afterward because the MCP server starts in a fresh session. Node.js 18 or newer is required. Install clangd for C and C++ or Roslyn for C#; JavaScript, TypeScript, and Python can install their supporting components automatically.

The vts command-line interface includes indexing and related local workflows. The optional rewrite behavior can be disabled with VTS_REWRITE=0.

Tools and capabilities

  • search_symbol locates declarations by name or substring.
  • find_references lists uses of a symbol and can summarize callers or callees by file or directory.
  • read_symbol returns one declaration's source, with a signature-only option.
  • goto_definition supports definitions, type definitions, implementations, and declarations; hover returns type or signature information.
  • document_symbols outlines files or creates a directory-level signature skeleton.
  • diagnostics returns compact compiler or linter findings for a file or directory.
  • find_files and search_text provide capped filename, glob, text, and regular-expression searches.
  • concept_search finds declarations from repository vocabulary and can trace a top result's call graph.
  • rename, replace_symbol_body, insert_symbol, and safe_delete perform symbol-aware project edits. Safe deletion refuses referenced declarations unless forced.

The Claude Code companion hook can rewrite grep searches into indexed queries. The broader vts workflow also includes output compaction and local repository visualization through vts serve.

Limitations and notes

Semantic accuracy depends on the relevant language server and its index. Without that setup, results use tree-sitter and may be syntactic rather than compiler-backed; stale indexes are labeled accordingly. The server is intended for local repositories and does not provide an IDE connection. Its compact responses are useful for navigation and review, but reading a complete file still requires a separate file-reading workflow.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Vs Token Safer

JSungMin/vs-token-safer is an MCP server that connects coding agents to local language-server indexes, including clangd, Roslyn, tsserver, and pyright. Its main tools search symbols, find references, navigate definitions, inspect diagnostics, search concepts, and edit declarations while returning compact results instead of whole source files.

Install it as a Claude Code plugin with `/plugin marketplace add JSungMin/vs-token-safer`, `/plugin install vs-token-safer@vs-token-safer`, and `/reload-plugins`. Then run `/vs-token-safer:setup`, select the project path, and restart Claude Code so the MCP server starts.

It supports clangd for C and C++, Roslyn for C#, tsserver for JavaScript and TypeScript, and pyright for Python. Tree-sitter supplies a fallback when a language server is unavailable or still indexing, and supports additional languages through bundled grammars.

Yes. `replace_symbol_body` replaces a named declaration, `insert_symbol` adds text before or after one, `rename` performs a semantic project-wide rename, and `safe_delete` removes a declaration only when it has no remaining references unless forced.

No. It runs language servers headlessly and processes repositories locally, so an IDE does not need to be open. Claude Code can use the MCP tools through the plugin, while the `vts` command-line interface provides related local workflows.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewVs Token Safer AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/jsungmin-vs-token-safer?style=directory)](https://allmcps.com/mcp/jsungmin-vs-token-safer)
HTML Embed
<a href="https://allmcps.com/mcp/jsungmin-vs-token-safer"><img src="https://allmcps.com/api/badge/jsungmin-vs-token-safer?style=directory" alt="Vs Token Safer on AllMCPs" /></a>