
Squiggles
io.github.carldaws由 GitHub 账号 carldaws 发布v1.0.2更新于 Oct 24, 2026
Let your coding agent see the squiggles — LSP diagnostics, navigation, refactoring, and extras
概览
将编码代理连接到语言服务器协议(LSP)服务器,把诊断、导航、重构和语言专属扩展功能作为 MCP 工具提供。
- 可以做什么
- 打开文件并读取工作区诊断信息,按 squiggles.yaml 中配置的语言在首次使用时惰性启动服务器(提供 TypeScript、Rust、Ruby、Go、Python、C/C++、Lua 预设)。导航代码:跳转定义、类型定义、实现、声明、查找引用、悬停提示、签名帮助,以及文档或工作区符号。查看调用层级和类型层级。重构:代码操作、重命名准备与重命名、格式化,其中部分操作会把修改写入磁盘。使用语言专属扩展,例如 Rust 宏展开与可运行目标、Ruby 测试发现与语法树、TypeScript 导入整理与文件重命名、Go 导入与模块命令(含 govulncheck)。
- 适用场景
- 适合希望编码代理看到与 IDE 相同的编译器和语言服务器反馈,并在多语言项目中需要精确导航、重构或语言专属操作的场景。最适合已配置好相应语言服务器的项目。
- 运行要求
- 通过 stdio 在本地运行,通常使用 npx。需要 Node.js,以及项目根目录下的 squiggles.yaml(或 .yml 变体),其中为每个 LSP 服务器指定命令和文件匹配模式;可用 npx squiggles init 生成。每个配置的语言服务器(如 typescript-language-server、rust-analyzer、ruby-lsp、gopls、clangd)必须已安装并在 PATH 中。TypeScript 项目需要工作区内的 typescript@5。
安装
在 SourceWeft 中
- 打开 控制台中的 Squiggles,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
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
Then, in your project root:
This 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:
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:
Multiple servers can be configured for different languages:
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)
TypeScript (typescript-language-server)
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)
Go (gopls)
C/C++ (clangd)
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):
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
来源:README.md,提交 1698fe2
工具
0版本历史
2- v1.0.2最新Sep 20, 2026
- v1.0.1Sep 20, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
