SuperAPIAI Directory

squiggles

github.com · AI coding

Run any number of LSP servers from one YAML config for diagnostics, go-to-definition and rename, plus server-specific features like Rust macro expansion.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

squiggles is an MCP server for bridging coding agents to Language Server Protocol (LSP) servers. Its goal is to let agents see the "squiggles" you would see in your IDE—that is, LSP diagnostics, navigation, refactoring, and the custom "superpowers" of each language server.

Main capabilities

After configuring one or more LSP servers, squiggles exposes their capabilities as MCP tools, including diagnostics, go to definition, find references, rename, format, and more. Servers start lazily on first tool use, so languages you do not touch incur no startup overhead.

In addition to the standard protocol, squiggles also integrates custom capabilities that come with language servers, which editors rarely show and agents usually cannot see: expanding Rust macros, discovering Ruby tests, switching between C++ source files and their headers, fixing all imports after moving TypeScript files, running govulncheck via gopls, and more.

Usage

Run the initialization command in the project root:

npx squiggles init

This command generates squiggles.yaml for the languages it detects (for example, TypeScript if tsconfig.json exists, Rust if Cargo.toml exists). You can also name servers yourself to select them manually:

npx squiggles init typescript ruby .

Presets support typescript, rust, ruby, go, python, cpp, and lua; each preset requires the corresponding language server to be in PATH, and init prints the installation command for each server it writes.

An example of the result generated for a TypeScript project (the original text does not provide the specific content), not yet provided.

squiggles looks for squiggles.yaml, squiggles.yml, .squiggles.yaml, or .squiggles.yml in the project root (the old mclsp.yaml name still works). You can configure multiple servers for different languages.

Standard LSP tools

Once a matching server is configured, all standard LSP tools are registered and available.

  • 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 accept file (relative path), line (1-based), and col (1-based). rename accepts apply: true to write edits to disk instead of only returning edit contents; format always writes to disk. code_actions automatically passes in diagnostics that overlap the requested range, so quick fixes can appear.

Server extensions

The best language servers go far beyond the standard protocol, and this is where squiggles' value lies: it subscribes to custom methods and commands used by IDE plugins but ignored by agent frameworks. Once a matching server is configured, extension tools are registered automatically. The material lists extensions for the following servers:

  • Ruby (ruby-lsp)
  • TypeScript (typescript-language-server): it needs to be able to find a TypeScript installation (usually the workspace's own). TypeScript 7 no longer provides tsserver.js, so for now you should keep typescript@5 in the workspace.
  • Rust (rust-analyzer)
  • C/C++ (clangd)

When the server applies changes itself (organizing imports, adding imports, renaming files), squiggles receives workspace edits and writes them to disk, keeping the server's view of the files in sync.

Contributing extensions

To add an extension for a new language server, create a file under src/extensions/ (for example src/extensions/zig.ts). request receives the URI of the opened file, the absolute path, and a 0-based position, and returns the LSP request to send—for servers that expose functionality as workspace/executeCommand commands, use the executeCommand helper. Register the module in src/extensions/index.ts by the server's binary name.

Migrating from mclsp

squiggles is the project formerly released under the name mclsp. Point your MCP configuration to npx -y squiggles and rename mclsp.yaml to squiggles.yaml—the old configuration name still works, and the tool names remain unchanged.

Limitations

The material does not provide information such as fees, pricing, platform support scope, or performance metrics, so none is provided for now. Using each language preset requires installing the corresponding language server and putting it on PATH; for TypeScript, it is currently recommended to keep typescript@5 in the workspace.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools