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

已驗證STDIO僅桌面知識與記憶開發者工具

概覽

AI 產生的概覽

將編碼代理連接到語言伺服器協定(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。
安裝前請注意
多個工具會寫入磁碟:帶 apply 的重新命名、格式化、整理匯入、新增匯入、重新命名檔案,以及伺服器自行套用的工作區編輯。go_mod_tidy 與 go_vulncheck 會執行模組指令。設定可將環境變數傳給語言伺服器行程。語言伺服器以你的使用者權限在本機執行,使用前請檢查設定的指令。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Squiggles,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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

bash
claude mcp add squiggles -- npx -y squiggles

Then, in your project root:

bash
npx squiggles init

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:

yaml
servers:  typescript:    command: ["typescript-language-server", "--stdio"]    filePatterns: ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"]

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:

FieldRequiredDescription
commandYesCommand to start the LSP server (string array)
filePatternsYesGlob patterns for files this server handles
initializationOptionsNoOptions passed to the LSP server on initialization
rootUriNoOverride the workspace root URI
envNoEnvironment variables for the LSP server process

Multiple servers can be configured for different languages:

yaml
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)

ToolWhat it does
ruby_discover_testsDiscover test cases (Minitest, RSpec) in a file
ruby_go_to_relevant_fileJump between implementation and test file
ruby_show_syntax_treeShow the Prism AST for a file
ruby_dependenciesList project gem dependencies

TypeScript (typescript-language-server)

ToolWhat it does
ts_go_to_source_definitionGo to the implementation, not the .d.ts declaration
ts_organize_importsSort and prune imports, written to disk
ts_rename_fileFix 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)

ToolWhat it does
rust_expand_macroShow the code a macro invocation generates
rust_parent_moduleNavigate to the parent module
rust_open_cargo_tomlFind the owning crate's Cargo.toml
rust_external_docsGet docs.rs / rustdoc URLs for a symbol
rust_related_testsFind tests covering a position
rust_view_syntax_treeShow the syntax tree for a file
rust_runnablesList runnable targets (tests, binaries, doctests)
rust_reload_workspaceReload Cargo metadata after editing Cargo.toml
rust_dependenciesList all crates in the dependency graph

Go (gopls)

ToolWhat it does
go_list_known_packagesList packages importable from a file
go_list_importsList a file's imports and its package
go_add_importAdd an import, written to disk
go_mod_tidyRun go mod tidy
go_vulncheckRun govulncheck against the module
go_modulesList modules under a directory

C/C++ (clangd)

ToolWhat it does
clangd_switch_source_headerJump between source and header
clangd_symbol_infoGet USR and symbol details
clangd_astShow 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):

typescript
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

來源:README.md,提交 1698fe2

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v1.0.2最新Sep 20, 2026
  2. v1.0.1Sep 20, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分