squiggles
Provides C/C++ language tooling via clangd, including navigation, refactoring, formatting, source/header switching, symbol info, and AST viewing.
Provides Ruby language tooling via ruby-lsp, including test discovery, navigation between implementation and test files, syntax tree inspection, and dependency listing.
Provides Rust language tooling via rust-analyzer, including macro expansion, module navigation, test discovery, dependency listing, and docs.rs links.
Provides TypeScript language tooling via typescript-language-server, including navigation, refactoring, import organization, and file-rename import fixing.
squiggles
Let your agent see the squiggles you'd see in an IDE.
squiggles is an MCP server that bridges coding agents to Language Server Protocol (LSP) servers. Configure one or more LSP servers and squiggles exposes their features — diagnostics, go-to-definition, find references, rename, formatting, and more — as MCP tools. Servers start lazily on first tool use, so there's no startup cost for languages you don't touch.
Beyond the standard protocol, squiggles unlocks the custom superpowers each language server ships that editors rarely surface and agents otherwise never see: expanding a Rust macro, discovering Ruby tests, switching between a C++ source file and its header, fixing every import after moving a TypeScript file, running govulncheck through gopls.
Quick Start
claude mcp add squiggles -- npx -y squigglesThen, in your project root:
npx squiggles initThis writes a squiggles.yaml for the languages it finds (a tsconfig.json means TypeScript, a Cargo.toml means Rust, and so on). Name the servers to choose them yourself: npx squiggles init typescript ruby. Presets exist for typescript, rust, ruby, go, python, cpp and lua; each needs its language server on PATH, and init prints the install command for every one it writes.
The result for a TypeScript project:
servers:
typescript:
command: ["typescript-language-server", "--stdio"]
filePatterns: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"]Related MCP server: lsp-mcp-rs
Configuration
squiggles looks for squiggles.yaml, squiggles.yml, .squiggles.yaml, or .squiggles.yml in the project root (the old mclsp.yaml names still work). Each server entry supports:
Field | Required | Description |
| Yes | Command to start the LSP server (string array) |
| Yes | Glob patterns for files this server handles |
| No | Options passed to the LSP server on initialization |
| No | Override the workspace root URI |
| No | Environment variables for the LSP server process |
Multiple servers can be configured for different languages:
servers:
typescript:
command: ["typescript-language-server", "--stdio"]
filePatterns: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"]
rust:
command: ["rust-analyzer"]
filePatterns: ["**/*.rs"]
ruby:
command: ["ruby-lsp"]
filePatterns: ["**/*.rb"]
go:
command: ["gopls"]
filePatterns: ["**/*.go", "go.mod", "go.sum"]
cpp:
command: ["clangd"]
filePatterns: ["**/*.c", "**/*.h", "**/*.cpp", "**/*.hpp"]Tools
All standard LSP tools are registered and available when a matching server is configured.
Navigation: goto_definition, goto_type_definition, goto_implementation, goto_declaration, find_references
Inspection: hover, signature_help, document_symbols, workspace_symbols
Refactoring: code_actions, rename_prepare, rename, format
Hierarchy: call_hierarchy_incoming, call_hierarchy_outgoing, type_hierarchy
Always available: open_file, diagnostics
Position-based tools take file (relative path), line (1-indexed), and col (1-indexed). rename accepts apply: true to write the edit to disk instead of returning it; format always writes to disk. code_actions automatically passes the diagnostics overlapping the requested range, so quick fixes show up.
Server Extensions
The best language servers go far beyond the standard protocol, and this is where squiggles earns its keep: it subscribes to the custom methods and commands that IDE plugins use but agent harnesses ignore. Extension tools register automatically when a matching server is configured.
Ruby (ruby-lsp)
Tool | What it does |
| Discover test cases (Minitest, RSpec) in a file |
| Jump between implementation and test file |
| Show the Prism AST for a file |
| List project gem dependencies |
TypeScript (typescript-language-server)
Tool | What it does |
| Go to the implementation, not the |
| Sort and prune imports, written to disk |
| Fix every import after a file moves — move the file, then call this |
typescript-language-server needs a typescript install it can find (usually the workspace's own). TypeScript 7 ships no tsserver.js, so keep typescript@5 in the workspace for now.
Rust (rust-analyzer)
Tool | What it does |
| Show the code a macro invocation generates |
| Navigate to the parent module |
| Find the owning crate's Cargo.toml |
| Get docs.rs / rustdoc URLs for a symbol |
| Find tests covering a position |
| Show the syntax tree for a file |
| List runnable targets (tests, binaries, doctests) |
| Reload Cargo metadata after editing Cargo.toml |
| List all crates in the dependency graph |
Go (gopls)
Tool | What it does |
| List packages importable from a file |
| List a file's imports and its package |
| Add an import, written to disk |
| Run go mod tidy |
| Run govulncheck against the module |
| List modules under a directory |
C/C++ (clangd)
Tool | What it does |
| Jump between source and header |
| Get USR and symbol details |
| Show the Clang AST for a range |
When a server applies changes itself (organize imports, add import, rename file), squiggles receives the workspace edit and writes it to disk, keeping the server's view of the files in sync.
Contributing Extensions
To add extensions for a new language server, create a file in src/extensions/ (e.g. src/extensions/zig.ts):
import { executeCommand, type ServerExtension } from "./index.js";
const extensions: ServerExtension[] = [
{
name: "zls_something",
description: "What this does",
input: "position", // "none" | "file" | "position" | "custom"
request: ({ uri, position }) => ({
method: "zls/customMethod",
params: { textDocument: { uri }, position },
}),
},
];
export default extensions;request receives the opened file's URI, absolute path, and 0-indexed position, and returns the LSP request to send — use the executeCommand helper for servers that expose functionality as workspace/executeCommand commands. Register the module in src/extensions/index.ts under the server's binary name.
Migrating from mclsp
squiggles is the project formerly published as mclsp. Point your MCP config at npx -y squiggles and rename mclsp.yaml to squiggles.yaml — the old config names keep working, the tool names are unchanged.
License
MIT
Available Tools
21 toolscall_hierarchy_incomingA
Find all functions/methods that call the function at the given position.
Inputs: col (required), file (required), line (required).
call_hierarchy_outgoingB
Find all functions/methods that are called by the function at the given position.
Inputs: col (required), file (required), line (required).
code_actionsB
Get available code actions (quick fixes, refactorings) at the given position. Diagnostics overlapping the range are passed to the server so quick fixes are included.
Inputs: col (required), file (required), line (required), endCol, +1 more.
diagnosticsA
Get current diagnostics (errors, warnings) for a file. If no file is specified, returns diagnostics for all currently open files with issues. Waits for fresh results after recent edits.
Inputs: file.
document_symbolsB
Get all symbols (functions, classes, variables, etc.) defined in a file as a hierarchical tree.
Inputs: file (required).
find_referencesA
Find all references to a symbol across the project. Returns every location where the symbol is used.
Inputs: col (required), file (required), line (required).
formatA
Format a file using the language server's formatter and write the result to disk.
Inputs: file (required), tabSize, insertSpaces.
goto_declarationB
Go to the declaration of a symbol (relevant in C/C++ for header declarations).
Inputs: col (required), file (required), line (required).
goto_definitionB
Go to the definition of a symbol at the given position. Returns the file and location where the symbol is defined.
Inputs: col (required), file (required), line (required).
goto_implementationA
Go to implementations of an interface or abstract method. Returns concrete implementation locations.
Inputs: col (required), file (required), line (required).
goto_type_definitionA
Go to the type definition of a symbol. Returns where the type of the symbol at the given position is defined.
Inputs: col (required), file (required), line (required).
hoverA
Get hover information (type signature, documentation) for a symbol at the given position.
Inputs: col (required), file (required), line (required).
open_fileA
Open a file in the LSP server. This triggers diagnostics and makes the file available for subsequent no-arg diagnostics calls.
Inputs: file (required).
renameA
Rename a symbol across all affected files. Returns the workspace edit, or applies it to disk when apply is true.
Inputs: col (required), file (required), line (required), newName (required), +1 more.
rename_prepareA
Check if a symbol at the given position can be renamed, and get its current name.
Inputs: col (required), file (required), line (required).
signature_helpB
Get parameter information for a function call at the given position.
Inputs: col (required), file (required), line (required).
ts_go_to_source_definitionA
Go to the source definition (the implementation, not the .d.ts declaration) of a symbol
Inputs: col (required), file (required), line (required).
ts_organize_importsA
Sort imports and remove unused ones in a TypeScript/JavaScript file. Applies the changes to disk.
Inputs: file (required), skipDestructiveCodeActions.
ts_rename_fileA
Update all imports that reference a file after it has been moved or renamed on disk. Move the file first, then call this. Applies the changes to disk.
Inputs: newPath (required), oldPath (required).
type_hierarchyB
Get the type hierarchy (supertypes and subtypes) for the type at the given position.
Inputs: col (required), file (required), line (required).
workspace_symbolsA
Search for symbols across the entire project by name. Supports fuzzy matching.
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Each tool maps to a distinct LSP action (goto, references, rename, formatting, diagnostics, etc.). The several goto variants are clearly differentiated by description, and rename_prepare/rename, call_hierarchy_incoming/outgoing, and type_hierarchy are unambiguous.
The tools follow a consistent verb_noun snake_case pattern (goto_definition, find_references, rename_prepare, format). Minor deviations exist: 'goto' vs 'go_to' in ts_go_to_source_definition, and the ts_ prefix on TypeScript-specific tools, but these do not break the overall predictability.
At 21 tools, this is on the heavier side, but the server's purpose is to expose a comprehensive LSP surface, so the count is reasonable. Each tool covers a distinct LSP feature and none feel redundant, though the set could be trimmed by merging some goto variants.
The set covers core LSP workflows: navigation, references, rename, formatting, code actions, symbols, diagnostics, and call/type hierarchies. Minor gaps exist (e.g., no completion, document_highlight, or execute_command), but agents can accomplish most tasks without them.
Maintenance
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Official MCP server for Agentwork — delegate tasks to AI agents with human-in-the-loop
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Capability registry for the agentic economy. Semantic search over verified MCP server listings.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server that exposes LSP-backed code navigation and editing tools to LLM agents using a single global config file to route file extensions to language servers.1MIT
- FlicenseNot gradedqualityDmaintenanceA single MCP server that bridges to any LSP, enabling code intelligence features like hover, go-to-definition, references, and diagnostics for multiple languages via configurable language servers.1-
- FlicenseNot gradedqualityDmaintenanceGive your AI coding agents superpowers — a local MCP server for fast, token-efficient code navigation, search & analysis.-
- AlicenseNot gradedqualityCmaintenanceMCP server that gives AI coding agents codebase navigation intelligence, enabling symbol lookup, reference finding, type inspection, and diagnostics through tools like locate, refs, hover, diagnostics, status, and rename.MIT